Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mrzorse.startrek.tileentity.tileentities;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.tileentity.TileEntity;
- public class TileEntityTransportInterlock extends TileEntity{
- public String id;
- public void writeToNBT(NBTTagCompound tagCompound) {
- tagCompound.setString("interlockid", this.id);
- super.writeToNBT(tagCompound);
- }
- public void readFromNBT(NBTTagCompound tagCompound) {
- this.id = tagCompound.getString("interlockid");
- super.readFromNBT(tagCompound);
- }
- }
Add Comment
Please, Sign In to add comment