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 Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.ListBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static <T,
Z extends net.kyori.adventure.nbt.BinaryTag>
SlimePropertyList<T, Z> create
(@NotNull String key, @NotNull List<T> defaultValue, @NotNull Function<List<T>, Boolean> validator, @NotNull net.kyori.adventure.nbt.BinaryTagType<Z> listTagElementType, @NotNull Function<T, Z> elementTagConverter, @NotNull Function<Z, T> elementTagExtractor) static <T,
Z extends net.kyori.adventure.nbt.BinaryTag>
SlimePropertyList<T, Z> create
(@NotNull String key, @NotNull List<T> defaultValue, @NotNull net.kyori.adventure.nbt.BinaryTagType<Z> listTagElementType, @NotNull Function<T, Z> elementTagConverter, @NotNull Function<Z, T> elementTagExtractor) protected net.kyori.adventure.nbt.ListBinaryTag
readValue
(net.kyori.adventure.nbt.ListBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
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
- Specified by:
createTag
in classSlimeProperty<List<T>,
net.kyori.adventure.nbt.ListBinaryTag>
-
readValue
- Specified by:
readValue
in classSlimeProperty<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 classSlimeProperty<List<T>,
net.kyori.adventure.nbt.ListBinaryTag>
-