Examples of sendDescriptionPacket()


Examples of pneumaticCraft.common.tileentity.TileEntityAphorismTile.sendDescriptionPacket()

        if(!player.isSneaking()) {
            TileEntity tile = world.getTileEntity(x, y, z);
            if(tile instanceof TileEntityAphorismTile) {
                TileEntityAphorismTile teAt = (TileEntityAphorismTile)tile;
                if(++teAt.textRotation > 3) teAt.textRotation = 0;
                teAt.sendDescriptionPacket();
                return true;
            } else {
                return false;
            }
        } else {
View Full Code Here

Examples of pneumaticCraft.common.tileentity.TileEntityOmnidirectionalHopper.sendDescriptionPacket()

                world.setBlockMetadataWithNotify(x, y, z, newMeta, 3);
            } else {
                int newRotation = (teOh.getDirection().ordinal() + 1) % 6;
                if(newRotation == world.getBlockMetadata(x, y, z)) newRotation = (newRotation + 1) % 6;
                teOh.setDirection(ForgeDirection.getOrientation(newRotation));
                teOh.sendDescriptionPacket();
            }
            return true;
        }
        return false;
    }
View Full Code Here

Examples of pneumaticCraft.common.tileentity.TileEntityPneumaticDoorBase.sendDescriptionPacket()

        if(te instanceof TileEntityPneumaticDoorBase) {
            TileEntityPneumaticDoorBase teDb = (TileEntityPneumaticDoorBase)te;
            int newMeta = (teDb.orientation.ordinal() + 1) % 6;
            if(newMeta == 0) newMeta = 2;
            teDb.orientation = ForgeDirection.getOrientation(newMeta);
            teDb.sendDescriptionPacket();
            return true;
        }
        return false;
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.