本文整理汇总了Java中net.minecraft.tileentity.TileEntityFlowerPot.getFlowerPotData方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntityFlowerPot.getFlowerPotData方法的具体用法?Java TileEntityFlowerPot.getFlowerPotData怎么用?Java TileEntityFlowerPot.getFlowerPotData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.tileentity.TileEntityFlowerPot
的用法示例。
在下文中一共展示了TileEntityFlowerPot.getFlowerPotData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDamageValue
import net.minecraft.tileentity.TileEntityFlowerPot; //导入方法依赖的package包/类
@Override
public int getDamageValue(World worldIn, BlockPos pos)
{
TileEntityFlowerPot tileentityflowerpot = this.getTileEntity(worldIn, pos);
return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ?
tileentityflowerpot.getFlowerPotData() :
0;
}
示例2: getContents
import net.minecraft.tileentity.TileEntityFlowerPot; //导入方法依赖的package包/类
@ScriptCallable(returnTypes = ReturnType.TABLE)
public ItemStack getContents(TileEntityFlowerPot pot) {
Item item = pot.getFlowerPotItem();
if (item == null) return null;
int data = pot.getFlowerPotData();
return new ItemStack(item, 1, data);
}
示例3: getDamageValue
import net.minecraft.tileentity.TileEntityFlowerPot; //导入方法依赖的package包/类
public int getDamageValue(World worldIn, BlockPos pos)
{
TileEntityFlowerPot tileentityflowerpot = this.getTileEntity(worldIn, pos);
return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ? tileentityflowerpot.getFlowerPotData() : 0;
}
示例4: getDamageValue
import net.minecraft.tileentity.TileEntityFlowerPot; //导入方法依赖的package包/类
public int getDamageValue(World p_149643_1_, int p_149643_2_, int p_149643_3_, int p_149643_4_)
{
TileEntityFlowerPot tileentityflowerpot = this.func_149929_e(p_149643_1_, p_149643_2_, p_149643_3_, p_149643_4_);
return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ? tileentityflowerpot.getFlowerPotData() : 0;
}