MapId

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.item.component.MapId;

Members

Getter
script.zs
// MapId.id as int
myMapId.id

Return Type: int

static of(value as int) as MapId
The map id to assign to the new object.

Returns: A new MapId instance.

script.zs
// MapId.of(value as int) as MapId;
MapId.of(myInt);

Parameters:

value Type: int - A map id. These are assigned by vanilla on the server side.

Return Type: MapId