本文整理汇总了Java中net.minecraft.inventory.IInvBasic类的典型用法代码示例。如果您正苦于以下问题:Java IInvBasic类的具体用法?Java IInvBasic怎么用?Java IInvBasic使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IInvBasic类属于net.minecraft.inventory包,在下文中一共展示了IInvBasic类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCamelChest
import net.minecraft.inventory.IInvBasic; //导入依赖的package包/类
private void createCamelChest()
{
AnimalChest animalchest = this.camelChest;
this.camelChest = new AnimalChest("CamelChest", 17);
this.camelChest.func_110133_a(this.getCommandSenderName());
if (animalchest != null)
{
animalchest.func_110132_b((IInvBasic) this);
int i = Math.min(animalchest.getSizeInventory(), this.camelChest.getSizeInventory());
for (int j = 0; j < i; ++j)
{
ItemStack itemstack = animalchest.getStackInSlot(j);
if (itemstack != null)
{
this.camelChest.setInventorySlotContents(j, itemstack.copy());
}
}
animalchest = null;
}
this.camelChest.func_110134_a((IInvBasic) this);
}
示例2: func_110134_a
import net.minecraft.inventory.IInvBasic; //导入依赖的package包/类
public void func_110134_a(IInvBasic p_110134_1_) {
if(this.field_70480_d == null) {
this.field_70480_d = new ArrayList();
}
this.field_70480_d.add(p_110134_1_);
}
示例3: func_70296_d
import net.minecraft.inventory.IInvBasic; //导入依赖的package包/类
public void func_70296_d() {
if(this.field_70480_d != null) {
for(int var1 = 0; var1 < this.field_70480_d.size(); ++var1) {
((IInvBasic)this.field_70480_d.get(var1)).func_76316_a(this);
}
}
}
示例4: func_110132_b
import net.minecraft.inventory.IInvBasic; //导入依赖的package包/类
public void func_110132_b(IInvBasic p_110132_1_) {
this.field_70480_d.remove(p_110132_1_);
}