Home Commands Examples Getting Started With Scripts Global Keywords
Generic Recipe Manipulation

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.

script.zs
import mods.botanypotstweaker.displaystate.AbstractSimpleDisplayState;

Extends

AbstractSimpleDisplayState extends DisplayState.

Members

getRenderState(progress as float) as BlockState
Gets the BlockState that will render for the given progress.

Returns: the BlockState that will render for the given progress

script.zs
// AbstractSimpleDisplayState.getRenderState(progress as float) as BlockState;
myAbstractSimpleDisplayState.getRenderState(myFloat);

Parameters:

progress 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.

Returns: A new display state from the given data.

script.zs
// AbstractSimpleDisplayState.of(data as MapData) as DisplayState;
AbstractSimpleDisplayState.of({"block": {"block": "minecraft:diamond_block", "properties": {}}, "type": "botanypots:aging"});

Parameters:

data Type: MapData - the data to deserialize.

Return Type: DisplayState