Package net.minecraft.client.color.block
Class BlockColors
java.lang.Object
net.minecraft.client.color.block.BlockColors
- Mappings:
Namespace Name named net/minecraft/client/color/block/BlockColorsintermediary net/minecraft/class_324official frs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final intstatic 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 named NO_COLORLnet/minecraft/client/color/block/BlockColors;NO_COLOR:Iintermediary field_32163Lnet/minecraft/class_324;field_32163:Iofficial cLfrs;c:I
-
PLACED_LILY_PAD
public static final int PLACED_LILY_PAD- See Also:
- Mappings:
Namespace Name Mixin selector named PLACED_LILY_PADLnet/minecraft/client/color/block/BlockColors;PLACED_LILY_PAD:Iintermediary field_55227Lnet/minecraft/class_324;field_55227:Iofficial aLfrs;a:I
-
LILY_PAD
public static final int LILY_PAD- See Also:
- Mappings:
Namespace Name Mixin selector named LILY_PADLnet/minecraft/client/color/block/BlockColors;LILY_PAD:Iintermediary field_55228Lnet/minecraft/class_324;field_55228:Iofficial bLfrs;b:I
-
providers
- Mappings:
Namespace Name Mixin selector named providersLnet/minecraft/client/color/block/BlockColors;providers:Lnet/minecraft/util/collection/IdList;intermediary field_1995Lnet/minecraft/class_324;field_1995:Lnet/minecraft/class_2361;official dLfrs;d:Ljm;
-
properties
- Mappings:
Namespace Name Mixin selector named propertiesLnet/minecraft/client/color/block/BlockColors;properties:Ljava/util/Map;intermediary field_20271Lnet/minecraft/class_324;field_20271:Ljava/util/Map;official eLfrs;e:Ljava/util/Map;
-
-
Constructor Details
-
BlockColors
public BlockColors()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/color/block/BlockColors;create()Lnet/minecraft/client/color/block/BlockColors;intermediary method_1689Lnet/minecraft/class_324;method_1689()Lnet/minecraft/class_324;official aLfrs;a()Lfrs;
-
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 named getParticleColorLnet/minecraft/client/color/block/BlockColors;getParticleColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_1691Lnet/minecraft/class_324;method_1691(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Iofficial aLfrs;a(Lebq;Ldkj;Liw;)I
-
getColor
public int getColor(BlockState state, @Nullable @Nullable BlockRenderView world, @Nullable @Nullable BlockPos pos, int tintIndex) - Mappings:
Namespace Name Mixin selector named getColorLnet/minecraft/client/color/block/BlockColors;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;I)Iintermediary method_1697Lnet/minecraft/class_324;method_1697(Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)Iofficial aLfrs;a(Lebq;Ldjk;Liw;I)I
-
registerColorProvider
- Mappings:
Namespace Name Mixin selector named registerColorProviderLnet/minecraft/client/color/block/BlockColors;registerColorProvider(Lnet/minecraft/client/color/block/BlockColorProvider;[Lnet/minecraft/block/Block;)Vintermediary method_1690Lnet/minecraft/class_324;method_1690(Lnet/minecraft/class_322;[Lnet/minecraft/class_2248;)Vofficial aLfrs;a(Lfrr;[Ldno;)V
-
registerColorProperties
- Mappings:
Namespace Name Mixin selector named registerColorPropertiesLnet/minecraft/client/color/block/BlockColors;registerColorProperties(Ljava/util/Set;[Lnet/minecraft/block/Block;)Vintermediary method_21594Lnet/minecraft/class_324;method_21594(Ljava/util/Set;[Lnet/minecraft/class_2248;)Vofficial aLfrs;a(Ljava/util/Set;[Ldno;)V
-
registerColorProperty
- Mappings:
Namespace Name Mixin selector named registerColorPropertyLnet/minecraft/client/color/block/BlockColors;registerColorProperty(Lnet/minecraft/state/property/Property;[Lnet/minecraft/block/Block;)Vintermediary method_21593Lnet/minecraft/class_324;method_21593(Lnet/minecraft/class_2769;[Lnet/minecraft/class_2248;)Vofficial aLfrs;a(Lect;[Ldno;)V
-
getProperties
- Mappings:
Namespace Name Mixin selector named getPropertiesLnet/minecraft/client/color/block/BlockColors;getProperties(Lnet/minecraft/block/Block;)Ljava/util/Set;intermediary method_21592Lnet/minecraft/class_324;method_21592(Lnet/minecraft/class_2248;)Ljava/util/Set;official aLfrs;a(Ldno;)Ljava/util/Set;
-