net.minecraft.block

public class DaylightDetectorBlock

extends BlockWithEntity

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.DaylightDetectorBlock
net.minecraft.world.level.block.DaylightDetectorBlock
net.minecraft.class_2309
net.minecraft.block.DaylightDetectorBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<DaylightDetectorBlock>
CODEC
CODEC
field_46331
CODEC
public static final IntProperty
POWER
POWER
field_10897
POWER
public static final BooleanProperty
INVERTED
INVERTED
field_10899
INVERTED
private static final VoxelShape
SHAPE
SHAPE
field_10898
SHAPE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<DaylightDetectorBlock>
codec()
codec()
method_53969()
getCodec()
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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
useShapeForLightOcclusion(BlockState state)
useShapeForLightOcclusion(BlockState state)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
protected int
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
private static void
updateSignalStrength(BlockState state, Level level, BlockPos pos)
updateSignalStrength(BlockState state, Level level, BlockPos pos)
method_9983(class_2680 arg0, class_1937 arg1, class_2338 arg2)
updateState(BlockState state, World world, BlockPos pos)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
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 boolean
isSignalSource(BlockState state)
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public <T extends BlockEntity> BlockEntityTicker<T>
getTicker(Level level, BlockState blockState, BlockEntityType<T> type)
getTicker(Level level, BlockState blockState, BlockEntityType<T> type)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
private static void
tickEntity(Level level, BlockPos blockPos, BlockState blockState, DaylightDetectorBlockEntity blockEntity)
tickEntity(Level level, BlockPos blockPos, BlockState blockState, DaylightDetectorBlockEntity blockEntity)
method_31642(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2603 arg3)
tick(World world, BlockPos pos, BlockState state, DaylightDetectorBlockEntity blockEntity)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)