Class SlimePropertyLong
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Long,net.kyori.adventure.nbt.LongBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyLong
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.LongBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyLongstatic SlimePropertyLongprotected net.kyori.adventure.nbt.LongBinaryTagprotected LongreadValue(net.kyori.adventure.nbt.LongBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Method Details
-
create
-
create
public static SlimePropertyLong create(@NotNull @NotNull String key, long defaultValue, @NotNull @NotNull Function<Long, Boolean> validator) -
createTag
- Specified by:
createTagin classSlimeProperty<Long,net.kyori.adventure.nbt.LongBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Long,net.kyori.adventure.nbt.LongBinaryTag>
-
cast
protected net.kyori.adventure.nbt.LongBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Long,net.kyori.adventure.nbt.LongBinaryTag>
-