Class HoneyBlock

All Implemented Interfaces:
ItemLike, IForgeBlock, IForgeRegistryEntry<Block>

public class HoneyBlock extends HalfTransparentBlock
  • Field Details

    • SLIDE_STARTS_WHEN_VERTICAL_SPEED_IS_AT_LEAST

      private static final double SLIDE_STARTS_WHEN_VERTICAL_SPEED_IS_AT_LEAST
      See Also:
      Constant Field Values
    • MIN_FALL_SPEED_TO_BE_CONSIDERED_SLIDING

      private static final double MIN_FALL_SPEED_TO_BE_CONSIDERED_SLIDING
      See Also:
      Constant Field Values
    • THROTTLE_SLIDE_SPEED_TO

      private static final double THROTTLE_SLIDE_SPEED_TO
      See Also:
      Constant Field Values
    • SLIDE_ADVANCEMENT_CHECK_INTERVAL

      private static final int SLIDE_ADVANCEMENT_CHECK_INTERVAL
      See Also:
      Constant Field Values
    • SHAPE

      protected static final VoxelShape SHAPE
  • Constructor Details

  • Method Details

    • doesEntityDoHoneyBlockSlideEffects

      private static boolean doesEntityDoHoneyBlockSlideEffects(Entity p_54013_)
    • getCollisionShape

      public VoxelShape getCollisionShape(BlockState p_54015_, BlockGetter p_54016_, BlockPos p_54017_, CollisionContext p_54018_)
      Overrides:
      getCollisionShape in class BlockBehaviour
    • fallOn

      public void fallOn(Level p_153372_, BlockState p_153373_, BlockPos p_153374_, Entity p_153375_, float p_153376_)
      Overrides:
      fallOn in class Block
    • entityInside

      public void entityInside(BlockState p_54003_, Level p_54004_, BlockPos p_54005_, Entity p_54006_)
      Overrides:
      entityInside in class BlockBehaviour
    • isSlidingDown

      private boolean isSlidingDown(BlockPos p_54008_, Entity p_54009_)
    • maybeDoSlideAchievement

      private void maybeDoSlideAchievement(Entity p_53992_, BlockPos p_53993_)
    • doSlideMovement

      private void doSlideMovement(Entity p_54020_)
    • maybeDoSlideEffects

      private void maybeDoSlideEffects(Level p_53995_, Entity p_53996_)
    • showSlideParticles

      public static void showSlideParticles(Entity p_53987_)
    • showJumpParticles

      public static void showJumpParticles(Entity p_54011_)
    • showParticles

      private static void showParticles(Entity p_53989_, int p_53990_)