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 dgj
intermediary net/minecraft/class_5815
named net/minecraft/block/DyedCarpetBlock
  • Field Details

    • CODEC

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

      private final DyeColor dyeColor
      Mappings:
      Namespace Name Mixin selector
      official d Ldgj;d:Lclm;
      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> Ldgj;<init>(Lclm;Ldjg$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

    • getCodec

      public com.mojang.serialization.MapCodec<DyedCarpetBlock> getCodec()
      Overrides:
      getCodec in class CarpetBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()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 Ldgj;b()Lclm;
      intermediary method_33635 Lnet/minecraft/class_5815;method_33635()Lnet/minecraft/class_1767;
      named getDyeColor Lnet/minecraft/block/DyedCarpetBlock;getDyeColor()Lnet/minecraft/util/DyeColor;