本文整理汇总了Java中net.minecraft.tileentity.TileEntityChest.updateContainingBlockInfo方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntityChest.updateContainingBlockInfo方法的具体用法?Java TileEntityChest.updateContainingBlockInfo怎么用?Java TileEntityChest.updateContainingBlockInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.tileentity.TileEntityChest
的用法示例。
在下文中一共展示了TileEntityChest.updateContainingBlockInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onNeighborBlockChange
import net.minecraft.tileentity.TileEntityChest; //导入方法依赖的package包/类
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
{
super.onNeighborBlockChange(p_149695_1_, p_149695_2_, p_149695_3_, p_149695_4_, p_149695_5_);
TileEntityChest var6 = (TileEntityChest)p_149695_1_.getTileEntity(p_149695_2_, p_149695_3_, p_149695_4_);
if (var6 != null)
{
var6.updateContainingBlockInfo();
}
}
示例2: onNeighborBlockChange
import net.minecraft.tileentity.TileEntityChest; //导入方法依赖的package包/类
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
{
super.onNeighborBlockChange(p_149695_1_, p_149695_2_, p_149695_3_, p_149695_4_, p_149695_5_);
TileEntityChest tileentitychest = (TileEntityChest)p_149695_1_.getTileEntity(p_149695_2_, p_149695_3_, p_149695_4_);
if (tileentitychest != null)
{
tileentitychest.updateContainingBlockInfo();
}
}
示例3: onNeighborBlockChange
import net.minecraft.tileentity.TileEntityChest; //导入方法依赖的package包/类
/**
* Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are
* their own) Args: x, y, z, neighbor blockID
*/
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
{
super.onNeighborBlockChange(par1World, par2, par3, par4, par5);
TileEntityChest tileentitychest = (TileEntityChest)par1World.getBlockTileEntity(par2, par3, par4);
if (tileentitychest != null)
{
tileentitychest.updateContainingBlockInfo();
}
}