当前位置: 首页>>代码示例>>Java>>正文


Java CraftInventoryPlayer类代码示例

本文整理汇总了Java中org.bukkit.craftbukkit.inventory.CraftInventoryPlayer的典型用法代码示例。如果您正苦于以下问题:Java CraftInventoryPlayer类的具体用法?Java CraftInventoryPlayer怎么用?Java CraftInventoryPlayer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CraftInventoryPlayer类属于org.bukkit.craftbukkit.inventory包,在下文中一共展示了CraftInventoryPlayer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setHandle

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public void setHandle(final net.minecraft.entity.player.EntityPlayer entity) {
    super.setHandle(entity);
    this.inventory = new CraftInventoryPlayer(entity.inventory);
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:5,代码来源:CraftHumanEntity.java

示例2: ModInventoryMoveFromPlayerEvent

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public ModInventoryMoveFromPlayerEvent(InventoryPlayer sourceInventory, net.minecraft.item.ItemStack itemStack, IInventory destinationInventory, boolean didSourceInitiate) {
    super(new CraftInventoryPlayer(sourceInventory), CraftItemStack.asCraftMirror(itemStack),new CraftInventory(destinationInventory) , didSourceInitiate);
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:4,代码来源:ModInventoryMoveFromPlayerEvent.java

示例3: ModInventoryMoveToPlayerEvent

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public ModInventoryMoveToPlayerEvent(IInventory sourceInventory, net.minecraft.item.ItemStack itemStack, InventoryPlayer destinationInventory, boolean didSourceInitiate) {
    super(new CraftInventory(sourceInventory), CraftItemStack.asCraftMirror(itemStack), new CraftInventoryPlayer((InventoryPlayer)destinationInventory), didSourceInitiate);
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:4,代码来源:ModInventoryMoveToPlayerEvent.java

示例4: CraftHumanEntity

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public CraftHumanEntity(final CraftServer server, final net.minecraft.entity.player.EntityPlayer entity) {
    super(server, entity);
    mode = server.getDefaultGameMode();
    this.inventory = new CraftInventoryPlayer(entity.inventory);
    enderChest = new CraftInventory(entity.getInventoryEnderChest());
}
 
开发者ID:CyberdyneCC,项目名称:ThermosRebased,代码行数:7,代码来源:CraftHumanEntity.java

示例5: CraftHumanEntity

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public CraftHumanEntity(final CraftServer server, final EntityHuman entity) {
    super(server, entity);
    mode = server.getDefaultGameMode();
    this.inventory = new CraftInventoryPlayer(entity.inventory);
    enderChest = new CraftInventory(entity.getEnderChest());
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:7,代码来源:CraftHumanEntity.java

示例6: setHandle

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public void setHandle(final EntityHuman entity) {
    super.setHandle(entity);
    this.inventory = new CraftInventoryPlayer(entity.inventory);
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:5,代码来源:CraftHumanEntity.java

示例7: CraftHumanEntity

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public CraftHumanEntity(final CraftServer server, final net.minecraft.entity.player.EntityPlayer entity) {
    super(server, entity);
    mode = server.getDefaultGameMode();
    this.inventory = new CraftInventoryPlayer(entity.field_71071_by);
    enderChest = new CraftInventory(entity.func_71005_bN());
}
 
开发者ID:agaricusb,项目名称:MCPBukkit,代码行数:7,代码来源:CraftHumanEntity.java

示例8: setHandle

import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public void setHandle(final net.minecraft.entity.player.EntityPlayer entity) {
    super.setHandle(entity);
    this.inventory = new CraftInventoryPlayer(entity.field_71071_by);
}
 
开发者ID:agaricusb,项目名称:MCPBukkit,代码行数:5,代码来源:CraftHumanEntity.java


注:本文中的org.bukkit.craftbukkit.inventory.CraftInventoryPlayer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。