Class ExpandBlockGetter
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandBlockGetter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IDatagetBlockEntityData(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 doublegetBlockFloorHeight(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos) static net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos) Gets the block state at a given position.static intgetLightEmission(net.minecraft.world.level.BlockGetter internal, net.minecraft.core.BlockPos pos) static intgetMaxLightLevel(net.minecraft.world.level.BlockGetter internal)
-
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)
-