Class SlimePropertyShort

java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyShort

public class SlimePropertyShort extends SlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
  • Method Details

    • create

      public static SlimePropertyShort create(@NotNull @NotNull String key, short defaultValue)
    • create

      public static SlimePropertyShort create(@NotNull @NotNull String key, short defaultValue, @NotNull @NotNull Function<Short,Boolean> validator)
    • createTag

      protected net.kyori.adventure.nbt.ShortBinaryTag createTag(Short value)
      Specified by:
      createTag in class SlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
    • readValue

      protected Short readValue(net.kyori.adventure.nbt.ShortBinaryTag tag)
      Specified by:
      readValue in class SlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
    • cast

      protected net.kyori.adventure.nbt.ShortBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag)
      Specified by:
      cast in class SlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>