Class RedSandstoneSlabBlock

Direct Known Subclasses:
DoubleRedSandstoneSlabBlock, SingleRedSandstoneSlabBlock

public abstract class RedSandstoneSlabBlock
extends SlabBlock
Mappings:
Namespace Name
official aih
intermediary net/minecraft/class_258
named net/minecraft/block/RedSandstoneSlabBlock
  • Field Details

    • SEAMLESS

      public static final BooleanProperty SEAMLESS
      Mappings:
      Namespace Name Mixin selector
      official b Laih;b:Lamk;
      intermediary field_1060 Lnet/minecraft/class_258;field_1060:Lnet/minecraft/class_388;
      named SEAMLESS Lnet/minecraft/block/RedSandstoneSlabBlock;SEAMLESS:Lnet/minecraft/state/property/BooleanProperty;
    • VARIANT

      public static final EnumProperty<RedSandstoneSlabBlock.SlabType> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official N Laih;N:Lamm;
      intermediary field_1059 Lnet/minecraft/class_258;field_1059:Lnet/minecraft/class_390;
      named VARIANT Lnet/minecraft/block/RedSandstoneSlabBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • RedSandstoneSlabBlock

      public RedSandstoneSlabBlock()
  • 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 f Lafh;f()Ljava/lang/String;
      intermediary method_716 Lnet/minecraft/class_160;method_716()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
    • 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;
    • getPickItem

      @Environment(CLIENT) public Item getPickItem​(World world, BlockPos pos)
      Called when a player presses the pick block key while facing the block. It returns the item that must be placed into the player's inventory.
      Overrides:
      getPickItem in class Block
      Returns:
      The Item that must be placed into the player's inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(Ladm;Lcj;)Lzw;
      intermediary method_702 Lnet/minecraft/class_160;method_702(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Lnet/minecraft/class_2054;
      named getPickItem Lnet/minecraft/block/Block;getPickItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/Item;
    • method_875

      public String method_875​(int int2)
      Specified by:
      method_875 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lahh;b(I)Ljava/lang/String;
      intermediary method_875 Lnet/minecraft/class_226;method_875(I)Ljava/lang/String;
      named method_875 Lnet/minecraft/block/SlabBlock;method_875(I)Ljava/lang/String;
    • method_878

      public Property<?> method_878()
      Specified by:
      method_878 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official n Lahh;n()Lamo;
      intermediary method_878 Lnet/minecraft/class_226;method_878()Lnet/minecraft/class_392;
      named method_878 Lnet/minecraft/block/SlabBlock;method_878()Lnet/minecraft/state/property/Property;
    • method_874

      public Object method_874​(ItemStack itemStack)
      Specified by:
      method_874 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Lzx;)Ljava/lang/Object;
      intermediary method_874 Lnet/minecraft/class_226;method_874(Lnet/minecraft/class_2056;)Ljava/lang/Object;
      named method_874 Lnet/minecraft/block/SlabBlock;method_874(Lnet/minecraft/item/ItemStack;)Ljava/lang/Object;
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks​(Item item, ItemGroup group, List<ItemStack> stacks)
      Appends ItemStacks to an itemgroup. Only called on the client.
      Overrides:
      appendItemStacks in class Block
      Parameters:
      item - The Item that must be added
      group - The ItemGroup that the item must be added to
      stacks - The list of currently added ItemStacks to the ItemGroup
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lzw;Lyz;Ljava/util/List;)V
      intermediary method_682 Lnet/minecraft/class_160;method_682(Lnet/minecraft/class_2054;Lnet/minecraft/class_2029;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemGroup;Ljava/util/List;)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 Lafh;a(I)Lalz;
      intermediary method_637 Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;
      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 c Lafh;c(Lalz;)I
      intermediary method_706 Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)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 e Lafh;e()Lama;
      intermediary method_714 Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • 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;
    • 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 a Lafh;a(Lalz;)I
      intermediary method_672 Lnet/minecraft/class_160;method_672(Lnet/minecraft/class_376;)I
      named getMeta Lnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I