Class ColoredFallingBlock

All Implemented Interfaces:
LandingBlock, ItemConvertible, ToggleableFeature

public class ColoredFallingBlock extends FallingBlock
Mappings:
Namespace Name
official cxy
intermediary net/minecraft/class_8812
named net/minecraft/block/ColoredFallingBlock
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<ColoredFallingBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcxy;a:Lcom/mojang/serialization/MapCodec;
      intermediary field_46316 Lnet/minecraft/class_8812;field_46316:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/block/ColoredFallingBlock;CODEC:Lcom/mojang/serialization/MapCodec;
    • color

      private final ColorCode color
      Mappings:
      Namespace Name Mixin selector
      official b Lcxy;b:Lati;
      intermediary field_46317 Lnet/minecraft/class_8812;field_46317:Lnet/minecraft/class_8805;
      named color Lnet/minecraft/block/ColoredFallingBlock;color:Lnet/minecraft/util/ColorCode;
  • Constructor Details

    • ColoredFallingBlock

      public ColoredFallingBlock(ColorCode color, AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxy;<init>(Lati;Ldjg$d;)V
      intermediary <init> Lnet/minecraft/class_8812;<init>(Lnet/minecraft/class_8805;Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/ColoredFallingBlock;<init>(Lnet/minecraft/util/ColorCode;Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<ColoredFallingBlock> getCodec()
      Specified by:
      getCodec in class FallingBlock
      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;
    • getColor

      public int getColor(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getColor in class FallingBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lczm;b(Ldjh;Lcsv;Lhx;)I
      intermediary method_10130 Lnet/minecraft/class_2346;method_10130(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named getColor Lnet/minecraft/block/FallingBlock;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I