AbstractSimpleDisplayState
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.AbstractSimpleDisplayState;
Extends
AbstractSimpleDisplayState extends DisplayState
.
Members
getRenderState(progress as float) as BlockState
Gets the script.zs
BlockState
that will render for the given progress.Returns: the BlockState that will render for the given progress
myAbstractSimpleDisplayState.getRenderState(myFloat);
Parameters:
progress: float
Type: float
- the progress to render at
Return Type:
BlockState
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.
AbstractSimpleDisplayState.of({"block": {"block": "minecraft:diamond_block", "properties": {}}, "type": "botanypots:aging"});
Return Type:
DisplayState