Class Container

All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class Container extends Item
Implementation of container items, such as bags and key rings.
  • Constructor Details

    • Container

      public Container(String name, String clazz, String subclass, Map<String,​String> attributes)
      Creates a new Container.
      Parameters:
      name - name of container
      clazz - class (or type) of item
      subclass - subclass of this item
      attributes - attributes (like container slot name). may be empty or null
    • Container

      public Container(Container item)
      Copy constructor. Needed by the bank chests.
      Parameters:
      item - copied container