Class SlimeBlock


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

    • SlimeBlock

      public SlimeBlock()
  • Method Details

    • getRenderLayerType

      @Environment(CLIENT) 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 f Lalu;f()Lajk;
      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 Lalu;a(Lajs;Lco;Lsn;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
    • 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 Lalu;a(Lajs;Lsn;)V
      intermediary method_8650 Lnet/minecraft/class_197;method_8650(Lnet/minecraft/class_1150;Lnet/minecraft/class_864;)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 Lalu;a(Lajs;Lco;Lsn;)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