@Override
 public void ticketsLoaded(List<Ticket> tickets, World world) {
   for (Ticket ticket : tickets) {
     int MaschineX = ticket.getModData().getInteger("MaschineX");
     int MaschineY = ticket.getModData().getInteger("MaschineY");
     int MaschineZ = ticket.getModData().getInteger("MaschineZ");
     TileEntityMachines Machines =
         (TileEntityMachines) world.getBlockTileEntity(MaschineX, MaschineY, MaschineZ);
     Machines.forceChunkLoading(ticket);
   }
 }
 public void readFromNBT(NBTTagCompound nbttagcompound) {
   super.readFromNBT(nbttagcompound);
   SecurtyStation_ID = nbttagcompound.getInteger("Secstation_ID");
   stationname = nbttagcompound.getString("stationname");
   NBTTagList nbttaglist = nbttagcompound.getTagList("Items");
   inventory = new ItemStack[getSizeInventory()];
   for (int i = 0; i < nbttaglist.tagCount(); i++) {
     NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.tagAt(i);
     byte byte0 = nbttagcompound1.getByte("Slot");
     if (byte0 >= 0 && byte0 < inventory.length) {
       inventory[byte0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
     }
   }
 }
  public void writeToNBT(NBTTagCompound nbttagcompound) {
    super.writeToNBT(nbttagcompound);

    nbttagcompound.setInteger("Secstation_ID", SecurtyStation_ID);
    nbttagcompound.setString("stationname", stationname);

    NBTTagList nbttaglist = new NBTTagList();
    for (int i = 0; i < inventory.length; i++) {
      if (inventory[i] != null) {
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte) i);
        inventory[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }

    nbttagcompound.setTag("Items", nbttaglist);
  }