Class ObsidianBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.ObsidianBlock

public class ObsidianBlock
extends Block
Mappings:
Namespace Name
official aij
intermediary net/minecraft/class_261
named net/minecraft/block/ObsidianBlock
  • Constructor Details

    • ObsidianBlock

      public ObsidianBlock()
  • Method Details

    • getDropItem

      public Item getDropItem​(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;Ljava/util/Random;I)Lzw;
      intermediary method_674 Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • getMaterialColor

      public MaterialColor getMaterialColor​(BlockState state)
      Returns the block's material color from it's state Blockstates can have different material colors
      Overrides:
      getMaterialColor in class Block
      Parameters:
      state - The Blockstate for which the material color is returned
      Returns:
      materialColor
      Mappings:
      Namespace Name Mixin selector
      official g Lafh;g(Lalz;)Larn;
      intermediary method_720 Lnet/minecraft/class_160;method_720(Lnet/minecraft/class_376;)Lnet/minecraft/class_592;
      named getMaterialColor Lnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;