本文整理汇总了Java中org.bukkit.craftbukkit.inventory.CraftInventory类的典型用法代码示例。如果您正苦于以下问题:Java CraftInventory类的具体用法?Java CraftInventory怎么用?Java CraftInventory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CraftInventory类属于org.bukkit.craftbukkit.inventory包,在下文中一共展示了CraftInventory类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: transferTo
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public void transferTo(Container other, org.bukkit.craftbukkit.entity.CraftHumanEntity player) {
InventoryView source = this.getBukkitView(), destination = other.getBukkitView();
((CraftInventory) source.getTopInventory()).getInventory().onClose(player);
((CraftInventory) source.getBottomInventory()).getInventory().onClose(player);
((CraftInventory) destination.getTopInventory()).getInventory().onOpen(player);
((CraftInventory) destination.getBottomInventory()).getInventory().onOpen(player);
}
示例2: getBukkitView
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
@Override
public InventoryView getBukkitView() {
if (bukkitEntity != null) {
return bukkitEntity;
}
CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryHorse(this.a);
return bukkitEntity = new CraftInventoryView(player.player.getBukkitEntity(), inventory, this);
}
示例3: CraftMinecartChest
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public CraftMinecartChest(CraftServer server, net.minecraft.entity.item.EntityMinecartChest entity) {
super(server, entity);
inventory = new CraftInventory(entity);
}
示例4: CraftMinecartHopper
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
CraftMinecartHopper(CraftServer server, net.minecraft.entity.item.EntityMinecartHopper entity) {
super(server, entity);
inventory = new CraftInventory(entity);
}
示例5: getInventory
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public Inventory getInventory() {
return new CraftInventory(dropper);
}
示例6: getInventory
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public Inventory getInventory() {
return new CraftInventory(dispenser);
}
示例7: getInventory
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public Inventory getInventory() {
return new CraftInventory(hopper);
}
示例8: getBlockInventory
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public Inventory getBlockInventory() {
return new CraftInventory(chest);
}
示例9: ModInventoryMoveFromPlayerEvent
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的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);
}
示例10: ModInventoryMoveToPlayerEvent
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的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);
}
示例11: ModInventoryMoveEvent
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
public ModInventoryMoveEvent(IInventory sourceInventory, net.minecraft.item.ItemStack itemStack, IInventory destinationInventory, boolean didSourceInitiate) {
super(new CraftInventory(sourceInventory), CraftItemStack.asCraftMirror(itemStack), new CraftInventory(destinationInventory), didSourceInitiate);
}
示例12: getInventory
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的package包/类
@Override
public Inventory getInventory() {
CraftInventory inventory = new CraftInventory(container);
return inventory;
}
示例13: CraftHumanEntity
import org.bukkit.craftbukkit.inventory.CraftInventory; //导入依赖的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());
}