本文整理匯總了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();
}
}