Class DyedCarpetBlock

All Implemented Interfaces:
Equipment, ItemConvertible, ToggleableFeature

public class DyedCarpetBlock extends CarpetBlock implements Equipment
A carpet that has an associated carpet color for llamas.
Mappings:
Namespace Name
named net/minecraft/block/DyedCarpetBlock
intermediary net/minecraft/class_5815
official dow
  • 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 Ldow;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 Ldow;d:Lctk;
  • 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> Ldow;<init>(Lctk;Ldsd$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 Ldsd;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 Ldow;b()Lctk;
    • getSlotType

      public EquipmentSlot getSlotType()
      Specified by:
      getSlotType in interface Equipment
      Mappings:
      Namespace Name Mixin selector
      named getSlotType Lnet/minecraft/item/Equipment;getSlotType()Lnet/minecraft/entity/EquipmentSlot;
      intermediary method_7685 Lnet/minecraft/class_5151;method_7685()Lnet/minecraft/class_1304;
      official m Lctt;m()Lbtd;
    • getEquipSound

      public RegistryEntry<SoundEvent> getEquipSound()
      Specified by:
      getEquipSound in interface Equipment
      Mappings:
      Namespace Name Mixin selector
      named getEquipSound Lnet/minecraft/item/Equipment;getEquipSound()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_31570 Lnet/minecraft/class_5151;method_31570()Lnet/minecraft/class_6880;
      official n Lctt;n()Lji;