Guest User

Untitled

a guest
Sep 9th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. package com.mrzorse.startrek.tileentity.tileentities;
  2.  
  3. import net.minecraft.nbt.NBTTagCompound;
  4. import net.minecraft.tileentity.TileEntity;
  5.  
  6. public class TileEntityTransportInterlock extends TileEntity{
  7.      public String id;
  8.      
  9.    
  10.    
  11.     public void writeToNBT(NBTTagCompound tagCompound) {
  12.          
  13.          tagCompound.setString("interlockid", this.id);
  14.          super.writeToNBT(tagCompound);
  15.          
  16.     }
  17.     public void readFromNBT(NBTTagCompound tagCompound) {
  18.          
  19.        
  20.          this.id = tagCompound.getString("interlockid");
  21.          super.readFromNBT(tagCompound);
  22.          
  23.     }
  24.    
  25. }
Add Comment
Please, Sign In to add comment