本文整理汇总了Java中net.minecraft.inventory.ItemStackHelper.func_191282_a方法的典型用法代码示例。如果您正苦于以下问题:Java ItemStackHelper.func_191282_a方法的具体用法?Java ItemStackHelper.func_191282_a怎么用?Java ItemStackHelper.func_191282_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.inventory.ItemStackHelper
的用法示例。
在下文中一共展示了ItemStackHelper.func_191282_a方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeEntityToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* (abstract) Protected helper method to write subclass entity data to NBT.
*/
protected void writeEntityToNBT(NBTTagCompound compound)
{
super.writeEntityToNBT(compound);
if (this.lootTable != null)
{
compound.setString("LootTable", this.lootTable.toString());
if (this.lootTableSeed != 0L)
{
compound.setLong("LootTableSeed", this.lootTableSeed);
}
}
else
{
ItemStackHelper.func_191282_a(compound, this.minecartContainerItems);
}
}
示例2: writeToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
super.writeToNBT(compound);
if (!this.checkLootAndWrite(compound))
{
ItemStackHelper.func_191282_a(compound, this.chestContents);
}
if (this.hasCustomName())
{
compound.setString("CustomName", this.field_190577_o);
}
return compound;
}
示例3: writeToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
super.writeToNBT(compound);
if (!this.checkLootAndWrite(compound))
{
ItemStackHelper.func_191282_a(compound, this.stacks);
}
if (this.hasCustomName())
{
compound.setString("CustomName", this.field_190577_o);
}
return compound;
}
示例4: writeToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
super.writeToNBT(compound);
if (!this.checkLootAndWrite(compound))
{
ItemStackHelper.func_191282_a(compound, this.inventory);
}
compound.setInteger("TransferCooldown", this.transferCooldown);
if (this.hasCustomName())
{
compound.setString("CustomName", this.field_190577_o);
}
return compound;
}
示例5: writeToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
super.writeToNBT(compound);
compound.setShort("BrewTime", (short)this.brewTime);
ItemStackHelper.func_191282_a(compound, this.brewingItemStacks);
if (this.hasCustomName())
{
compound.setString("CustomName", this.customName);
}
compound.setByte("Fuel", (byte)this.fuel);
return compound;
}
示例6: writeToNBT
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
super.writeToNBT(compound);
compound.setShort("BurnTime", (short)this.furnaceBurnTime);
compound.setShort("CookTime", (short)this.cookTime);
compound.setShort("CookTimeTotal", (short)this.totalCookTime);
ItemStackHelper.func_191282_a(compound, this.furnaceItemStacks);
if (this.hasCustomName())
{
compound.setString("CustomName", this.furnaceCustomName);
}
return compound;
}