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

    • CODEC

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

      private final DyeColor dyeColor
      Mappings:
      Namespace Name Mixin selector
      named dyeColor Lnet/minecraft/block/DyedCarpetBlock;dyeColor:Lnet/minecraft/util/DyeColor;
      intermediary field_28715 Lnet/minecraft/class_5815;field_28715:Lnet/minecraft/class_1767;
      official d Lduj;d:Lcwl;
  • 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
      named <init> Lnet/minecraft/block/DyedCarpetBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_5815;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)V
      official <init> Lduj;<init>(Lcwl;Ldxt$d;)V
  • Method Details

    • getCodec

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