Class DirtBlock

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

public class DirtBlock extends Block
Mappings:
Namespace Name
official apy
intermediary net/minecraft/class_127
named net/minecraft/block/DirtBlock
  • Field Details

    • VARIANT

      public static final EnumProperty<DirtBlock.DirtType> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official a Lapy;a:Laxh;
      intermediary field_9355 Lnet/minecraft/class_127;field_9355:Lnet/minecraft/class_2245;
      named VARIANT Lnet/minecraft/block/DirtBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
    • SNOWY

      public static final BooleanProperty SNOWY
      Mappings:
      Namespace Name Mixin selector
      official b Lapy;b:Laxf;
      intermediary field_9356 Lnet/minecraft/class_127;field_9356:Lnet/minecraft/class_2243;
      named SNOWY Lnet/minecraft/block/DirtBlock;SNOWY:Lnet/minecraft/state/property/BooleanProperty;
  • Constructor Details

    • DirtBlock

      protected DirtBlock()
  • Method Details

    • 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;
    • getBlockState

      public BlockState getBlockState(BlockState state, BlockView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - BlockView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official d Laow;d(Lawt;Lamy;Let;)Lawt;
      intermediary method_8656 Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named getBlockState Lnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • 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
    • 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 Laow;a(Lamu;Let;Lawt;)Laip;
      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 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;
    • 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