Examples of readFromNBT()


Examples of logisticspipes.modules.ModuleThaumicAspectSink.readFromNBT()

  @Override
  public Object getClientGui(EntityPlayer player) {
    ModuleThaumicAspectSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleThaumicAspectSink.class);
    if(module == null) return null;
    module.readFromNBT(getNbt());
    return new GuiThaumicAspectSink(player.inventory, module);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
View Full Code Here

Examples of logisticspipes.routing.ItemRoutingInformation.readFromNBT()

  public static ItemRoutingInformation restoreFromExtraNBTData(TravelingItem item) {
    if(!item.hasExtraData()) return null;
    NBTTagCompound nbt = item.getExtraData();
    if(nbt.hasKey("LPRoutingInformation")) {
      ItemRoutingInformation routingInformation = new ItemRoutingInformation();
      routingInformation.readFromNBT(nbt.getCompoundTag("LPRoutingInformation"));
      return routingInformation;
    }
    return null;
  }
}
View Full Code Here

Examples of logisticspipes.security.SecuritySettings.readFromNBT()

 
  @SideOnly(Side.CLIENT)
  private void handleClientSide(EntityPlayer player) {
    if(FMLClientHandler.instance().getClient().currentScreen instanceof GuiSecurityStation) {
      SecuritySettings setting = new SecuritySettings(null);
      setting.readFromNBT(getTag());
      ((GuiSecurityStation) FMLClientHandler.instance().getClient().currentScreen).handlePlayerSecurityOpen(setting);
    }
  }
}
View Full Code Here

Examples of logisticspipes.security.SecuritySettings.readFromNBT()

    while(list.tagCount() > 0) {
      NBTBase base = list.removeTag(0);
      String name = ((NBTTagCompound)base).getString("name");
      NBTTagCompound value = ((NBTTagCompound)base).getCompoundTag("content");
      SecuritySettings settings = new SecuritySettings(name);
      settings.readFromNBT(value);
      settingsList.put(name, settings);
    }
    excludedCC.clear();
    list = par1nbtTagCompound.getTagList("excludedCC", 3);
    while(list.tagCount() > 0) {
View Full Code Here

Examples of logisticspipes.utils.item.ItemIdentifierInventory.readFromNBT()

                int size = module.getTagList(prefix + "items", module.getId()).tagCount();
                if(module.hasKey(prefix + "itemsCount")) {
                  size = module.getInteger(prefix + "itemsCount");
                }
                ItemIdentifierInventory inv = new ItemIdentifierInventory(size, "InformationTempInventory", Integer.MAX_VALUE);
                inv.readFromNBT(module, prefix);
                for(int pos=0;pos < inv.getSizeInventory();pos++) {
                  ItemIdentifierStack stack = inv.getIDStackInSlot(pos);
                  if(stack != null) {
                    if(stack.getStackSize() > 1) {
                      list.add("  " + stack.getStackSize()+"x " + stack.getFriendlyName());
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.dimension.SpaceStationWorldData.readFromNBT()

                e.printStackTrace();
            }
            break;
        case C_UPDATE_SPACESTATION_DATA:
            SpaceStationWorldData var4 = SpaceStationWorldData.getMPSpaceStationData(player.worldObj, (Integer) this.data.get(0), player);
            var4.readFromNBT((NBTTagCompound) this.data.get(1));
            break;
        case C_UPDATE_SPACESTATION_CLIENT_ID:
            ClientProxyCore.clientSpaceStationID = (Integer) this.data.get(0);
            break;
        case C_UPDATE_PLANETS_LIST:
View Full Code Here

Examples of net.minecraft.entity.Entity.readFromNBT()

    NBTTagCompound root = itemstack.stackTagCompound;   
    Entity mob = EntityList.createEntityFromNBT(root, world);
    if (mob == null) {
      return true;     
    }
    mob.readFromNBT(root);
   
    Block blk = world.getBlock(x,y,z);   
    double spawnX = x + Facing.offsetsXForSide[side] + 0.5;
    double spawnY = y + Facing.offsetsYForSide[side];
    double spawnZ = z + Facing.offsetsZForSide[side] + 0.5;
View Full Code Here

Examples of net.minecraft.entity.Entity.readFromNBT()

        if(e instanceof EntityLiving)
        {
          ((EntityLiving)e).initCreature();
        }
       
        e.readFromNBT(mobTag);
      }
    }
   
    if(e != null)
    {
View Full Code Here

Examples of net.minecraft.entity.item.EntityMinecart.readFromNBT()

      return null;
    }

    NBTTagCompound nbttagcompound = new NBTTagCompound();
    cart.writeToNBT(nbttagcompound);
    newCart.readFromNBT(nbttagcompound);
    newCart.dimension = toDimension;
    newCart.setLocationAndAngles(toX + 0.5, toY, toZ + 0.5, cart.rotationYaw, cart.rotationPitch);
    newCart.isDead = false;

    List<Entity> result = new ArrayList<Entity>();
View Full Code Here

Examples of net.minecraft.entity.monster.EntityCreeper.readFromNBT()

    EntityCreeper chargedCreeper = (EntityCreeper)MFRUtil.prepareMob(EntityCreeper.class, world);
    NBTTagCompound creeperNBT = new NBTTagCompound();
    chargedCreeper.writeToNBT(creeperNBT);
    creeperNBT.setBoolean("powered", true);
    creeperNBT.setShort("Fuse", (short)120);
    chargedCreeper.readFromNBT(creeperNBT);
    mobs.add(new RandomMob(chargedCreeper, 5));
   
    EntityTNTPrimed armedTNT = (EntityTNTPrimed)MFRUtil.prepareMob(EntityTNTPrimed.class, world);
    armedTNT.fuse = 120;
    mobs.add(new RandomMob(armedTNT, 5));
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.