Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Packet getDescriptionPacket() {
- NBTTagCompound nbtTag = new NBTTagCompound();
- this.writeToNBT(nbtTag);
- return new S35PacketUpdateTileEntity(getPos(), 1, nbtTag);
- }
- @Override
- public void markDirty() {
- super.markDirty();
- if(!worldObj.isRemote)
- worldObj.markBlockForUpdate(getPos());
- }
- @Override
- public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet) {
- this.readFromNBT(packet.getNbtCompound());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement