Class Key

java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Key

public class Key
extends InventoryItem
  • Field Details

    • highlightDoor

      public static final Key[] highlightDoor
  • Constructor Details

    • Key

      public Key​(java.lang.String module, java.lang.String name, java.lang.String type, java.lang.String tex)
  • Method Details

    • getSaveType

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

      public void takeKeyId()
    • 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 java.lang.String getCategory()
      Overrides:
      getCategory in class InventoryItem
    • save

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

      public void load​(java.nio.ByteBuffer input, int WorldVersion, boolean net) throws java.io.IOException
      Overrides:
      load in class InventoryItem
      Throws:
      java.io.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)