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
    Modifier and Type
    Field
    Description
    static final Pattern
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty
    createValue(int index, @Nullable T value)
     
    int
     
    default org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty
    defaultValue(int index)
     
    int
    indexOf(T value)
     
    default org.cloudburstmc.nbt.NbtMap
     
    default void
    validateAllValues(org.geysermc.geyser.api.util.Identifier name, List<String> values)
     

    Methods inherited from interface org.geysermc.geyser.api.entity.property.GeyserEntityProperty

    defaultValue, identifier

    Methods inherited from interface org.geysermc.geyser.entity.properties.type.PropertyType

    apply
  • Field Details

    • VALUE_VALIDATION_REGEX

      static final Pattern VALUE_VALIDATION_REGEX
  • Method Details

    • nbtMap

      default org.cloudburstmc.nbt.NbtMap nbtMap()
      Specified by:
      nbtMap in interface PropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
    • validateAllValues

      default void validateAllValues(org.geysermc.geyser.api.util.Identifier name, List<String> values)
    • allBedrockValues

      List<String> allBedrockValues()
    • defaultValue

      default org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty defaultValue(int index)
      Specified by:
      defaultValue in interface PropertyType<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:
      createValue in interface PropertyType<T,org.cloudburstmc.protocol.bedrock.data.entity.IntEntityProperty>
    • indexOf

      int indexOf(T value)
    • defaultIndex

      int defaultIndex()