Class PropertyType
java.lang.Object
org.geysermc.geyser.api.block.custom.property.PropertyType
This class is used to define a custom block property's type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyTypeGets the property type for a boolean.static PropertyTypeGets the property type for an integer.static PropertyTypeGets the property type for a string.Class<?> Gets the class of the property type
-
Method Details
-
booleanProp
Gets the property type for a boolean.- Returns:
- The property type for a boolean.
-
integerProp
Gets the property type for an integer.- Returns:
- The property type for an integer.
-
stringProp
Gets the property type for a string.- Returns:
- The property type for a string.
-
typeClass
Gets the class of the property type- Returns:
- The class of the property type.
-