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


Java TileEntityHopper.func_145886_a方法代碼示例

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

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

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


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