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.IntArrayBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyIntArray
static SlimePropertyIntArray
protected net.kyori.adventure.nbt.IntArrayBinaryTag
createTag
(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:
createTag
in classSlimeProperty<int[],
net.kyori.adventure.nbt.IntArrayBinaryTag>
-
readValue
protected int[] readValue(net.kyori.adventure.nbt.IntArrayBinaryTag tag) - Specified by:
readValue
in classSlimeProperty<int[],
net.kyori.adventure.nbt.IntArrayBinaryTag>
-
cast
protected net.kyori.adventure.nbt.IntArrayBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
cast
in classSlimeProperty<int[],
net.kyori.adventure.nbt.IntArrayBinaryTag>
-