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


Java TileEntityFlowerPot.getFlowerPotData方法代码示例

本文整理汇总了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;
}
 
开发者ID:MinestrapTeam,项目名称:Minestrappolation-4,代码行数:9,代码来源:MBlockSketchyBackwaterFlowerpot.java

示例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);
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral-Integration,代码行数:9,代码来源:AdapterFlowerPot.java

示例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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:BlockFlowerPot.java

示例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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:6,代码来源:BlockFlowerPot.java


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