當前位置: 首頁>>代碼示例>>Java>>正文


Java TileEntityChest.updateContainingBlockInfo方法代碼示例

本文整理匯總了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();
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:11,代碼來源:BlockChest.java

示例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();
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:11,代碼來源:BlockChest.java

示例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();
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:15,代碼來源:BlockChest.java


注:本文中的net.minecraft.tileentity.TileEntityChest.updateContainingBlockInfo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。