Class ExpandLevelReader

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandLevelReader

@ZenRegister public class ExpandLevelReader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canSeeSkyFromBelowWater(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos)
     
    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.
    static int
    getSeaLevel(net.minecraft.world.level.LevelReader internal)
    Gets the height of the sea level.
    static int
    getSkyDarken(net.minecraft.world.level.LevelReader internal)
     
    static boolean
    hasChunk(net.minecraft.world.level.LevelReader internal, int x, int z)
     
    static boolean
    isClientSide(net.minecraft.world.level.LevelReader internal)
     
    static boolean
    isEmptyBlock(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos)
    Checks if the block at a given position is empty.
    static boolean
    isWaterAt(net.minecraft.world.level.LevelReader internal, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)