本文整理汇总了Java中net.minecraft.tileentity.TileEntityPiston.func_145864_c方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntityPiston.func_145864_c方法的具体用法?Java TileEntityPiston.func_145864_c怎么用?Java TileEntityPiston.func_145864_c使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.tileentity.TileEntityPiston
的用法示例。
在下文中一共展示了TileEntityPiston.func_145864_c方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setBlockBoundsBasedOnState
import net.minecraft.tileentity.TileEntityPiston; //导入方法依赖的package包/类
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_)
{
TileEntityPiston var5 = this.func_149963_e(p_149719_1_, p_149719_2_, p_149719_3_, p_149719_4_);
if (var5 != null)
{
Block var6 = var5.func_145861_a();
if (var6 == this || var6.getMaterial() == Material.air)
{
return;
}
var6.setBlockBoundsBasedOnState(p_149719_1_, p_149719_2_, p_149719_3_, p_149719_4_);
float var7 = var5.func_145860_a(0.0F);
if (var5.func_145868_b())
{
var7 = 1.0F - var7;
}
int var8 = var5.func_145864_c();
this.field_149759_B = var6.getBlockBoundsMinX() - (double)((float)Facing.offsetsXForSide[var8] * var7);
this.field_149760_C = var6.getBlockBoundsMinY() - (double)((float)Facing.offsetsYForSide[var8] * var7);
this.field_149754_D = var6.getBlockBoundsMinZ() - (double)((float)Facing.offsetsZForSide[var8] * var7);
this.field_149755_E = var6.getBlockBoundsMaxX() - (double)((float)Facing.offsetsXForSide[var8] * var7);
this.field_149756_F = var6.getBlockBoundsMaxY() - (double)((float)Facing.offsetsYForSide[var8] * var7);
this.field_149757_G = var6.getBlockBoundsMaxZ() - (double)((float)Facing.offsetsZForSide[var8] * var7);
}
}