Class BlockColors

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

@Environment(CLIENT) public class BlockColors extends Object
Mappings:
Namespace Name
official ekg
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 Lekg;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 Lekg;b:Lhf;
      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 Lekg;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 Lekg;a()Lekg;
      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 Lekg;a(Lcyt;Lcjw;Lgp;)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 Lekg;a(Lcyt;Lciz;Lgp;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 Lekg;a(Lekf;[Lcmt;)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 Lekg;a(Ljava/util/Set;[Lcmt;)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 Lekg;a(Lczw;[Lcmt;)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 Lekg;a(Lcmt;)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;