Uses of Enum Class
net.minecraft.util.DyeColor
Packages that use DyeColor
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of DyeColor in net.minecraft.block
Fields in net.minecraft.block declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
AbstractBannerBlock.color
private final DyeColor
BedBlock.color
ShulkerBoxBlock.color
private final DyeColor
StainedGlassBlock.color
private final DyeColor
StainedGlassPaneBlock.color
private final DyeColor
DyedCarpetBlock.dyeColor
Fields in net.minecraft.block with type parameters of type DyeColorMethods in net.minecraft.block that return DyeColorModifier and TypeMethodDescriptionAbstractBannerBlock.getColor()
BeaconBlock.getColor()
BedBlock.getColor()
ShulkerBoxBlock.getColor()
Stainable.getColor()
StainedGlassBlock.getColor()
StainedGlassPaneBlock.getColor()
DyedCarpetBlock.getDyeColor()
Returns the color of this carpet when worn by a llama.Methods in net.minecraft.block with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static Block
Blocks.createBedBlock
(DyeColor color) private static Block
Blocks.createShulkerBoxBlock
(@Nullable DyeColor color, MapColor mapColor) private static Block
Blocks.createStainedGlassBlock
(DyeColor color) static Block
static Block
BannerBlock.getForColor
(DyeColor color) static ItemStack
ShulkerBoxBlock.getItemStack
(@Nullable DyeColor color) Constructors in net.minecraft.block with parameters of type DyeColorModifierConstructorDescriptionprotected
AbstractBannerBlock
(DyeColor color, AbstractBlock.Settings settings) BannerBlock
(DyeColor color, AbstractBlock.Settings settings) BedBlock
(DyeColor color, AbstractBlock.Settings settings) protected
DyedCarpetBlock
(DyeColor dyeColor, AbstractBlock.Settings settings) ShulkerBoxBlock
(@Nullable DyeColor color, AbstractBlock.Settings settings) StainedGlassBlock
(DyeColor color, AbstractBlock.Settings settings) StainedGlassPaneBlock
(DyeColor color, AbstractBlock.Settings settings) WallBannerBlock
(DyeColor color, AbstractBlock.Settings settings) -
Uses of DyeColor in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as DyeColorModifier and TypeFieldDescriptionprivate DyeColor
BannerBlockEntity.baseColor
ShulkerBoxBlockEntity.cachedColor
private DyeColor
BedBlockEntity.color
private final DyeColor
SignText.color
Methods in net.minecraft.block.entity that return DyeColorModifier and TypeMethodDescriptionBedBlockEntity.getColor()
ShulkerBoxBlockEntity.getColor()
SignText.getColor()
BannerBlockEntity.getColorForState()
Methods in net.minecraft.block.entity with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static SignText
SignText.create
(Text[] messages, Optional<Text[]> filteredMessages, DyeColor color, boolean glowing) void
void
Constructors in net.minecraft.block.entity with parameters of type DyeColorModifierConstructorDescriptionBannerBlockEntity
(BlockPos pos, BlockState state, DyeColor baseColor) BedBlockEntity
(BlockPos pos, BlockState state, DyeColor color) ShulkerBoxBlockEntity
(@Nullable DyeColor color, BlockPos pos, BlockState state) -
Uses of DyeColor in net.minecraft.client.render.block.entity
Methods in net.minecraft.client.render.block.entity with parameters of type DyeColorModifier and TypeMethodDescriptionstatic void
BannerBlockEntityRenderer.renderCanvas
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, ModelPart canvas, SpriteIdentifier baseSprite, boolean isBanner, DyeColor color, BannerPatternsComponent patterns) static void
BannerBlockEntityRenderer.renderCanvas
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, ModelPart canvas, SpriteIdentifier baseSprite, boolean isBanner, DyeColor color, BannerPatternsComponent patterns, boolean glint) private static void
BannerBlockEntityRenderer.renderLayer
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, ModelPart canvas, SpriteIdentifier textureId, DyeColor color) -
Uses of DyeColor in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type DyeColorModifier and TypeMethodDescriptionstatic Identifier
ShulkerEntityRenderer.getTexture
(@Nullable DyeColor shulkerColor) -
Uses of DyeColor in net.minecraft.component
Fields in net.minecraft.component with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final DataComponentType
<DyeColor> DataComponentTypes.BASE_COLOR
-
Uses of DyeColor in net.minecraft.component.type
Fields in net.minecraft.component.type declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
BannerPatternsComponent.Layer.color
The field for thecolor
record component.Methods in net.minecraft.component.type that return DyeColorModifier and TypeMethodDescriptionBannerPatternsComponent.Layer.color()
Returns the value of thecolor
record component.Methods in net.minecraft.component.type with parameters of type DyeColorModifier and TypeMethodDescriptionBannerPatternsComponent.Builder.add
(RegistryEntry<BannerPattern> pattern, DyeColor color) BannerPatternsComponent.Builder.add
(RegistryEntryLookup<BannerPattern> patternLookup, RegistryKey<BannerPattern> pattern, DyeColor color) Deprecated.Constructors in net.minecraft.component.type with parameters of type DyeColorModifierConstructorDescriptionLayer
(RegistryEntry<BannerPattern> registryEntry, DyeColor dyeColor) -
Uses of DyeColor in net.minecraft.entity.ai.brain.task
Methods in net.minecraft.entity.ai.brain.task with parameters of type DyeColorModifier and TypeMethodDescriptionprivate ItemStack
CelebrateRaidWinTask.createFirework
(DyeColor color, int flight) -
Uses of DyeColor in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return DyeColorMethods in net.minecraft.entity.mob that return types with arguments of type DyeColorMethod parameters in net.minecraft.entity.mob with type arguments of type DyeColor -
Uses of DyeColor in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
TropicalFishEntity.Variant.baseColor
The field for thebaseColor
record component.private final DyeColor
TropicalFishEntity.Variant.patternColor
The field for thepatternColor
record component.Fields in net.minecraft.entity.passive with type parameters of type DyeColorModifier and TypeFieldDescriptionSheepEntity.COLORS
private static final Map
<DyeColor, ItemConvertible> SheepEntity.DROPS
Methods in net.minecraft.entity.passive that return DyeColorModifier and TypeMethodDescriptionTropicalFishEntity.Variant.baseColor()
Returns the value of thebaseColor
record component.static DyeColor
SheepEntity.generateDefaultColor
(Random random) TropicalFishEntity.getBaseColorComponents()
static DyeColor
TropicalFishEntity.getBaseDyeColor
(int variant) LlamaEntity.getCarpetColor()
private DyeColor
SheepEntity.getChildColor
(AnimalEntity firstParent, AnimalEntity secondParent) CatEntity.getCollarColor()
WolfEntity.getCollarColor()
SheepEntity.getColor()
LlamaEntity.getColorFromCarpet
(ItemStack color) TropicalFishEntity.getPatternColorComponents()
static DyeColor
TropicalFishEntity.getPatternDyeColor
(int variant) TropicalFishEntity.Variant.patternColor()
Returns the value of thepatternColor
record component.Methods in net.minecraft.entity.passive with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static RecipeInputInventory
SheepEntity.createDyeMixingCraftingInventory
(DyeColor firstColor, DyeColor secondColor) private static float[]
SheepEntity.getDyedColor
(DyeColor color) static float[]
SheepEntity.getRgbColor
(DyeColor dyeColor) (package private) static int
TropicalFishEntity.getVariantId
(TropicalFishEntity.Variety variety, DyeColor baseColor, DyeColor patternColor) private void
CatEntity.setCollarColor
(DyeColor color) private void
WolfEntity.setCollarColor
(DyeColor color) void
Constructors in net.minecraft.entity.passive with parameters of type DyeColorModifierConstructorDescriptionVariant
(TropicalFishEntity.Variety variety, DyeColor dyeColor, DyeColor dyeColor2) -
Uses of DyeColor in net.minecraft.item
Fields in net.minecraft.item declared as DyeColorFields in net.minecraft.item with type parameters of type DyeColorMethods in net.minecraft.item that return DyeColorMethods in net.minecraft.item with parameters of type DyeColorConstructors in net.minecraft.item with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.item.map
Fields in net.minecraft.item.map declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
MapBannerMarker.color
The field for thecolor
record component.Methods in net.minecraft.item.map that return DyeColorModifier and TypeMethodDescriptionMapBannerMarker.color()
Returns the value of thecolor
record component.Constructors in net.minecraft.item.map with parameters of type DyeColorModifierConstructorDescriptionMapBannerMarker
(BlockPos pos, DyeColor dyeColor, Optional<Text> optional) -
Uses of DyeColor in net.minecraft.loot.function
Methods in net.minecraft.loot.function with parameters of type DyeColorModifier and TypeMethodDescriptionSetBannerPatternLootFunction.Builder.pattern
(RegistryEntry<BannerPattern> pattern, DyeColor color) -
Uses of DyeColor in net.minecraft.util
Fields in net.minecraft.util with type parameters of type DyeColorModifier and TypeFieldDescriptionprivate static final Int2ObjectOpenHashMap
<DyeColor> DyeColor.BY_FIREWORK_COLOR
private static final IntFunction
<DyeColor> DyeColor.BY_ID
static final StringIdentifiable.EnumCodec
<DyeColor> DyeColor.CODEC
static final PacketCodec
<ByteBuf, DyeColor> DyeColor.PACKET_CODEC
Methods in net.minecraft.util that return DyeColorModifier and TypeMethodDescriptionDyeColor.byFireworkColor
(int color) Returns the dye color whose firework color iscolor
, ornull
if there is no such color.static DyeColor
DyeColor.byId
(int id) Returns the dye color whose ID isid
.Returns the dye color whose name isname
, ordefaultColor
if there is no such color.static DyeColor
Returns the enum constant of this class with the specified name.static DyeColor[]
DyeColor.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.util with parameters of type DyeColor