Enum Class PropertyType

java.lang.Object
java.lang.Enum<PropertyType>
group24.escaperoom.entities.properties.PropertyType
All Implemented Interfaces:
Serializable, Comparable<PropertyType>, Constable

public enum PropertyType extends Enum<PropertyType>
As a convention, properties that hold some value or state should be "NameProperty" but a property that is a marker property (extends PhantomProperty) should be just a "Name" e.g. Interactable is a marker, ContainsItemProperty holds values
  • Enum Constant Details

    • Animated

      public static final PropertyType Animated
    • Barrier

      public static final PropertyType Barrier
    • Brushable

      public static final PropertyType Brushable
    • Collideable

      public static final PropertyType Collideable
    • Connector

      public static final PropertyType Connector
    • ConnectorSource

      public static final PropertyType ConnectorSource
    • ConnectorRelay

      public static final PropertyType ConnectorRelay
    • ConnectorSink

      public static final PropertyType ConnectorSink
    • ConnectorBridge

      public static final PropertyType ConnectorBridge
    • CompletesLevel

      public static final PropertyType CompletesLevel
    • ConditionallyActive

      public static final PropertyType ConditionallyActive
    • ConditionallyVisible

      public static final PropertyType ConditionallyVisible
    • Containable

      public static final PropertyType Containable
    • ContainsItemsProperty

      public static final PropertyType ContainsItemsProperty
    • CoveringProperty

      public static final PropertyType CoveringProperty
    • Fragile

      public static final PropertyType Fragile
    • Interactable

      public static final PropertyType Interactable
    • InvalidProperty

      public static final PropertyType InvalidProperty
    • LockedProperty

      public static final PropertyType LockedProperty
    • Obtainable

      public static final PropertyType Obtainable
    • Player

      public static final PropertyType Player
    • ReadableProperty

      public static final PropertyType ReadableProperty
    • Spinable

      public static final PropertyType Spinable
    • Stylable

      public static final PropertyType Stylable
    • TiledBrushable

      public static final PropertyType TiledBrushable
    • Toggleable

      public static final PropertyType Toggleable
    • Unique

      public static final PropertyType Unique
    • UnlocksProperty

      public static final PropertyType UnlocksProperty
    • Viewable

      public static final PropertyType Viewable
  • Method Details

    • values

      public static PropertyType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PropertyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPropertyClass

      public Class<? extends ItemProperty<? extends ItemPropertyValue>> getPropertyClass()
    • asJsonString

      public String asJsonString()
    • getEmptyProperty

      public ItemProperty<? extends ItemPropertyValue> getEmptyProperty()
    • fromString

      public static PropertyType fromString(String s)