Class DyedCarpetBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class DyedCarpetBlock extends CarpetBlock
A carpet that has an associated carpet color for llamas.
Mappings:
Namespace Name
official dcn
intermediary net/minecraft/class_5815
named net/minecraft/block/DyedCarpetBlock
  • Field Details

    • field_46506

      public static final com.mojang.serialization.MapCodec<DyedCarpetBlock> field_46506
      Mappings:
      Namespace Name Mixin selector
      official c Ldcn;c:Lcom/mojang/serialization/MapCodec;
      intermediary field_46506 Lnet/minecraft/class_5815;field_46506:Lcom/mojang/serialization/MapCodec;
      named field_46506 Lnet/minecraft/block/DyedCarpetBlock;field_46506:Lcom/mojang/serialization/MapCodec;
    • dyeColor

      private final DyeColor dyeColor
      Mappings:
      Namespace Name Mixin selector
      official d Ldcn;d:Lchz;
      intermediary field_28715 Lnet/minecraft/class_5815;field_28715:Lnet/minecraft/class_1767;
      named dyeColor Lnet/minecraft/block/DyedCarpetBlock;dyeColor:Lnet/minecraft/util/DyeColor;
  • Constructor Details

    • DyedCarpetBlock

      protected DyedCarpetBlock(DyeColor dyeColor, AbstractBlock.Settings settings)
      Parameters:
      dyeColor - the color of this carpet when worn by a llama
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldcn;<init>(Lchz;Ldfc$d;)V
      intermediary <init> Lnet/minecraft/class_5815;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/DyedCarpetBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • method_53969

      public com.mojang.serialization.MapCodec<DyedCarpetBlock> method_53969()
      Overrides:
      method_53969 in class CarpetBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldfc;a()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      named method_53969 Lnet/minecraft/block/AbstractBlock;method_53969()Lcom/mojang/serialization/MapCodec;
    • getDyeColor

      public DyeColor getDyeColor()
      Returns the color of this carpet when worn by a llama.

      If null, the llama will not appear to be wearing the carpet. However, the carpet will remain wearable by the llama.

      Returns:
      the color of this carpet when worn by a llama
      Mappings:
      Namespace Name Mixin selector
      official b Ldcn;b()Lchz;
      intermediary method_33635 Lnet/minecraft/class_5815;method_33635()Lnet/minecraft/class_1767;
      named getDyeColor Lnet/minecraft/block/DyedCarpetBlock;getDyeColor()Lnet/minecraft/util/DyeColor;