Class DyedCarpetBlock

All Implemented Interfaces:
ItemConvertible

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

    • dyeColor

      private final DyeColor dyeColor
      Mappings:
      Namespace Name Mixin selector
      official b Lcrz;b:Lbyt;
      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> Lcrz;<init>(Lbyt;Lcuq$c;)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

    • 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 Lcrz;b()Lbyt;
      intermediary method_33635 Lnet/minecraft/class_5815;method_33635()Lnet/minecraft/class_1767;
      named getDyeColor Lnet/minecraft/block/DyedCarpetBlock;getDyeColor()Lnet/minecraft/util/DyeColor;