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


Java ItemStackHelper.func_191282_a方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:22,代码来源:EntityMinecartContainer.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:17,代码来源:TileEntityChest.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:17,代码来源:TileEntityDispenser.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:19,代码来源:TileEntityHopper.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:15,代码来源:TileEntityBrewingStand.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:TileEntityFurnace.java


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