Package net.minecraft.world.level.block
Class BeehiveBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.BeehiveBlock
- All Implemented Interfaces:
FeatureElement
,EntityBlock
,ItemLike
,IBlockExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BeehiveBlock>
static final DirectionProperty
static final IntegerProperty
static final int
private static final int
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
angerNearbyBees
(Level p_49650_, BlockPos p_49651_) void
animateTick
(BlockState p_220773_, Level p_220774_, BlockPos p_220775_, RandomSource p_220776_) com.mojang.serialization.MapCodec<BeehiveBlock>
codec()
protected void
static void
dropHoneycomb
(Level p_49601_, BlockPos p_49602_) int
getAnalogOutputSignal
(BlockState p_49620_, Level p_49621_, BlockPos p_49622_) getDrops
(BlockState p_49636_, LootParams.Builder p_287581_) getRenderShape
(BlockState p_49653_) getStateForPlacement
(BlockPlaceContext p_49573_) <T extends BlockEntity>
BlockEntityTicker<T>getTicker
(Level p_152180_, BlockState p_152181_, BlockEntityType<T> p_152182_) boolean
hasAnalogOutputSignal
(BlockState p_49618_) private boolean
hiveContainsBees
(Level p_49655_, BlockPos p_49656_) mirror
(BlockState p_304677_, Mirror p_304660_) newBlockEntity
(BlockPos p_152184_, BlockState p_152185_) void
playerDestroy
(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, BlockEntity p_49588_, ItemStack p_49589_) playerWillDestroy
(Level p_49608_, BlockPos p_49609_, BlockState p_49610_, Player p_49611_) void
releaseBeesAndResetHoneyLevel
(Level p_49595_, BlockState p_49596_, BlockPos p_49597_, Player p_49598_, BeehiveBlockEntity.BeeReleaseStatus p_49599_) void
resetHoneyLevel
(Level p_49591_, BlockState p_49592_, BlockPos p_49593_) rotate
(BlockState p_304785_, Rotation p_304624_) private void
spawnFluidParticle
(Level p_49577_, double p_49578_, double p_49579_, double p_49580_, double p_49581_, double p_49582_) private void
spawnParticle
(Level p_49613_, BlockPos p_49614_, VoxelShape p_49615_, double p_49616_) private void
trySpawnDripParticles
(Level p_49604_, BlockPos p_49605_, BlockState p_49606_) updateShape
(BlockState p_49639_, Direction p_49640_, BlockState p_49641_, LevelAccessor p_49642_, BlockPos p_49643_, BlockPos p_49644_) use
(BlockState p_49624_, Level p_49625_, BlockPos p_49626_, Player p_49627_, InteractionHand p_49628_, BlockHitResult p_49629_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEvent
Methods inherited from class net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, useShapeForLightOcclusion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
Field Details
-
CODEC
-
FACING
-
HONEY_LEVEL
-
MAX_HONEY_LEVELS
public static final int MAX_HONEY_LEVELS- See Also:
-
SHEARED_HONEYCOMB_COUNT
private static final int SHEARED_HONEYCOMB_COUNT- See Also:
-
-
Constructor Details
-
BeehiveBlock
-
-
Method Details
-
codec
- Specified by:
codec
in classBaseEntityBlock
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignal
in classBlockBehaviour
-
getAnalogOutputSignal
- Overrides:
getAnalogOutputSignal
in classBlockBehaviour
-
playerDestroy
public void playerDestroy(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, @Nullable BlockEntity p_49588_, ItemStack p_49589_) - Overrides:
playerDestroy
in classBlock
-
angerNearbyBees
-
dropHoneycomb
-
use
public InteractionResult use(BlockState p_49624_, Level p_49625_, BlockPos p_49626_, Player p_49627_, InteractionHand p_49628_, BlockHitResult p_49629_) - Overrides:
use
in classBlockBehaviour
-
hiveContainsBees
-
releaseBeesAndResetHoneyLevel
public void releaseBeesAndResetHoneyLevel(Level p_49595_, BlockState p_49596_, BlockPos p_49597_, @Nullable Player p_49598_, BeehiveBlockEntity.BeeReleaseStatus p_49599_) -
resetHoneyLevel
-
animateTick
public void animateTick(BlockState p_220773_, Level p_220774_, BlockPos p_220775_, RandomSource p_220776_) - Overrides:
animateTick
in classBlock
-
trySpawnDripParticles
-
spawnParticle
-
spawnFluidParticle
private void spawnFluidParticle(Level p_49577_, double p_49578_, double p_49579_, double p_49580_, double p_49581_, double p_49582_) -
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
getRenderShape
- Overrides:
getRenderShape
in classBaseEntityBlock
-
newBlockEntity
-
getTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_152180_, BlockState p_152181_, BlockEntityType<T> p_152182_) -
playerWillDestroy
public BlockState playerWillDestroy(Level p_49608_, BlockPos p_49609_, BlockState p_49610_, Player p_49611_) - Overrides:
playerWillDestroy
in classBlock
-
getDrops
- Overrides:
getDrops
in classBlockBehaviour
-
updateShape
public BlockState updateShape(BlockState p_49639_, Direction p_49640_, BlockState p_49641_, LevelAccessor p_49642_, BlockPos p_49643_, BlockPos p_49644_) - Overrides:
updateShape
in classBlockBehaviour
-
rotate
- Overrides:
rotate
in classBlockBehaviour
-
mirror
- Overrides:
mirror
in classBlockBehaviour
-