Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

TooltipContext

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 crafttweaker.api.tooltip.TooltipContext;

Members

mapData(var1 as MapId) as MapItemSavedData
script.zs
// TooltipContext.mapData(var1 as MapId) as MapItemSavedData;
myTooltipContext.mapData(myMapId);

Parameters:

var1 Type: MapId

Return Type: MapItemSavedData

static of(level as Level) as TooltipContext
script.zs
// TooltipContext.of(level as Level) as TooltipContext;
TooltipContext.of(myLevel);

Parameters:

level Type: Level

Return Type: TooltipContext

Getter
script.zs
// TooltipContext.tickRate as float
myTooltipContext.tickRate

Return Type: float