Class SlimePropertyString
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<String,net.kyori.adventure.nbt.StringBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyString
public class SlimePropertyString
extends SlimeProperty<String,net.kyori.adventure.nbt.StringBinaryTag>
A slime property of type integer
-
Constructor Summary
ConstructorsConstructorDescriptionSlimePropertyString(String key, String 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, String, Function)instead -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.StringBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyStringstatic SlimePropertyStringprotected net.kyori.adventure.nbt.StringBinaryTagprotected StringreadValue(net.kyori.adventure.nbt.StringBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Constructor Details
-
SlimePropertyString
Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, String)instead -
SlimePropertyString
@Deprecated(forRemoval=true) public SlimePropertyString(String key, String defaultValue, Function<String, Boolean> validator) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, String, Function)instead
-
-
Method Details
-
create
-
create
-
createTag
- Specified by:
createTagin classSlimeProperty<String,net.kyori.adventure.nbt.StringBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<String,net.kyori.adventure.nbt.StringBinaryTag>
-
cast
protected net.kyori.adventure.nbt.StringBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<String,net.kyori.adventure.nbt.StringBinaryTag>
-
create(String, String)instead