Class HoneyBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class HoneyBlock extends TranslucentBlock
Mappings:
Namespace Name
named net/minecraft/block/HoneyBlock
intermediary net/minecraft/class_4622
official djs
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<HoneyBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/HoneyBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46369 Lnet/minecraft/class_4622;field_46369:Lcom/mojang/serialization/MapCodec;
      official a Ldjs;a:Lcom/mojang/serialization/MapCodec;
    • field_31101

      private static final double field_31101
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31101 Lnet/minecraft/block/HoneyBlock;field_31101:D
      intermediary field_31101 Lnet/minecraft/class_4622;field_31101:D
      official c Ldjs;c:D
    • field_31102

      private static final double field_31102
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31102 Lnet/minecraft/block/HoneyBlock;field_31102:D
      intermediary field_31102 Lnet/minecraft/class_4622;field_31102:D
      official e Ldjs;e:D
    • field_31103

      private static final double field_31103
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31103 Lnet/minecraft/block/HoneyBlock;field_31103:D
      intermediary field_31103 Lnet/minecraft/class_4622;field_31103:D
      official f Ldjs;f:D
    • TICKS_PER_SECOND

      private static final int TICKS_PER_SECOND
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TICKS_PER_SECOND Lnet/minecraft/block/HoneyBlock;TICKS_PER_SECOND:I
      intermediary field_31104 Lnet/minecraft/class_4622;field_31104:I
      official g Ldjs;g:I
    • SHAPE

      protected static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      named SHAPE Lnet/minecraft/block/HoneyBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_21213 Lnet/minecraft/class_4622;field_21213:Lnet/minecraft/class_265;
      official b Ldjs;b:Lexv;
  • Constructor Details

    • HoneyBlock

      public HoneyBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      official <init> Ldtb;<init>(Ldtb$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<HoneyBlock> getCodec()
      Overrides:
      getCodec in class TranslucentBlock
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Ldtb;a()Lcom/mojang/serialization/MapCodec;
    • hasHoneyBlockEffects

      private static boolean hasHoneyBlockEffects(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named hasHoneyBlockEffects Lnet/minecraft/block/HoneyBlock;hasHoneyBlockEffects(Lnet/minecraft/entity/Entity;)Z
      intermediary method_24179 Lnet/minecraft/class_4622;method_24179(Lnet/minecraft/class_1297;)Z
      official c Ldjs;c(Lbsr;)Z
    • getCollisionShape

      protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getCollisionShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getCollisionShape Lnet/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_9549 Lnet/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 b Ldtb;b(Ldtc;Ldcc;Ljd;Lexh;)Lexv;
    • onLandedUpon

      public void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float 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. FarmlandBlock overrides 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:
      onLandedUpon in class Block
      Mappings:
      Namespace Name Mixin selector
      named onLandedUpon Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
      intermediary method_9554 Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)V
      official a Ldfy;a(Ldcw;Ldtc;Ljd;Lbsr;F)V
    • onEntityCollision

      protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; use Block.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:

      Overrides:
      onEntityCollision in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
      intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      official a Ldtb;a(Ldtc;Ldcw;Ljd;Lbsr;)V
    • isSliding

      private boolean isSliding(BlockPos pos, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named isSliding Lnet/minecraft/block/HoneyBlock;isSliding(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z
      intermediary method_23356 Lnet/minecraft/class_4622;method_23356(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Z
      official a Ldjs;a(Ljd;Lbsr;)Z
    • triggerAdvancement

      private void triggerAdvancement(Entity entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named triggerAdvancement Lnet/minecraft/block/HoneyBlock;triggerAdvancement(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_24176 Lnet/minecraft/class_4622;method_24176(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)V
      official a Ldjs;a(Lbsr;Ljd;)V
    • updateSlidingVelocity

      private void updateSlidingVelocity(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named updateSlidingVelocity Lnet/minecraft/block/HoneyBlock;updateSlidingVelocity(Lnet/minecraft/entity/Entity;)V
      intermediary method_24180 Lnet/minecraft/class_4622;method_24180(Lnet/minecraft/class_1297;)V
      official d Ldjs;d(Lbsr;)V
    • addCollisionEffects

      private void addCollisionEffects(World world, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named addCollisionEffects Lnet/minecraft/block/HoneyBlock;addCollisionEffects(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)V
      intermediary method_24177 Lnet/minecraft/class_4622;method_24177(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)V
      official a Ldjs;a(Ldcw;Lbsr;)V
    • addRegularParticles

      public static void addRegularParticles(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named addRegularParticles Lnet/minecraft/block/HoneyBlock;addRegularParticles(Lnet/minecraft/entity/Entity;)V
      intermediary method_24175 Lnet/minecraft/class_4622;method_24175(Lnet/minecraft/class_1297;)V
      official a Ldjs;a(Lbsr;)V
    • addRichParticles

      public static void addRichParticles(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named addRichParticles Lnet/minecraft/block/HoneyBlock;addRichParticles(Lnet/minecraft/entity/Entity;)V
      intermediary method_24178 Lnet/minecraft/class_4622;method_24178(Lnet/minecraft/class_1297;)V
      official b Ldjs;b(Lbsr;)V
    • addParticles

      private static void addParticles(Entity entity, int count)
      Mappings:
      Namespace Name Mixin selector
      named addParticles Lnet/minecraft/block/HoneyBlock;addParticles(Lnet/minecraft/entity/Entity;I)V
      intermediary method_23355 Lnet/minecraft/class_4622;method_23355(Lnet/minecraft/class_1297;I)V
      official a Ldjs;a(Lbsr;I)V