Class SlimePropertyIntArray
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<int[],net.kyori.adventure.nbt.IntArrayBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyIntArray
public class SlimePropertyIntArray
extends SlimeProperty<int[],net.kyori.adventure.nbt.IntArrayBinaryTag>
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.IntArrayBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyIntArraystatic SlimePropertyIntArrayprotected net.kyori.adventure.nbt.IntArrayBinaryTagcreateTag(int[] value) protected int[]readValue(net.kyori.adventure.nbt.IntArrayBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Method Details
-
create
-
create
public static SlimePropertyIntArray create(@NotNull @NotNull String key, int[] defaultValue, @NotNull @NotNull Function<int[], Boolean> validator) -
createTag
protected net.kyori.adventure.nbt.IntArrayBinaryTag createTag(int[] value) - Specified by:
createTagin classSlimeProperty<int[],net.kyori.adventure.nbt.IntArrayBinaryTag>
-
readValue
protected int[] readValue(net.kyori.adventure.nbt.IntArrayBinaryTag tag) - Specified by:
readValuein classSlimeProperty<int[],net.kyori.adventure.nbt.IntArrayBinaryTag>
-
cast
protected net.kyori.adventure.nbt.IntArrayBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<int[],net.kyori.adventure.nbt.IntArrayBinaryTag>
-