public class GlobalPosHelper
extends java.lang.Object
| Constructor and Description |
|---|
GlobalPosHelper() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.math.GlobalPos |
fromJson(com.google.gson.JsonObject json) |
static net.minecraft.util.math.GlobalPos |
fromNBT(net.minecraft.nbt.CompoundNBT tag) |
static net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.util.math.GlobalPos globalPos)
Get the tile entity at the given global pos.
|
static net.minecraft.world.server.ServerWorld |
getWorldForGlobalPos(net.minecraft.util.math.GlobalPos pos) |
static boolean |
isSameWorld(net.minecraft.util.math.GlobalPos pos,
net.minecraft.world.World world) |
static net.minecraft.util.math.GlobalPos |
makeGlobalPos(net.minecraft.world.World w,
net.minecraft.util.math.BlockPos pos) |
static java.lang.String |
prettyPrint(net.minecraft.util.math.GlobalPos pos) |
static com.google.gson.JsonElement |
toJson(net.minecraft.util.math.GlobalPos pos) |
static net.minecraft.nbt.CompoundNBT |
toNBT(net.minecraft.util.math.GlobalPos globalPos) |
public static net.minecraft.nbt.CompoundNBT toNBT(net.minecraft.util.math.GlobalPos globalPos)
public static net.minecraft.util.math.GlobalPos fromNBT(net.minecraft.nbt.CompoundNBT tag)
public static com.google.gson.JsonElement toJson(net.minecraft.util.math.GlobalPos pos)
public static net.minecraft.util.math.GlobalPos fromJson(com.google.gson.JsonObject json)
public static net.minecraft.world.server.ServerWorld getWorldForGlobalPos(net.minecraft.util.math.GlobalPos pos)
public static net.minecraft.util.math.GlobalPos makeGlobalPos(net.minecraft.world.World w,
net.minecraft.util.math.BlockPos pos)
public static boolean isSameWorld(net.minecraft.util.math.GlobalPos pos,
net.minecraft.world.World world)
public static java.lang.String prettyPrint(net.minecraft.util.math.GlobalPos pos)
public static net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.util.math.GlobalPos globalPos)
globalPos - the global pos