Map
Link to map
The Map Package allows you to set a waypoint using BASE's waypoint event handler.
导入相关包
Link to 导入相关包
You can import the package so that you don't have to retype it everytime.
Copyimport mods.contenttweaker.Map;
Adding Waypoints
Link to adding-waypoints
This is the only method exposed by the Map package and it allows you to set a waypoint at the given location.
It is a void method with the parameters:
- string name
- IWorld
- IBlockPos
- CT颜色(CTColor)
CopyMap.setWaypoint(String name, IWorld world, IBlockPos pos, CTColor color)