Package net.minecraft.block
Class HoneyBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TranslucentBlock
net.minecraft.block.HoneyBlock
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/HoneyBlockintermediary net/minecraft/class_4622official drn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<HoneyBlock> private static final doubleprivate static final doubleprivate static final doubleprivate static final VoxelShapeprivate static final intFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCollisionEffects(World world, Entity entity) private static voidaddParticles(Entity entity, int count) static voidaddRegularParticles(Entity entity) static voidaddRichParticles(Entity entity) com.mojang.serialization.MapCodec<HoneyBlock> getCodec()protected VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static booleanhasHoneyBlockEffects(Entity entity) private booleanprivate static doublemethod_65067(double double2) private static doublemethod_65068(double double2) protected voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) Called when the entity's collision box intersects the block.voidonLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, double fallDistance) Called when the entity lands on the block.private voidtriggerAdvancement(Entity entity, BlockPos pos) private voidupdateSlidingVelocity(Entity entity) Methods inherited from class net.minecraft.block.TranslucentBlock
isSideInvisibleMethods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, 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.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/HoneyBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46369Lnet/minecraft/class_4622;field_46369:Lcom/mojang/serialization/MapCodec;official aLdrn;a:Lcom/mojang/serialization/MapCodec;
-
field_31101
private static final double field_31101- See Also:
- Mappings:
Namespace Name Mixin selector named field_31101Lnet/minecraft/block/HoneyBlock;field_31101:Dintermediary field_31101Lnet/minecraft/class_4622;field_31101:Dofficial bLdrn;b:D
-
field_31102
private static final double field_31102- See Also:
- Mappings:
Namespace Name Mixin selector named field_31102Lnet/minecraft/block/HoneyBlock;field_31102:Dintermediary field_31102Lnet/minecraft/class_4622;field_31102:Dofficial cLdrn;c:D
-
field_31103
private static final double field_31103- See Also:
- Mappings:
Namespace Name Mixin selector named field_31103Lnet/minecraft/block/HoneyBlock;field_31103:Dintermediary field_31103Lnet/minecraft/class_4622;field_31103:Dofficial eLdrn;e:D
-
TICKS_PER_SECOND
private static final int TICKS_PER_SECOND- See Also:
- Mappings:
Namespace Name Mixin selector named TICKS_PER_SECONDLnet/minecraft/block/HoneyBlock;TICKS_PER_SECOND:Iintermediary field_31104Lnet/minecraft/class_4622;field_31104:Iofficial fLdrn;f:I
-
SHAPE
- Mappings:
Namespace Name Mixin selector named SHAPELnet/minecraft/block/HoneyBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_21213Lnet/minecraft/class_4622;field_21213:Lnet/minecraft/class_265;official gLdrn;g:Lfgw;
-
-
Constructor Details
-
HoneyBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Lebp;<init>(Lebp$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classTranslucentBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLebp;a()Lcom/mojang/serialization/MapCodec;
-
hasHoneyBlockEffects
- Mappings:
Namespace Name Mixin selector named hasHoneyBlockEffectsLnet/minecraft/block/HoneyBlock;hasHoneyBlockEffects(Lnet/minecraft/entity/Entity;)Zintermediary method_24179Lnet/minecraft/class_4622;method_24179(Lnet/minecraft/class_1297;)Zofficial cLdrn;c(Lbxe;)Z
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getCollisionShapeLnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_9549Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;official bLebp;b(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
-
onLandedUpon
public void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, double fallDistance) Called when the entity lands on the block.Default implementation deals fall damage to the entity. Blocks that increase or reduce fall damage (like
HayBlock) should override this.FarmlandBlockoverrides this method to convert the block to dirt.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.- Overrides:
onLandedUponin classBlock- Mappings:
Namespace Name Mixin selector named onLandedUponLnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;D)Vintermediary method_9554Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;D)Vofficial aLdno;a(Ldkj;Lebq;Liw;Lbxe;D)V
-
onEntityCollision
protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; useBlock.onSteppedOn(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.Entity)for those blocks.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.Here are some examples:
CactusBlockdamages the entity.AbstractPressurePlateBlocktriggers.CobwebBlockslows the entity.EndPortalBlockteleports the entity.HopperBlockcollects the item entity.
- Overrides:
onEntityCollisionin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityCollisionHandler;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_10774;)Vofficial aLebp;a(Lebq;Ldkj;Liw;Lbxe;Lbxx;)V
-
method_65067
private static double method_65067(double double2) - Mappings:
Namespace Name Mixin selector named method_65067Lnet/minecraft/block/HoneyBlock;method_65067(D)Dintermediary method_65067Lnet/minecraft/class_4622;method_65067(D)Dofficial bLdrn;b(D)D
-
method_65068
private static double method_65068(double double2) - Mappings:
Namespace Name Mixin selector named method_65068Lnet/minecraft/block/HoneyBlock;method_65068(D)Dintermediary method_65068Lnet/minecraft/class_4622;method_65068(D)Dofficial cLdrn;c(D)D
-
isSliding
- Mappings:
Namespace Name Mixin selector named isSlidingLnet/minecraft/block/HoneyBlock;isSliding(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Zintermediary method_23356Lnet/minecraft/class_4622;method_23356(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Zofficial aLdrn;a(Liw;Lbxe;)Z
-
triggerAdvancement
- Mappings:
Namespace Name Mixin selector named triggerAdvancementLnet/minecraft/block/HoneyBlock;triggerAdvancement(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_24176Lnet/minecraft/class_4622;method_24176(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Vofficial aLdrn;a(Lbxe;Liw;)V
-
updateSlidingVelocity
- Mappings:
Namespace Name Mixin selector named updateSlidingVelocityLnet/minecraft/block/HoneyBlock;updateSlidingVelocity(Lnet/minecraft/entity/Entity;)Vintermediary method_24180Lnet/minecraft/class_4622;method_24180(Lnet/minecraft/class_1297;)Vofficial dLdrn;d(Lbxe;)V
-
addCollisionEffects
- Mappings:
Namespace Name Mixin selector named addCollisionEffectsLnet/minecraft/block/HoneyBlock;addCollisionEffects(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Vintermediary method_24177Lnet/minecraft/class_4622;method_24177(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Vofficial aLdrn;a(Ldkj;Lbxe;)V
-
addRegularParticles
- Mappings:
Namespace Name Mixin selector named addRegularParticlesLnet/minecraft/block/HoneyBlock;addRegularParticles(Lnet/minecraft/entity/Entity;)Vintermediary method_24175Lnet/minecraft/class_4622;method_24175(Lnet/minecraft/class_1297;)Vofficial aLdrn;a(Lbxe;)V
-
addRichParticles
- Mappings:
Namespace Name Mixin selector named addRichParticlesLnet/minecraft/block/HoneyBlock;addRichParticles(Lnet/minecraft/entity/Entity;)Vintermediary method_24178Lnet/minecraft/class_4622;method_24178(Lnet/minecraft/class_1297;)Vofficial bLdrn;b(Lbxe;)V
-
addParticles
- Mappings:
Namespace Name Mixin selector named addParticlesLnet/minecraft/block/HoneyBlock;addParticles(Lnet/minecraft/entity/Entity;I)Vintermediary method_23355Lnet/minecraft/class_4622;method_23355(Lnet/minecraft/class_1297;I)Vofficial aLdrn;a(Lbxe;I)V
-