public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.client.entity.EntityPlayerSP |
getClientPlayer()
Gets the client player.
|
static net.minecraft.client.multiplayer.WorldClient |
getClientWorld()
Gets the client world.
|
static java.util.Optional<net.minecraft.world.chunk.Chunk> |
getLoadedChunk(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Gets an
Optional for the loaded Chunk at the specified BlockPos. |
static net.minecraft.util.ResourceLocation |
getResourceLocation(java.lang.String name)
Creates a
ResourceLocation from the specified name. |
static boolean |
isChunkLoaded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Checks if is the
Chunk is loaded for the specified BlockPos. |
public static boolean isChunkLoaded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Chunk is loaded for the specified BlockPos.world - the worldpos - the pospublic static java.util.Optional<net.minecraft.world.chunk.Chunk> getLoadedChunk(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Optional for the loaded Chunk at the specified BlockPos.world - the worldpos - the pospublic static net.minecraft.client.multiplayer.WorldClient getClientWorld()
public static net.minecraft.client.entity.EntityPlayerSP getClientPlayer()
public static net.minecraft.util.ResourceLocation getResourceLocation(java.lang.String name)
ResourceLocation from the specified name.name - the name