Class SlimeBlock


public class SlimeBlock
extends TransparentBlock
Mappings:
Namespace Name
official ajn
intermediary net/minecraft/class_302
named net/minecraft/block/SlimeBlock
  • Constructor Details

    • SlimeBlock

      public SlimeBlock()
  • Method Details

    • getRenderLayerType

      @Environment(CLIENT) public RenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official m Lafh;m()Ladf;
      intermediary method_731 Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
    • onLandedUpon

      public void onLandedUpon​(World world, BlockPos pos, Entity entity, float distance)
      Runs when an entity falls on the block.
      Overrides:
      onLandedUpon in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      entity - The entity who fell on the block
      distance - The relative height from which the entity fell
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lpk;F)V
      intermediary method_659 Lnet/minecraft/class_160;method_659(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1745;F)V
      named onLandedUpon Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
    • setEntityVelocity

      public void setEntityVelocity​(World world, Entity entity)
      Sets the speed of an entity moving on the block
      Overrides:
      setEntityVelocity in class Block
      Parameters:
      world - The world that the block is placed in
      entity - The entity that the speed must be changed for
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lpk;)V
      intermediary method_663 Lnet/minecraft/class_160;method_663(Lnet/minecraft/class_99;Lnet/minecraft/class_1745;)V
      named setEntityVelocity Lnet/minecraft/block/Block;setEntityVelocity(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)V
    • onSteppedOn

      public void onSteppedOn​(World world, BlockPos pos, Entity entity)
      Runs every time an entity steps on the Block. Used by redstone ore to change it's state.
      Overrides:
      onSteppedOn in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      entity - The entity who stepped on the block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lpk;)V
      intermediary method_658 Lnet/minecraft/class_160;method_658(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1745;)V
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V