Class StoneBlock

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

public class StoneBlock extends Block
Mappings:
Namespace Name
official auh
intermediary net/minecraft/class_192
named net/minecraft/block/StoneBlock
  • Field Details

    • VARIANT

      public static final EnumProperty<StoneBlock.StoneType> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official a Lauh;a:Laxh;
      intermediary field_9691 Lnet/minecraft/class_192;field_9691:Lnet/minecraft/class_2245;
      named VARIANT Lnet/minecraft/block/StoneBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • StoneBlock

      public StoneBlock()
  • Method Details

    • getTranslatedName

      public String getTranslatedName()
      Translates and returns the translation key
      Overrides:
      getTranslatedName in class Block
      Returns:
      Translated name
      Mappings:
      Namespace Name Mixin selector
      official c Laow;c()Ljava/lang/String;
      intermediary method_480 Lnet/minecraft/class_197;method_480()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
    • getMaterialColor

      public MaterialColor getMaterialColor(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getMaterialColor in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laow;c(Lawt;Lamy;Let;)Lbda;
      intermediary method_8680 Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_65;
      named getMaterialColor Lnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/MaterialColor;
    • 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 Laow;a(Lawt;Ljava/util/Random;I)Lain;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • getMeta

      public int getMeta(BlockState state)
      Returns the metadata value for a certain BlockState
      Overrides:
      getMeta in class Block
      Parameters:
      state - The BlockState
      Returns:
      Metadata value
      Mappings:
      Namespace Name Mixin selector
      official d Laow;d(Lawt;)I
      intermediary method_8655 Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)I
      named getMeta Lnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
    • addStacksForDisplay

      public void addStacksForDisplay(ItemGroup group, DefaultedList<ItemStack> stacks)
      Overrides:
      addStacksForDisplay in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lahp;Lfi;)V
      intermediary method_14305 Lnet/minecraft/class_197;method_14305(Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)V
      named addStacksForDisplay Lnet/minecraft/block/Block;addStacksForDisplay(Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(I)Lawt;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official e Laow;e(Lawt;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official b Laow;b()Lawu;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;