AgingDisplayState
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import mods.botanypotstweaker.displaystate.AgingDisplayState;
Extends
AgingDisplayState extends TransitionalDisplayState
.
Members
static of(state as BlockState) as AgingDisplayState
Creates a new AgingDisplayState from the given script.zs
BlockState
Returns: a new display state from the given blockstate
AgingDisplayState.of(myBlockState);
Parameters:
Return Type:
AgingDisplayState
static of(state as DisplayState) as TransitionalDisplayState
Creates a TransitionalDisplayState object from a given DisplayState.script.zs
Returns: A TransitionalDisplayState object created from the given DisplayState.
AgingDisplayState.of(myDisplayState);
Parameters:
state: DisplayState
Type: DisplayState
- The DisplayState object to be included in the TransitionalDisplayState.
Return Type:
TransitionalDisplayState
static of(states as List<DisplayState>) as TransitionalDisplayState
AgingDisplayState.of(myList);
Parameters:
states: List<DisplayState>
Type: List<DisplayState>
Return Type:
TransitionalDisplayState
static of(data as MapData) as DisplayState
Creates a display state from the given data.script.zs
Returns: A new display state from the given data.
AgingDisplayState.of({"block": {"block": "minecraft:diamond_block", "properties": {}}, "type": "botanypots:aging"});
Return Type:
DisplayState