Class BlockColors

java.lang.Object
net.minecraft.client.color.block.BlockColors

@Environment(CLIENT) public class BlockColors extends Object
Mappings:
Namespace Name
official ewl
intermediary net/minecraft/class_324
named net/minecraft/client/color/block/BlockColors
  • Field Details

    • NO_COLOR

      private static final int NO_COLOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a:I
      intermediary field_32163 Lnet/minecraft/class_324;field_32163:I
      named NO_COLOR Lnet/minecraft/client/color/block/BlockColors;NO_COLOR:I
    • providers

      private final IdList<BlockColorProvider> providers
      Mappings:
      Namespace Name Mixin selector
      official b Lewl;b:Lin;
      intermediary field_1995 Lnet/minecraft/class_324;field_1995:Lnet/minecraft/class_2361;
      named providers Lnet/minecraft/client/color/block/BlockColors;providers:Lnet/minecraft/util/collection/IdList;
    • properties

      private final Map<Block,Set<Property<?>>> properties
      Mappings:
      Namespace Name Mixin selector
      official c Lewl;c:Ljava/util/Map;
      intermediary field_20271 Lnet/minecraft/class_324;field_20271:Ljava/util/Map;
      named properties Lnet/minecraft/client/color/block/BlockColors;properties:Ljava/util/Map;
  • Constructor Details

    • BlockColors

      public BlockColors()
  • Method Details

    • create

      public static BlockColors create()
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a()Lewl;
      intermediary method_1689 Lnet/minecraft/class_324;method_1689()Lnet/minecraft/class_324;
      named create Lnet/minecraft/client/color/block/BlockColors;create()Lnet/minecraft/client/color/block/BlockColors;
    • getParticleColor

      public int getParticleColor(BlockState state, World world, BlockPos pos)
      Returns the particle color of the block state.
      Returns:
      the particle color of the block state
      Implementation Requirements:
      If there's no color provider for the specified block, falls back to its map color.
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Ldjh;Lctp;Lhx;)I
      intermediary method_1691 Lnet/minecraft/class_324;method_1691(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
      named getParticleColor Lnet/minecraft/client/color/block/BlockColors;getParticleColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • getColor

      public int getColor(BlockState state, @Nullable @Nullable BlockRenderView world, @Nullable @Nullable BlockPos pos, int tintIndex)
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Ldjh;Lcss;Lhx;I)I
      intermediary method_1697 Lnet/minecraft/class_324;method_1697(Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)I
      named getColor Lnet/minecraft/client/color/block/BlockColors;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;I)I
    • registerColorProvider

      public void registerColorProvider(BlockColorProvider provider, Block[] blocks)
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Lewk;[Lcwq;)V
      intermediary method_1690 Lnet/minecraft/class_324;method_1690(Lnet/minecraft/class_322;[Lnet/minecraft/class_2248;)V
      named registerColorProvider Lnet/minecraft/client/color/block/BlockColors;registerColorProvider(Lnet/minecraft/client/color/block/BlockColorProvider;[Lnet/minecraft/block/Block;)V
    • registerColorProperties

      private void registerColorProperties(Set<Property<?>> properties, Block[] blocks)
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Ljava/util/Set;[Lcwq;)V
      intermediary method_21594 Lnet/minecraft/class_324;method_21594(Ljava/util/Set;[Lnet/minecraft/class_2248;)V
      named registerColorProperties Lnet/minecraft/client/color/block/BlockColors;registerColorProperties(Ljava/util/Set;[Lnet/minecraft/block/Block;)V
    • registerColorProperty

      private void registerColorProperty(Property<?> property, Block[] blocks)
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Ldkk;[Lcwq;)V
      intermediary method_21593 Lnet/minecraft/class_324;method_21593(Lnet/minecraft/class_2769;[Lnet/minecraft/class_2248;)V
      named registerColorProperty Lnet/minecraft/client/color/block/BlockColors;registerColorProperty(Lnet/minecraft/state/property/Property;[Lnet/minecraft/block/Block;)V
    • getProperties

      public Set<Property<?>> getProperties(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lewl;a(Lcwq;)Ljava/util/Set;
      intermediary method_21592 Lnet/minecraft/class_324;method_21592(Lnet/minecraft/class_2248;)Ljava/util/Set;
      named getProperties Lnet/minecraft/client/color/block/BlockColors;getProperties(Lnet/minecraft/block/Block;)Ljava/util/Set;