Class SlimeBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class SlimeBlock extends TranslucentBlock
Mappings:
Namespace Name
named net/minecraft/block/SlimeBlock
intermediary net/minecraft/class_2490
official dmf
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SlimeBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/SlimeBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46446 Lnet/minecraft/class_2490;field_46446:Lcom/mojang/serialization/MapCodec;
      official a Ldmf;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • SlimeBlock

      public SlimeBlock(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> Ldsd;<init>(Ldsd$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<SlimeBlock> 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 Ldsd;a()Lcom/mojang/serialization/MapCodec;
    • 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 Ldfb;a(Ldca;Ldse;Liz;Lbsw;F)V
    • onEntityLand

      public void onEntityLand(BlockView world, Entity entity)
      Called after the entity lands on the block.

      Default implementation resets the entity's vertical velocity. Blocks that cause entities to jump (such as SlimeBlock) should override this.

      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:
      onEntityLand in class Block
      Mappings:
      Namespace Name Mixin selector
      named onEntityLand Lnet/minecraft/block/Block;onEntityLand(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)V
      intermediary method_9502 Lnet/minecraft/class_2248;method_9502(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)V
      official a Ldfb;a(Ldbg;Lbsw;)V
    • bounce

      private void bounce(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named bounce Lnet/minecraft/block/SlimeBlock;bounce(Lnet/minecraft/entity/Entity;)V
      intermediary method_21847 Lnet/minecraft/class_2490;method_21847(Lnet/minecraft/class_1297;)V
      official a Ldmf;a(Lbsw;)V
    • onSteppedOn

      public void onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity)
      Called when an entity steps on this block.

      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:
      onSteppedOn in class Block
      Mappings:
      Namespace Name Mixin selector
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;)V
      intermediary method_9591 Lnet/minecraft/class_2248;method_9591(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1297;)V
      official a Ldfb;a(Ldca;Liz;Ldse;Lbsw;)V