use of ivorius.reccomplex.network.PacketEditTileEntity in project RecurrentComplex by Ivorforce.
the class BlockScript method onBlockActivated.
@Override
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!worldIn.isRemote && playerIn instanceof EntityPlayerMP && playerIn.canUseCommand(2, "")) {
TileEntity tileEntity = worldIn.getTileEntity(pos);
RecurrentComplex.network.sendTo(new PacketEditTileEntity((TileEntityBlockScript) tileEntity), (EntityPlayerMP) playerIn);
}
return true;
}
Aggregations