Class Key


public final class Key extends InventoryItem
  • Field Details

    • highlightDoor

      public static final Key[] highlightDoor
  • Constructor Details

  • Method Details

    • getSaveType

      public int getSaveType()
      Overrides:
      getSaveType in class InventoryItem
    • takeKeyId

      public void takeKeyId()
      Get the key number of the building and set it to the key
    • setHighlightDoors

      public static void setHighlightDoors(int playerNum, InventoryItem item)
    • getKeyId

      public int getKeyId()
      Overrides:
      getKeyId in class InventoryItem
    • setKeyId

      public void setKeyId(int keyId)
      Overrides:
      setKeyId in class InventoryItem
    • getCategory

      public String getCategory()
      Overrides:
      getCategory in class InventoryItem
    • save

      public void save(ByteBuffer output, boolean net) throws IOException
      Overrides:
      save in class InventoryItem
      Throws:
      IOException
    • load

      public void load(ByteBuffer input, int WorldVersion) throws IOException
      Overrides:
      load in class InventoryItem
      Throws:
      IOException
    • isPadlock

      public boolean isPadlock()
    • setPadlock

      public void setPadlock(boolean padlock)
    • getNumberOfKey

      public int getNumberOfKey()
    • setNumberOfKey

      public void setNumberOfKey(int numberOfKey)
    • isDigitalPadlock

      public boolean isDigitalPadlock()
    • setDigitalPadlock

      public void setDigitalPadlock(boolean digitalPadlock)