Package net.minecraft.client.color.block
Class BlockColors
java.lang.Object
net.minecraft.client.color.block.BlockColors
- Mappings:
Namespace Name official ewlintermediary net/minecraft/class_324named 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 official aLewl;a:Iintermediary field_32163Lnet/minecraft/class_324;field_32163:Inamed NO_COLORLnet/minecraft/client/color/block/BlockColors;NO_COLOR:I
-
providers
- Mappings:
Namespace Name Mixin selector official bLewl;b:Lin;intermediary field_1995Lnet/minecraft/class_324;field_1995:Lnet/minecraft/class_2361;named providersLnet/minecraft/client/color/block/BlockColors;providers:Lnet/minecraft/util/collection/IdList;
-
properties
- Mappings:
Namespace Name Mixin selector official cLewl;c:Ljava/util/Map;intermediary field_20271Lnet/minecraft/class_324;field_20271: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 official aLewl;a()Lewl;intermediary method_1689Lnet/minecraft/class_324;method_1689()Lnet/minecraft/class_324;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 official aLewl;a(Ldjh;Lctp;Lhx;)Iintermediary method_1691Lnet/minecraft/class_324;method_1691(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)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 official aLewl;a(Ldjh;Lcss;Lhx;I)Iintermediary method_1697Lnet/minecraft/class_324;method_1697(Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;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 official aLewl;a(Lewk;[Lcwq;)Vintermediary method_1690Lnet/minecraft/class_324;method_1690(Lnet/minecraft/class_322;[Lnet/minecraft/class_2248;)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 official aLewl;a(Ljava/util/Set;[Lcwq;)Vintermediary method_21594Lnet/minecraft/class_324;method_21594(Ljava/util/Set;[Lnet/minecraft/class_2248;)Vnamed registerColorPropertiesLnet/minecraft/client/color/block/BlockColors;registerColorProperties(Ljava/util/Set;[Lnet/minecraft/block/Block;)V
-
registerColorProperty
- Mappings:
Namespace Name Mixin selector official aLewl;a(Ldkk;[Lcwq;)Vintermediary method_21593Lnet/minecraft/class_324;method_21593(Lnet/minecraft/class_2769;[Lnet/minecraft/class_2248;)Vnamed registerColorPropertyLnet/minecraft/client/color/block/BlockColors;registerColorProperty(Lnet/minecraft/state/property/Property;[Lnet/minecraft/block/Block;)V
-
getProperties
- Mappings:
Namespace Name Mixin selector official aLewl;a(Lcwq;)Ljava/util/Set;intermediary method_21592Lnet/minecraft/class_324;method_21592(Lnet/minecraft/class_2248;)Ljava/util/Set;named getPropertiesLnet/minecraft/client/color/block/BlockColors;getProperties(Lnet/minecraft/block/Block;)Ljava/util/Set;
-