Package net.minecraft.block
Class BeehiveBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.BeehiveBlock
- All Implemented Interfaces:
BlockEntityProvider
,ItemConvertible
- Mappings:
Namespace Name official ccl
intermediary net/minecraft/class_4481
named net/minecraft/block/BeehiveBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final DirectionProperty
static final int
private static final Direction[]
static final IntProperty
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addHoneyParticle
(World world, double minX, double maxX, double minZ, double maxZ, double height) private void
addHoneyParticle
(World world, BlockPos pos, VoxelShape shape, double height) void
afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) private void
angerNearbyBees
(World world, BlockPos pos) protected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) createBlockEntity
(BlockPos pos, BlockState state) static void
dropHoneycomb
(World world, BlockPos pos) int
getComparatorOutput
(BlockState state, World world, BlockPos pos) getDroppedStacks
(BlockState state, LootContext.Builder builder) static Direction
getRandomGenerationDirection
(Random random) getRenderType
(BlockState state) getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>getTicker
(World world, BlockState state, BlockEntityType<T> type) private boolean
boolean
hasComparatorOutput
(BlockState state) void
onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) private void
spawnHoneyParticles
(World world, BlockPos pos, BlockState state) void
takeHoney
(World world, BlockState state, BlockPos pos) void
takeHoney
(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) Methods inherited from class net.minecraft.block.BlockWithEntity
checkType, createScreenHandlerFactory, onSyncedBlockEvent
Methods inherited from class net.minecraft.block.Block
appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getFluidState, getHardness, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, prepare, randomTick, rotate, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListener
-
Field Details
-
GENERATE_DIRECTIONS
- Mappings:
Namespace Name Mixin selector official d
Lccl;d:[Lgm;
intermediary field_20418
Lnet/minecraft/class_4481;field_20418:[Lnet/minecraft/class_2350;
named GENERATE_DIRECTIONS
Lnet/minecraft/block/BeehiveBlock;GENERATE_DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
FACING
- Mappings:
Namespace Name Mixin selector official a
Lccl;a:Lcoq;
intermediary field_20419
Lnet/minecraft/class_4481;field_20419:Lnet/minecraft/class_2753;
named FACING
Lnet/minecraft/block/BeehiveBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
HONEY_LEVEL
- Mappings:
Namespace Name Mixin selector official b
Lccl;b:Lcow;
intermediary field_20420
Lnet/minecraft/class_4481;field_20420:Lnet/minecraft/class_2758;
named HONEY_LEVEL
Lnet/minecraft/block/BeehiveBlock;HONEY_LEVEL:Lnet/minecraft/state/property/IntProperty;
-
FULL_HONEY_LEVEL
public static final int FULL_HONEY_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lccl;c:I
intermediary field_31011
Lnet/minecraft/class_4481;field_31011:I
named FULL_HONEY_LEVEL
Lnet/minecraft/block/BeehiveBlock;FULL_HONEY_LEVEL:I
-
DROPPED_HONEYCOMB_COUNT
private static final int DROPPED_HONEYCOMB_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lccl;e:I
intermediary field_31012
Lnet/minecraft/class_4481;field_31012:I
named DROPPED_HONEYCOMB_COUNT
Lnet/minecraft/block/BeehiveBlock;DROPPED_HONEYCOMB_COUNT:I
-
-
Constructor Details
-
BeehiveBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lcnu;<init>(Lcnu$c;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
hasComparatorOutput
- Overrides:
hasComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official d_
Lcnu;d_(Lcnv;)Z
intermediary method_9498
Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
named hasComparatorOutput
Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
- Overrides:
getComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;)I
intermediary method_9572
Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
named getComparatorOutput
Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
afterBreak
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable @Nullable BlockEntity blockEntity, ItemStack stack) - Overrides:
afterBreak
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lbzw;Lbnk;Lgh;Lcnv;Lcls;Lbtx;)V
intermediary method_9556
Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
named afterBreak
Lnet/minecraft/block/Block;afterBreak(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
-
angerNearbyBees
- Mappings:
Namespace Name Mixin selector official b
Lccl;b(Lbzw;Lgh;)V
intermediary method_23893
Lnet/minecraft/class_4481;method_23893(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named angerNearbyBees
Lnet/minecraft/block/BeehiveBlock;angerNearbyBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
dropHoneycomb
- Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;Lgh;)V
intermediary method_21842
Lnet/minecraft/class_4481;method_21842(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named dropHoneycomb
Lnet/minecraft/block/BeehiveBlock;dropHoneycomb(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient()
.If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- Overrides:
onUse
in classAbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;Lbnk;Lavi;Ldnv;)Lavj;
intermediary method_9534
Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
named onUse
Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
hasBees
- Mappings:
Namespace Name Mixin selector official c
Lccl;c(Lbzw;Lgh;)Z
intermediary method_23894
Lnet/minecraft/class_4481;method_23894(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
named hasBees
Lnet/minecraft/block/BeehiveBlock;hasBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
takeHoney
public void takeHoney(World world, BlockState state, BlockPos pos, @Nullable @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) - Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;Lcnv;Lgh;Lbnk;Lclp$b;)V
intermediary method_21841
Lnet/minecraft/class_4481;method_21841(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_4482$class_4484;)V
named takeHoney
Lnet/minecraft/block/BeehiveBlock;takeHoney(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)V
-
takeHoney
- Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;Lcnv;Lgh;)V
intermediary method_23754
Lnet/minecraft/class_4481;method_23754(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
named takeHoney
Lnet/minecraft/block/BeehiveBlock;takeHoney(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
-
randomDisplayTick
- Overrides:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnv;Lbzw;Lgh;Ljava/util/Random;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
spawnHoneyParticles
- Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;Lgh;Lcnv;)V
intermediary method_21843
Lnet/minecraft/class_4481;method_21843(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named spawnHoneyParticles
Lnet/minecraft/block/BeehiveBlock;spawnHoneyParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
addHoneyParticle
- Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;Lgh;Ldos;D)V
intermediary method_21844
Lnet/minecraft/class_4481;method_21844(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_265;D)V
named addHoneyParticle
Lnet/minecraft/block/BeehiveBlock;addHoneyParticle(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/shape/VoxelShape;D)V
-
addHoneyParticle
private void addHoneyParticle(World world, double minX, double maxX, double minZ, double maxZ, double height) - Mappings:
Namespace Name Mixin selector official a
Lccl;a(Lbzw;DDDDD)V
intermediary method_21840
Lnet/minecraft/class_4481;method_21840(Lnet/minecraft/class_1937;DDDDD)V
named addHoneyParticle
Lnet/minecraft/block/BeehiveBlock;addHoneyParticle(Lnet/minecraft/world/World;DDDDD)V
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lbvx;)Lcnv;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnw$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getRenderType
- Overrides:
getRenderType
in classBlockWithEntity
- Mappings:
Namespace Name Mixin selector official b_
Lcnu;b_(Lcnv;)Lcig;
intermediary method_9604
Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
named getRenderType
Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
createBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcey;a(Lgh;Lcnv;)Lcls;
intermediary method_10123
Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
named createBlockEntity
Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
-
getTicker
@Nullable public <T extends BlockEntity> @Nullable BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type) - Mappings:
Namespace Name Mixin selector official a
Lcey;a(Lbzw;Lcnv;Lclu;)Lclt;
intermediary method_31645
Lnet/minecraft/class_2343;method_31645(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2591;)Lnet/minecraft/class_5558;
named getTicker
Lnet/minecraft/block/BlockEntityProvider;getTicker(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/block/entity/BlockEntityTicker;
-
onBreak
- Overrides:
onBreak
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lbzw;Lgh;Lcnv;Lbnk;)V
intermediary method_9576
Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
named onBreak
Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
getDroppedStacks
- Overrides:
getDroppedStacks
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Ldjn$a;)Ljava/util/List;
intermediary method_9560
Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_47$class_48;)Ljava/util/List;
named getDroppedStacks
Lnet/minecraft/block/AbstractBlock;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/loot/context/LootContext$Builder;)Ljava/util/List;
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.- Overrides:
getStateForNeighborUpdate
in classAbstractBlock
- Parameters:
state
- the state of this blockdirection
- the direction from this block to the neighborneighborState
- the state of the updated neighbor blockworld
- the worldpos
- the position of this blockneighborPos
- the position of the neighbor block- Returns:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lgm;Lcnv;Lbzx;Lgh;Lgh;)Lcnv;
intermediary method_9559
Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getStateForNeighborUpdate
Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getRandomGenerationDirection
- Mappings:
Namespace Name Mixin selector official a
Lccl;a(Ljava/util/Random;)Lgm;
intermediary method_26978
Lnet/minecraft/class_4481;method_26978(Ljava/util/Random;)Lnet/minecraft/class_2350;
named getRandomGenerationDirection
Lnet/minecraft/block/BeehiveBlock;getRandomGenerationDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
-