use of se.gory_moon.horsepower.tileentity.TileEntityHandGrindstone in project HorsePower by GoryMoon.
the class BlockHandGrindstone method onBlockPlacedBy.
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) {
worldIn.setBlockState(pos, ((IExtendedBlockState) state).withProperty(FACING, placer.getHorizontalFacing().getOpposite()).withProperty(PART, HandGrindstoneModels.BASE), 2);
TileEntityHandGrindstone tile = getTileEntity(worldIn, pos);
if (tile == null)
return;
tile.setForward(placer.getAdjustedHorizontalFacing().getOpposite());
}
Aggregations