Interface CustomBlockState
public interface CustomBlockState
This class is used to store a custom block state, which contains CustomBlockData
tied to defined properties and values
-
Method Details
-
block
CustomBlockData block()Gets the custom block data associated with the state- Returns:
- The custom block data for the state.
-
name
String name()Gets the name of the state- Returns:
- The name of the state.
-
property
Gets the given property for the state- Parameters:
propertyName- the property name- Returns:
- the boolean, int, or string property.
-
properties
Gets a map of the properties for the state- Returns:
- The properties for the state.
-