Class SlimeProperty<T>

java.lang.Object
com.infernalsuite.aswm.api.world.properties.SlimeProperty<T>
Direct Known Subclasses:
SlimePropertyBoolean, SlimePropertyFloat, SlimePropertyInt, SlimePropertyString

public abstract class SlimeProperty<T> extends Object
A property describing behavior of a slime world.
  • Constructor Details

    • SlimeProperty

      protected SlimeProperty(String nbtName, T defaultValue)
    • SlimeProperty

      protected SlimeProperty(String nbtName, T defaultValue, Function<T,Boolean> validator)
  • Method Details

    • writeValue

      protected abstract void writeValue(com.flowpowered.nbt.CompoundMap compound, T value)
    • readValue

      protected abstract T readValue(com.flowpowered.nbt.Tag<?> compoundTag)
    • getNbtName

      public String getNbtName()
    • getDefaultValue

      public T getDefaultValue()
    • getValidator

      public Function<T,Boolean> getValidator()
    • toString

      public String toString()
      Overrides:
      toString in class Object