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 ciqintermediary net/minecraft/class_4481named net/minecraft/block/BeehiveBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final DirectionPropertystatic final intstatic final IntPropertyFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddHoneyParticle(World world, double minX, double maxX, double minZ, double maxZ, double height) private voidaddHoneyParticle(World world, BlockPos pos, VoxelShape shape, double height) voidafterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) private voidangerNearbyBees(World world, BlockPos pos) protected voidappendProperties(StateManager.Builder<Block, BlockState> builder) createBlockEntity(BlockPos pos, BlockState state) static voiddropHoneycomb(World world, BlockPos pos) intgetComparatorOutput(BlockState state, World world, BlockPos pos) getDroppedStacks(BlockState state, LootContext.Builder builder) 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 booleanbooleanhasComparatorOutput(BlockState state) voidonBreak(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.voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) private voidspawnHoneyParticles(World world, BlockPos pos, BlockState state) voidtakeHoney(World world, BlockState state, BlockPos pos) voidtakeHoney(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) Methods inherited from class net.minecraft.block.BlockWithEntity
checkType, createScreenHandlerFactory, onSyncedBlockEventMethods inherited from class net.minecraft.block.Block
appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, 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, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListener
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLciq;a:Lcvl;intermediary field_20419Lnet/minecraft/class_4481;field_20419:Lnet/minecraft/class_2753;named FACINGLnet/minecraft/block/BeehiveBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
HONEY_LEVEL
- Mappings:
Namespace Name Mixin selector official bLciq;b:Lcvr;intermediary field_20420Lnet/minecraft/class_4481;field_20420:Lnet/minecraft/class_2758;named HONEY_LEVELLnet/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 cLciq;c:Iintermediary field_31011Lnet/minecraft/class_4481;field_31011:Inamed FULL_HONEY_LEVELLnet/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 dLciq;d:Iintermediary field_31012Lnet/minecraft/class_4481;field_31012:Inamed DROPPED_HONEYCOMB_COUNTLnet/minecraft/block/BeehiveBlock;DROPPED_HONEYCOMB_COUNT:I
-
-
Constructor Details
-
BeehiveBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcuq;<init>(Lcuq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
hasComparatorOutput
- Overrides:
hasComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official d_Lcuq;d_(Lcur;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Znamed hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
- Overrides:
getComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getComparatorOutputLnet/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:
afterBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcga;Lbtf;Lgt;Lcur;Lcsl;Lcaa;)Vintermediary method_9556Lnet/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;)Vnamed afterBreakLnet/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 bLciq;b(Lcga;Lgt;)Vintermediary method_23893Lnet/minecraft/class_4481;method_23893(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed angerNearbyBeesLnet/minecraft/block/BeehiveBlock;angerNearbyBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
dropHoneycomb
- Mappings:
Namespace Name Mixin selector official aLciq;a(Lcga;Lgt;)Vintermediary method_21842Lnet/minecraft/class_4481;method_21842(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed dropHoneycombLnet/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:
onUsein classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;Lbtf;Lazl;Ldvp;)Lazm;intermediary method_9534Lnet/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 onUseLnet/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 cLciq;c(Lcga;Lgt;)Zintermediary method_23894Lnet/minecraft/class_4481;method_23894(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed hasBeesLnet/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 aLciq;a(Lcga;Lcur;Lgt;Lbtf;Lcsi$b;)Vintermediary method_21841Lnet/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;)Vnamed takeHoneyLnet/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 aLciq;a(Lcga;Lcur;Lgt;)Vintermediary method_23754Lnet/minecraft/class_4481;method_23754(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vnamed takeHoneyLnet/minecraft/block/BeehiveBlock;takeHoney(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
-
randomDisplayTick
- Overrides:
randomDisplayTickin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcur;Lcga;Lgt;Lalu;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
spawnHoneyParticles
- Mappings:
Namespace Name Mixin selector official aLciq;a(Lcga;Lgt;Lcur;)Vintermediary method_21843Lnet/minecraft/class_4481;method_21843(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed spawnHoneyParticlesLnet/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 aLciq;a(Lcga;Lgt;Ldwm;D)Vintermediary method_21844Lnet/minecraft/class_4481;method_21844(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_265;D)Vnamed addHoneyParticleLnet/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 aLciq;a(Lcga;DDDDD)Vintermediary method_21840Lnet/minecraft/class_4481;method_21840(Lnet/minecraft/class_1937;DDDDD)Vnamed addHoneyParticleLnet/minecraft/block/BeehiveBlock;addHoneyParticle(Lnet/minecraft/world/World;DDDDD)V
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcca;)Lcur;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcus$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getRenderType
- Overrides:
getRenderTypein classBlockWithEntity- Mappings:
Namespace Name Mixin selector official b_Lcuq;b_(Lcur;)Lcos;intermediary method_9604Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;named getRenderTypeLnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
createBlockEntity
- Mappings:
Namespace Name Mixin selector official aLcle;a(Lgt;Lcur;)Lcsl;intermediary method_10123Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;named createBlockEntityLnet/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 aLcle;a(Lcga;Lcur;Lcsn;)Lcsm;intermediary method_31645Lnet/minecraft/class_2343;method_31645(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2591;)Lnet/minecraft/class_5558;named getTickerLnet/minecraft/block/BlockEntityProvider;getTicker(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/block/entity/BlockEntityTicker;
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcga;Lgt;Lcur;Lbtf;)Vintermediary method_9576Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)Vnamed onBreakLnet/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:
getDroppedStacksin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Ldrg$a;)Ljava/util/List;intermediary method_9560Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_47$class_48;)Ljava/util/List;named getDroppedStacksLnet/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:
getStateForNeighborUpdatein 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 aLcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;intermediary method_9559Lnet/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 getStateForNeighborUpdateLnet/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;
-