IChunkPos - roidrole/Roids-Tweaker GitHub Wiki

CraftTweaker has no method for getting a ChunkPos, so I made one.

It is really just a wrapper for MC's ChunkPos

Import :

import mods.roidtweaker.minecraft.IChunkPos;

Methods :

Method Parameter Description
getChunkPos x as int, z as int Static. Creates a new IChunkPos with the given chunk coofdinates
getChunkPos pas as IBlockPos Static, converts an IBlockPos to IChunkPos
getBlockPos int x, int y, int z Instance. Gets a IBlockPos with coordinates relative to this chunk