Class ExpandLevelReader
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandLevelReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSeeSkyFromBelowWater(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) static net.minecraft.world.level.biome.BiomegetBiome(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) Gets the biome at a given position.static intgetSeaLevel(net.minecraft.world.level.LevelReader internal) Gets the height of the sea level.static intgetSkyDarken(net.minecraft.world.level.LevelReader internal) static booleanhasChunk(net.minecraft.world.level.LevelReader internal, int x, int z) static booleanisClientSide(net.minecraft.world.level.LevelReader internal) static booleanisEmptyBlock(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) Checks if the block at a given position is empty.static booleanisWaterAt(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos)
-
Constructor Details
-
ExpandLevelReader
public ExpandLevelReader()
-
-
Method Details
-
hasChunk
public static boolean hasChunk(net.minecraft.world.level.LevelReader internal, int x, int z) -
getSkyDarken
public static int getSkyDarken(net.minecraft.world.level.LevelReader internal) -
getBiome
public static net.minecraft.world.level.biome.Biome getBiome(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) Gets the biome at a given position.- Parameters:
pos- The position to look up.- Returns:
- The biome at the given position.
- DocParam:
- pos new BlockPos(0, 1, 2)
-
isClientSide
public static boolean isClientSide(net.minecraft.world.level.LevelReader internal) -
getSeaLevel
public static int getSeaLevel(net.minecraft.world.level.LevelReader internal) Gets the height of the sea level.- Returns:
- The height of the sea level.
-
isEmptyBlock
public static boolean isEmptyBlock(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) Checks if the block at a given position is empty.- Parameters:
pos- The position to look up.- Returns:
- Whether the block is empty.
- DocParam:
- pos new BlockPos(0, 1, 2)
-
canSeeSkyFromBelowWater
public static boolean canSeeSkyFromBelowWater(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos) -
isWaterAt
public static boolean isWaterAt(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos)
-