本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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());
}
示例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());
}
示例6: setHandle
import org.bukkit.craftbukkit.inventory.CraftInventoryPlayer; //导入依赖的package包/类
public void setHandle(final EntityHuman entity) {
super.setHandle(entity);
this.inventory = new CraftInventoryPlayer(entity.inventory);
}
示例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());
}
示例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);
}