Class SlimePropertyBoolean
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Boolean,net.kyori.adventure.nbt.ByteBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyBoolean
public class SlimePropertyBoolean
extends SlimeProperty<Boolean,net.kyori.adventure.nbt.ByteBinaryTag>
A slime property of type boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSlimePropertyBoolean(String key, Boolean defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, boolean, Function)instead -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.ByteBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyBooleanstatic SlimePropertyBooleanprotected net.kyori.adventure.nbt.ByteBinaryTagprotected BooleanreadValue(net.kyori.adventure.nbt.ByteBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Constructor Details
-
SlimePropertyBoolean
Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, boolean)instead -
SlimePropertyBoolean
@Deprecated(forRemoval=true) public SlimePropertyBoolean(String key, Boolean defaultValue, Function<Boolean, Boolean> validator) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, boolean, Function)instead
-
-
Method Details
-
create
-
create
public static SlimePropertyBoolean create(@NotNull @NotNull String key, boolean defaultValue, @NotNull @NotNull Function<Boolean, Boolean> validator) -
createTag
- Specified by:
createTagin classSlimeProperty<Boolean,net.kyori.adventure.nbt.ByteBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Boolean,net.kyori.adventure.nbt.ByteBinaryTag>
-
cast
protected net.kyori.adventure.nbt.ByteBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Boolean,net.kyori.adventure.nbt.ByteBinaryTag>
-
create(String, boolean)instead