net.minecraft.block

public class BeehiveBlock

extends BlockWithEntity

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.BeehiveBlock
net.minecraft.class_4481
net.minecraft.block.BeehiveBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<BeehiveBlock>
CODEC
field_46274
CODEC
public static final EnumProperty<Direction>
FACING
field_20419
FACING
public static final IntProperty
HONEY_LEVEL
field_20420
HONEY_LEVEL
public static final int
MAX_HONEY_LEVELS
field_31011
FULL_HONEY_LEVEL

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<BeehiveBlock>
codec()
method_53969()
getCodec()
protected boolean
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
public void
playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack destroyedWith)
method_9556(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_2680 arg3, class_2586 arg4, class_1799 arg5)
afterBreak(World arg0, PlayerEntity arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
protected void
onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> onHit)
method_55124(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1927 arg3, BiConsumer<class_1799, class_2338> arg4)
onExploded(BlockState arg0, ServerWorld arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
private void
angerNearbyBees(Level level, BlockPos pos)
method_23893(class_1937 arg0, class_2338 arg1)
angerNearbyBees(World world, BlockPos pos)
public static void
dropHoneycomb(ServerLevel level, ItemStack tool, BlockState blockState, BlockEntity blockEntity, Entity entity, BlockPos pos)
method_21842(class_3218 arg0, class_1799 arg1, class_2680 arg2, class_2586 arg3, class_1297 arg4, class_2338 arg5)
dropHoneycomb(ServerWorld world, ItemStack tool, BlockState state, BlockEntity blockEntity, Entity interactingEntity, BlockPos pos)
protected ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
private boolean
hiveContainsBees(Level level, BlockPos pos)
method_23894(class_1937 arg0, class_2338 arg1)
hasBees(World world, BlockPos pos)
public void
releaseBeesAndResetHoneyLevel(Level level, BlockState state, BlockPos pos, Player player, BeehiveBlockEntity$BeeReleaseStatus beeReleaseStatus)
method_21841(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1657 arg3, class_4482$class_4484 arg4)
takeHoney(World world, BlockState state, BlockPos pos, PlayerEntity player, BeehiveBlockEntity$BeeState beeState)
public void
resetHoneyLevel(Level level, BlockState state, BlockPos pos)
method_23754(class_1937 arg0, class_2680 arg1, class_2338 arg2)
takeHoney(World world, BlockState state, BlockPos pos)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
private void
trySpawnDripParticles(Level level, BlockPos pos, BlockState state)
method_21843(class_1937 arg0, class_2338 arg1, class_2680 arg2)
spawnHoneyParticles(World world, BlockPos pos, BlockState state)
private void
spawnParticle(Level level, BlockPos pos, VoxelShape dripShape, double height)
method_21844(class_1937 arg0, class_2338 arg1, class_265 arg2, double arg3)
addHoneyParticle(World world, BlockPos pos, VoxelShape shape, double height)
private void
spawnFluidParticle(Level level, double x1, double x2, double z1, double z2, double y)
method_21840(class_1937 arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
addHoneyParticle(World world, double minX, double maxX, double minZ, double maxZ, double height)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
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)
public BlockEntity
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)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
public BlockState
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
protected List<ItemStack>
getDrops(BlockState state, LootParams$Builder params)
method_9560(class_2680 arg0, class_8567$class_8568 arg1)
getDroppedStacks(BlockState arg0, LootWorldContext$Builder arg1)
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)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, 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)
public BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
public BlockState
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
private static void
lambda$dropHoneycomb$0(BlockPos arg0, ServerLevel arg1, ItemStack arg2)
method_72545(class_2338 arg0, class_3218 arg1, class_1799 arg2)
method_72545(BlockPos arg0, ServerWorld worldx, ItemStack stack)