Class SlimeBlock

All Implemented Interfaces:
Itemable

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

    • SlimeBlock

      public SlimeBlock(Block.Builder settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcs;<init>(Lbcs$c;)V
      intermediary <init> Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_197$class_3692;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Block$Builder;)V
  • Method Details

    • getRenderLayerType

      public BlockRenderLayer 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 c Lbcs;c()Laxl;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • 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 Lbcs;a(Laxy;Lel;Laer;F)V
      intermediary method_8647 Lnet/minecraft/class_197;method_8647(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;F)V
      named onLandedUpon Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
    • method_8650

      public void method_8650(BlockView blockView, Entity entity)
      Overrides:
      method_8650 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxk;Laer;)V
      intermediary method_8650 Lnet/minecraft/class_197;method_8650(Lnet/minecraft/class_1158;Lnet/minecraft/class_864;)V
      named method_8650 Lnet/minecraft/block/Block;method_8650(Lnet/minecraft/world/BlockView;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 Lbcs;a(Laxy;Lel;Laer;)V
      intermediary method_437 Lnet/minecraft/class_197;method_437(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;)V
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • getLightSubtracted

      public int getLightSubtracted(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getLightSubtracted in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Lbcs;j(Lblc;Laxk;Lel;)I
      intermediary method_16597 Lnet/minecraft/class_197;method_16597(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named getLightSubtracted Lnet/minecraft/block/Block;getLightSubtracted(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I