Class CarpetBlock

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

public class CarpetBlock extends Block
Mappings:
Namespace Name
official avd
intermediary net/minecraft/class_1596
named net/minecraft/block/CarpetBlock
  • Field Details

    • COLOR

      public static final EnumProperty<DyeColor> COLOR
      Mappings:
      Namespace Name Mixin selector
      official a Lavd;a:Laxh;
      intermediary field_9795 Lnet/minecraft/class_1596;field_9795:Lnet/minecraft/class_2245;
      named COLOR Lnet/minecraft/block/CarpetBlock;COLOR:Lnet/minecraft/state/property/EnumProperty;
    • field_12837

      protected static final Box field_12837
      Mappings:
      Namespace Name Mixin selector
      official b Lavd;b:Lbhb;
      intermediary field_12837 Lnet/minecraft/class_1596;field_12837:Lnet/minecraft/class_231;
      named field_12837 Lnet/minecraft/block/CarpetBlock;field_12837:Lnet/minecraft/util/math/Box;
  • Constructor Details

    • CarpetBlock

      protected CarpetBlock()
  • Method Details

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laow;b(Lawt;Lamy;Let;)Lbhb;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • 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;
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laow;b(Lawt;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laow;c(Lawt;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class Block
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lamu;Let;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • onBreak

      public void onBreak(BlockState state, World world, BlockPos arg3, Block block, BlockPos pos)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lawt;Lamu;Let;Laow;Let;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
    • method_8956

      private boolean method_8956(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Lavd;e(Lamu;Let;Lawt;)Z
      intermediary method_8956 Lnet/minecraft/class_1596;method_8956(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8956 Lnet/minecraft/block/CarpetBlock;method_8956(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_8955

      private boolean method_8955(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Lavd;b(Lamu;Let;)Z
      intermediary method_8955 Lnet/minecraft/class_1596;method_8955(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named method_8955 Lnet/minecraft/block/CarpetBlock;method_8955(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • method_8654

      @Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction)
      Overrides:
      method_8654 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lawt;Lamy;Let;Lfa;)Z
      intermediary method_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8654 Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • 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;
    • method_14307

      public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction)
      Overrides:
      method_14307 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lamy;Lawt;Let;Lfa;)Lawr;
      intermediary method_14307 Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;
      named method_14307 Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;