Interface AbstractEnumProperty<T>
- All Superinterfaces:
org.geysermc.geyser.api.entity.property.GeyserEntityProperty<T>,PropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
- All Known Implementing Classes:
EnumProperty,StringEnumProperty
public interface AbstractEnumProperty<T>
extends PropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault org.cloudburstmc.protocol.bedrock.data.entity.IntEntityPropertycreateValue(int index, @Nullable T value) intdefault org.cloudburstmc.protocol.bedrock.data.entity.IntEntityPropertydefaultValue(int index) intdefault org.cloudburstmc.nbt.NbtMapnbtMap()default voidvalidateAllValues(org.geysermc.geyser.api.util.Identifier name, List<String> values) Methods inherited from interface org.geysermc.geyser.api.entity.property.GeyserEntityProperty
defaultValue, identifierMethods inherited from interface org.geysermc.geyser.entity.properties.type.PropertyType
apply
-
Field Details
-
VALUE_VALIDATION_REGEX
-
-
Method Details
-
nbtMap
default org.cloudburstmc.nbt.NbtMap nbtMap()- Specified by:
nbtMapin interfacePropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
-
validateAllValues
-
allBedrockValues
-
defaultValue
default org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty defaultValue(int index) - Specified by:
defaultValuein interfacePropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
-
createValue
default org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty createValue(int index, @Nullable T value) - Specified by:
createValuein interfacePropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
-
indexOf
-
defaultIndex
int defaultIndex()
-