Class ExpandBlockGetter

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

@ZenRegister public class ExpandBlockGetter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static IData
    getBlockEntityData(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
    Gets the tile entity data for a tile entity at a given position.
    static double
    getBlockFloorHeight(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
     
    static net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
    Gets the block state at a given position.
    static int
    getLightEmission(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
     
    static int
    getMaxLightLevel(net.minecraft.world.level.BlockGetter internal)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandBlockGetter

      public ExpandBlockGetter()
  • Method Details

    • getBlockEntityData

      public static IData getBlockEntityData(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
      Gets the tile entity data for a tile entity at a given position.
      Parameters:
      pos - The position of the tile entity.
      Returns:
      The data of the tile entity.
      DocParam:
      pos new BlockPos(0, 1, 2)
    • getBlockState

      public static net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
      Gets the block state at a given position.
      Parameters:
      pos - The position to look up.
      Returns:
      The block state at the position.
      DocParam:
      pos new BlockPos(0, 1, 2)
    • getLightEmission

      public static int getLightEmission(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)
    • getMaxLightLevel

      public static int getMaxLightLevel(net.minecraft.world.level.BlockGetter internal)
    • getBlockFloorHeight

      public static double getBlockFloorHeight(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos)