Class SlimePropertyList<T,Z extends net.kyori.adventure.nbt.BinaryTag>

java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<List<T>,net.kyori.adventure.nbt.ListBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyList<T,Z>

public class SlimePropertyList<T,Z extends net.kyori.adventure.nbt.BinaryTag> extends SlimeProperty<List<T>,net.kyori.adventure.nbt.ListBinaryTag>
  • Method Details

    • create

      public static <T, Z extends net.kyori.adventure.nbt.BinaryTag> SlimePropertyList<T,Z> create(@NotNull @NotNull String key, @NotNull @NotNull List<T> defaultValue, @NotNull @NotNull net.kyori.adventure.nbt.BinaryTagType<Z> listTagElementType, @NotNull @NotNull Function<T,Z> elementTagConverter, @NotNull @NotNull Function<Z,T> elementTagExtractor)
    • create

      public static <T, Z extends net.kyori.adventure.nbt.BinaryTag> SlimePropertyList<T,Z> create(@NotNull @NotNull String key, @NotNull @NotNull List<T> defaultValue, @NotNull @NotNull Function<List<T>,Boolean> validator, @NotNull @NotNull net.kyori.adventure.nbt.BinaryTagType<Z> listTagElementType, @NotNull @NotNull Function<T,Z> elementTagConverter, @NotNull @NotNull Function<Z,T> elementTagExtractor)
    • createTag

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

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

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