本文整理匯總了Java中net.minecraft.tileentity.TileEntityHopper.func_145886_a方法的典型用法代碼示例。如果您正苦於以下問題:Java TileEntityHopper.func_145886_a方法的具體用法?Java TileEntityHopper.func_145886_a怎麽用?Java TileEntityHopper.func_145886_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.tileentity.TileEntityHopper
的用法示例。
在下文中一共展示了TileEntityHopper.func_145886_a方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onBlockPlacedBy
import net.minecraft.tileentity.TileEntityHopper; //導入方法依賴的package包/類
/**
* Called when the block is placed in the world.
*/
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
{
super.onBlockPlacedBy(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_, p_149689_5_, p_149689_6_);
if (p_149689_6_.hasDisplayName())
{
TileEntityHopper var7 = func_149920_e(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_);
var7.func_145886_a(p_149689_6_.getDisplayName());
}
}
示例2: onBlockPlacedBy
import net.minecraft.tileentity.TileEntityHopper; //導入方法依賴的package包/類
/**
* Called when the block is placed in the world.
*/
@Override
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
{
super.onBlockPlacedBy(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_, p_149689_5_, p_149689_6_);
if (p_149689_6_.hasDisplayName())
{
TileEntityHopper tileentityhopper = func_149920_e(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_);
tileentityhopper.func_145886_a(p_149689_6_.getDisplayName());
}
}
示例3: onBlockPlacedBy
import net.minecraft.tileentity.TileEntityHopper; //導入方法依賴的package包/類
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
{
super.onBlockPlacedBy(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_, p_149689_5_, p_149689_6_);
if (p_149689_6_.hasDisplayName())
{
TileEntityHopper tileentityhopper = func_149920_e(p_149689_1_, p_149689_2_, p_149689_3_, p_149689_4_);
tileentityhopper.func_145886_a(p_149689_6_.getDisplayName());
}
}