Class PropertyType

java.lang.Object
org.geysermc.geyser.api.block.custom.property.PropertyType

public class PropertyType extends Object
This class is used to define a custom block property's type.
  • Method Details

    • booleanProp

      public static @NonNull PropertyType booleanProp()
      Gets the property type for a boolean.
      Returns:
      The property type for a boolean.
    • integerProp

      public static @NonNull PropertyType integerProp()
      Gets the property type for an integer.
      Returns:
      The property type for an integer.
    • stringProp

      public static @NonNull PropertyType stringProp()
      Gets the property type for a string.
      Returns:
      The property type for a string.
    • typeClass

      public @NonNull Class<?> typeClass()
      Gets the class of the property type
      Returns:
      The class of the property type.