Class PurpurSlab

Direct Known Subclasses:
PurpurSlab.Double, PurpurSlab.Single

public abstract class PurpurSlab extends SlabBlock
Mappings:
Namespace Name
official anr
intermediary net/minecraft/class_2729
named net/minecraft/block/PurpurSlab
  • Field Details

    • field_12723

      public static final EnumProperty<PurpurSlab.class_2732> field_12723
      Mappings:
      Namespace Name Mixin selector
      official d Lanr;d:Larq;
      intermediary field_12723 Lnet/minecraft/class_2729;field_12723:Lnet/minecraft/class_2245;
      named field_12723 Lnet/minecraft/block/PurpurSlab;field_12723:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • PurpurSlab

      public PurpurSlab()
  • Method Details

    • getDropItem

      @Nullable 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 Lajt;a(Lard;Ljava/util/Random;I)Lado;
      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;
    • method_8640

      public ItemStack method_8640(World world, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_8640 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;)Ladq;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;
      named method_8640 Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • 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 Lajt;a(I)Lard;
      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 Lajt;e(Lard;)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 Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • method_323

      public String method_323(int int2)
      Specified by:
      method_323 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official e Lalz;e(I)Ljava/lang/String;
      intermediary method_323 Lnet/minecraft/class_143;method_323(I)Ljava/lang/String;
      named method_323 Lnet/minecraft/block/SlabBlock;method_323(I)Ljava/lang/String;
    • method_8795

      public Property<?> method_8795()
      Specified by:
      method_8795 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official g Lalz;g()Lars;
      intermediary method_8795 Lnet/minecraft/class_143;method_8795()Lnet/minecraft/class_2247;
      named method_8795 Lnet/minecraft/block/SlabBlock;method_8795()Lnet/minecraft/state/property/Property;
    • method_11615

      public Comparable<?> method_11615(ItemStack itemStack)
      Specified by:
      method_11615 in class SlabBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lalz;a(Ladq;)Ljava/lang/Comparable;
      intermediary method_11615 Lnet/minecraft/class_143;method_11615(Lnet/minecraft/class_1071;)Ljava/lang/Comparable;
      named method_11615 Lnet/minecraft/block/SlabBlock;method_11615(Lnet/minecraft/item/ItemStack;)Ljava/lang/Comparable;