net.minecraft.block

public class LightBlock

extends Block implements Waterloggable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.LightBlock
net.minecraft.class_6089
net.minecraft.block.LightBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LightBlock>
CODEC
field_46388
CODEC
public static final int
MAX_LEVEL
field_33722
field_33722
public static final IntProperty
LEVEL
field_31187
LEVEL_15
public static final BooleanProperty
WATERLOGGED
field_31188
WATERLOGGED
public static final ToIntFunction<BlockState>
LIGHT_EMISSION
field_31189
STATE_TO_LUMINANCE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<LightBlock>
codec()
method_53969()
getCodec()
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected BlockRenderType
getRenderShape(BlockState state)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
protected float
getShadeBrightness(BlockState state, BlockGetter level, BlockPos pos)
method_9575(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getAmbientOcclusionLightLevel(BlockState arg0, BlockView arg1, BlockPos arg2)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction direction, BlockPos neighbourPos, BlockState neighbour, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected ItemStack
getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
getPickStack(WorldView arg0, BlockPos arg1, BlockState arg2, boolean arg3)
public static ItemStack
setLightOnStack(ItemStack result, int lightLevel)
method_47377(class_1799 arg0, int arg1)
addNbtForLevel(ItemStack stack, int level)
private static int
lambda$static$0(BlockState arg0)
method_35281(class_2680 arg0)
method_35281(BlockState state)