Package com.flansmod.common.parts

Examples of com.flansmod.common.parts.PartType


  @Override
    public void addInformation(ItemStack stack, EntityPlayer player, List lines, boolean advancedTooltips)
  {
    NBTTagCompound tags = getTagCompound(stack, player.worldObj);
    String engineName = tags.getString("Engine");
    PartType part = PartType.getPart(engineName);
    if(part != null)
      lines.add(part.name);
  }
View Full Code Here


    {
            Collections.addAll(lines, type.description.split("_"));
    }
    NBTTagCompound tags = getTagCompound(stack, player.worldObj);
    String engineName = tags.getString("Engine");
    PartType part = PartType.getPart(engineName);
    if(part != null)
      lines.add(part.name);
  }
View Full Code Here

        //Get the stack in each slot
        ItemStack stackInSlot = temporaryInventory.getStackInSlot(n);
        //Check to see if its a part
        if(stackInSlot != null && stackInSlot.getItem() instanceof ItemPart)
        {
          PartType partType = ((ItemPart)stackInSlot.getItem()).type;
          //Check its an engine that we can use
          if(partType.category == 2 && partType.worksWith.contains(EnumType.getFromObject(selectedType)))
          {
            //If we already have engines of this type, add these ones to the stack
            if(engines.containsKey(partType))
View Full Code Here

    {
            Collections.addAll(lines, type.description.split("_"));
    }
    NBTTagCompound tags = getTagCompound(stack, player.worldObj);
    String engineName = tags.getString("Engine");
    PartType part = PartType.getPart(engineName);
    if(part != null)
      lines.add(part.name);
  }
View Full Code Here

      //Get the stack in each slot
      ItemStack stackInSlot = temporaryInventory.getStackInSlot(n);
      //Check to see if its a part
      if(stackInSlot != null && stackInSlot.getItem() instanceof ItemPart)
      {
        PartType partType = ((ItemPart)stackInSlot.getItem()).type;
        //Check its an engine
        if(partType.category == 2 && partType.worksWith.contains(EnumType.getFromObject(type)))
        {
          //If we already have engines of this type, add these ones to the stack
          if(engines.containsKey(partType))
View Full Code Here

TOP

Related Classes of com.flansmod.common.parts.PartType

Copyright © 2018 www.massapicom. 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.