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 TypeMethodDescriptionstatic Block
static Block
BannerBlock.getForColor
(DyeColor color) static ItemStack
ShulkerBoxBlock.getItemStack
(@Nullable DyeColor color) private static Block
Blocks.registerBedBlock
(String id, DyeColor color) private static Block
Blocks.registerStainedGlassBlock
(String id, 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 final DyeColor
BannerBlockEntity.baseColor
ShulkerBoxBlockEntity.cachedColor
private final 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) 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.data
Methods in net.minecraft.client.data with parameters of type DyeColorModifier and TypeMethodDescriptionprivate void
BlockStateModelGenerator.registerBanner
(Block block, Block wallBlock, DyeColor color) private void
BlockStateModelGenerator.registerBed
(Block block, Block particleSource, DyeColor color) private void
BlockStateModelGenerator.registerShulkerBox
(Block shulkerBox, @Nullable DyeColor color) -
Uses of DyeColor in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type DyeColorModifier and TypeMethodDescriptionstatic SpriteIdentifier
TexturedRenderLayers.createBedTextureId
(DyeColor color) static Identifier
TexturedRenderLayers.createColorId
(DyeColor color) static SpriteIdentifier
TexturedRenderLayers.createShulkerBoxTextureId
(DyeColor color) static Identifier
TexturedRenderLayers.createShulkerId
(DyeColor color) static SpriteIdentifier
TexturedRenderLayers.getBedTextureId
(DyeColor color) static SpriteIdentifier
TexturedRenderLayers.getShulkerBoxTextureId
(DyeColor color) -
Uses of DyeColor in net.minecraft.client.render.block.entity
Methods in net.minecraft.client.render.block.entity with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static void
BannerBlockEntityRenderer.render
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, float rotation, BannerBlockModel model, BannerFlagBlockModel flagModel, float sway, DyeColor baseColor, BannerPatternsComponent patterns) void
BannerBlockEntityRenderer.renderAsItem
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, DyeColor baseColor, BannerPatternsComponent patterns) static 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, boolean solid) 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.client.render.entity.state
Fields in net.minecraft.client.render.entity.state declared as DyeColor -
Uses of DyeColor in net.minecraft.client.render.item.model.special
Fields in net.minecraft.client.render.item.model.special declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
BannerModelRenderer.baseColor
private final DyeColor
BannerModelRenderer.Unbaked.baseColor
The field for thebaseColor
record component.Methods in net.minecraft.client.render.item.model.special that return DyeColorModifier and TypeMethodDescriptionBannerModelRenderer.Unbaked.baseColor()
Returns the value of thebaseColor
record component.Constructors in net.minecraft.client.render.item.model.special with parameters of type DyeColorModifierConstructorDescriptionBannerModelRenderer
(DyeColor baseColor, BannerBlockEntityRenderer blockEntityRenderer) -
Uses of DyeColor in net.minecraft.component
Fields in net.minecraft.component with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final ComponentType
<DyeColor> DataComponentTypes.BASE_COLOR
static final ComponentType
<DyeColor> DataComponentTypes.CAT_COLLAR
static final ComponentType
<DyeColor> DataComponentTypes.SHEEP_COLOR
static final ComponentType
<DyeColor> DataComponentTypes.SHULKER_COLOR
static final ComponentType
<DyeColor> DataComponentTypes.TROPICAL_FISH_BASE_COLOR
static final ComponentType
<DyeColor> DataComponentTypes.TROPICAL_FISH_PATTERN_COLOR
static final ComponentType
<DyeColor> DataComponentTypes.WOLF_COLLAR
-
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.static EquippableComponent
Constructors in net.minecraft.component.type with parameters of type DyeColorModifierConstructorDescriptionLayer
(RegistryEntry<BannerPattern> registryEntry, DyeColor dyeColor) -
Uses of DyeColor in net.minecraft.data.loottable
Fields in net.minecraft.data.loottable with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final Map
<DyeColor, ItemConvertible> LootTableData.WOOL_FROM_DYE_COLOR
Method parameters in net.minecraft.data.loottable with type arguments of type DyeColorModifier and TypeMethodDescriptionstatic LootPool.Builder
EntityLootTableGenerator.createForSheep
(Map<DyeColor, RegistryKey<LootTable>> colorLootTables) -
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 static final DyeColor
CatEntity.DEFAULT_COLLAR_COLOR
private static final DyeColor
WolfEntity.DEFAULT_COLLAR_COLOR
private static final DyeColor
SheepEntity.DEFAULT_COLOR
private final DyeColor
TropicalFishEntity.Variant.patternColor
The field for thepatternColor
record component.Fields in net.minecraft.entity.passive with type parameters of type DyeColorMethods in net.minecraft.entity.passive that return DyeColorModifier and TypeMethodDescriptionTropicalFishEntity.Variant.baseColor()
Returns the value of thebaseColor
record component.TropicalFishEntity.getBaseColor()
static DyeColor
TropicalFishEntity.getBaseColor
(int variant) CatEntity.getCollarColor()
WolfEntity.getCollarColor()
SheepEntity.getColor()
TropicalFishEntity.getPatternColor()
static DyeColor
TropicalFishEntity.getPatternColor
(int variant) TropicalFishEntity.Variant.patternColor()
Returns the value of thepatternColor
record component.static DyeColor
SheepColors.select
(RegistryEntry<Biome> biome, Random random) static DyeColor
SheepEntity.selectSpawnColor
(ServerWorldAccess world, BlockPos pos) Methods in net.minecraft.entity.passive with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static SheepColors.ColorSelector
SheepColors.createDefaultSelector
(DyeColor color) private static SheepColors.ColorSelector
SheepColors.createSingleSelector
(DyeColor color) private static int
SheepEntity.getDyedColor
(DyeColor color) static int
SheepEntity.getRgbColor
(DyeColor dyeColor) (package private) static int
TropicalFishEntity.getVariantId
(TropicalFishEntity.Pattern variety, DyeColor baseColor, DyeColor patternColor) private void
TropicalFishEntity.setBaseColor
(DyeColor baseColor) private void
CatEntity.setCollarColor
(DyeColor color) private void
WolfEntity.setCollarColor
(DyeColor color) void
private void
TropicalFishEntity.setPatternColor
(DyeColor patternColor) Constructors in net.minecraft.entity.passive with parameters of type DyeColorModifierConstructorDescriptionVariant
(TropicalFishEntity.Pattern pattern, 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.equipment
Fields in net.minecraft.item.equipment with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final Map
<DyeColor, RegistryKey<EquipmentAsset>> EquipmentAssetKeys.CARPET_FROM_COLOR
-
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
Fields in net.minecraft.loot with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final Map
<DyeColor, RegistryKey<LootTable>> LootTables.SHEEP_DROPS_FROM_DYE_COLOR
static final Map
<DyeColor, RegistryKey<LootTable>> LootTables.SHEEP_SHEARING_FROM_DYE_COLOR
Methods in net.minecraft.loot that return types with arguments of type DyeColorModifier and TypeMethodDescriptionprivate static Map
<DyeColor, RegistryKey<LootTable>> LootTables.registerAllDyeColors
(String prefix) -
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
static final StringIdentifiable.EnumCodec
<DyeColor> DyeColor.CODEC
static final com.mojang.serialization.Codec
<DyeColor> DyeColor.INDEX_CODEC
Deprecated.private static final IntFunction
<DyeColor> DyeColor.INDEX_MAPPER
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.Returns the dye color whose id isid
, orfallback
if there is no such color.static DyeColor
DyeColor.byIndex
(int index) Returns the dye color whose index isindex
.static DyeColor
DyeColor.mixColors
(ServerWorld world, DyeColor first, DyeColor second) 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 DyeColorModifier and TypeMethodDescriptionReturns the dye color whose id isid
, orfallback
if there is no such color.private static CraftingRecipeInput
DyeColor.createColorMixingRecipeInput
(DyeColor first, DyeColor second) static DyeColor
DyeColor.mixColors
(ServerWorld world, DyeColor first, DyeColor second)