Package net.minecraft.client.color.block
Class BlockColors
java.lang.Object
net.minecraft.client.color.block.BlockColors
- Mappings:
Namespace Name intermediary net/minecraft/class_324official eognamed net/minecraft/client/color/block/BlockColors
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final IdList<BlockColorProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockColorscreate()intgetColor(BlockState state, @Nullable BlockRenderView world, @Nullable BlockPos pos, int tintIndex) intgetParticleColor(BlockState state, World world, BlockPos pos) Returns the particle color of the block state.getProperties(Block block) private voidregisterColorProperties(Set<Property<?>> properties, Block[] blocks) private voidregisterColorProperty(Property<?> property, Block[] blocks) voidregisterColorProvider(BlockColorProvider provider, Block[] blocks)
-
Field Details
-
NO_COLOR
private static final int NO_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32163Lnet/minecraft/class_324;field_32163:Iofficial aLeog;a:Inamed NO_COLORLnet/minecraft/client/color/block/BlockColors;NO_COLOR:I
-
providers
- Mappings:
Namespace Name Mixin selector intermediary field_1995Lnet/minecraft/class_324;field_1995:Lnet/minecraft/class_2361;official bLeog;b:Lhk;named providersLnet/minecraft/client/color/block/BlockColors;providers:Lnet/minecraft/util/collection/IdList;
-
properties
- Mappings:
Namespace Name Mixin selector intermediary field_20271Lnet/minecraft/class_324;field_20271:Ljava/util/Map;official cLeog;c:Ljava/util/Map;named propertiesLnet/minecraft/client/color/block/BlockColors;properties:Ljava/util/Map;
-
-
Constructor Details
-
BlockColors
public BlockColors()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector intermediary method_1689Lnet/minecraft/class_324;method_1689()Lnet/minecraft/class_324;official aLeog;a()Leog;named createLnet/minecraft/client/color/block/BlockColors;create()Lnet/minecraft/client/color/block/BlockColors;
-
getParticleColor
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 intermediary method_1691Lnet/minecraft/class_324;method_1691(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Iofficial aLeog;a(Ldby;Lcmk;Lgu;)Inamed getParticleColorLnet/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 intermediary method_1697Lnet/minecraft/class_324;method_1697(Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)Iofficial aLeog;a(Ldby;Lcln;Lgu;I)Inamed getColorLnet/minecraft/client/color/block/BlockColors;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;I)I
-
registerColorProvider
- Mappings:
Namespace Name Mixin selector intermediary method_1690Lnet/minecraft/class_324;method_1690(Lnet/minecraft/class_322;[Lnet/minecraft/class_2248;)Vofficial aLeog;a(Leof;[Lcpl;)Vnamed registerColorProviderLnet/minecraft/client/color/block/BlockColors;registerColorProvider(Lnet/minecraft/client/color/block/BlockColorProvider;[Lnet/minecraft/block/Block;)V
-
registerColorProperties
- Mappings:
Namespace Name Mixin selector intermediary method_21594Lnet/minecraft/class_324;method_21594(Ljava/util/Set;[Lnet/minecraft/class_2248;)Vofficial aLeog;a(Ljava/util/Set;[Lcpl;)Vnamed registerColorPropertiesLnet/minecraft/client/color/block/BlockColors;registerColorProperties(Ljava/util/Set;[Lnet/minecraft/block/Block;)V
-
registerColorProperty
- Mappings:
Namespace Name Mixin selector intermediary method_21593Lnet/minecraft/class_324;method_21593(Lnet/minecraft/class_2769;[Lnet/minecraft/class_2248;)Vofficial aLeog;a(Lddb;[Lcpl;)Vnamed registerColorPropertyLnet/minecraft/client/color/block/BlockColors;registerColorProperty(Lnet/minecraft/state/property/Property;[Lnet/minecraft/block/Block;)V
-
getProperties
- Mappings:
Namespace Name Mixin selector intermediary method_21592Lnet/minecraft/class_324;method_21592(Lnet/minecraft/class_2248;)Ljava/util/Set;official aLeog;a(Lcpl;)Ljava/util/Set;named getPropertiesLnet/minecraft/client/color/block/BlockColors;getProperties(Lnet/minecraft/block/Block;)Ljava/util/Set;
-