Uses of Enum Class
net.minecraft.util.DyeColor
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of DyeColor in net.minecraft.block
Modifier and TypeFieldDescriptionprivate final DyeColor
AbstractBannerBlock.color
private final DyeColor
BedBlock.color
private final @Nullable DyeColor
ShulkerBoxBlock.color
private final DyeColor
StainedGlassBlock.color
private final DyeColor
StainedGlassPaneBlock.color
private final DyeColor
DyedCarpetBlock.dyeColor
Modifier and TypeMethodDescriptionAbstractBannerBlock.getColor()
BeaconBlock.getColor()
BedBlock.getColor()
@Nullable DyeColor
ShulkerBoxBlock.getColor()
static @Nullable DyeColor
static @Nullable DyeColor
Stainable.getColor()
StainedGlassBlock.getColor()
StainedGlassPaneBlock.getColor()
DyedCarpetBlock.getDyeColor()
Returns the color of this carpet when worn by a llama.Modifier and TypeMethodDescriptionprivate static BedBlock
Blocks.createBedBlock
(DyeColor color) private static ShulkerBoxBlock
Blocks.createShulkerBoxBlock
(DyeColor color, AbstractBlock.Settings settings) private static StainedGlassBlock
Blocks.createStainedGlassBlock
(DyeColor color) static Block
static Block
BannerBlock.getForColor
(DyeColor color) static ItemStack
ShulkerBoxBlock.getItemStack
(@Nullable DyeColor color) ModifierConstructorDescriptionprotected
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
Modifier and TypeFieldDescriptionprivate DyeColor
BannerBlockEntity.baseColor
private final @Nullable DyeColor
ShulkerBoxBlockEntity.cachedColor
private DyeColor
BedBlockEntity.color
private final DyeColor
SignText.color
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> BannerPattern.Patterns.entries
private @Nullable List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> BannerBlockEntity.patterns
Modifier and TypeMethodDescriptionBedBlockEntity.getColor()
@Nullable DyeColor
ShulkerBoxBlockEntity.getColor()
SignText.getColor()
BannerBlockEntity.getColorForState()
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> BannerBlockEntity.getPatterns()
static List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> BannerBlockEntity.getPatternsFromNbt
(DyeColor baseColor, @Nullable NbtList patternListNbt) Modifier and TypeMethodDescriptionBannerPattern.Patterns.add
(RegistryEntry<BannerPattern> pattern, DyeColor color) BannerPattern.Patterns.add
(RegistryKey<BannerPattern> pattern, DyeColor color) private static SignText
SignText.create
(Text[] messages, Optional<Text[]> filteredMessages, DyeColor color, boolean glowing) static List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> BannerBlockEntity.getPatternsFromNbt
(DyeColor baseColor, @Nullable NbtList patternListNbt) void
void
Modifier and TypeMethodDescriptionBannerPattern.Patterns.add
(com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>, DyeColor> pattern) ModifierConstructorDescriptionBannerBlockEntity
(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.gui.screen.ingame
Modifier and TypeFieldDescriptionprivate @Nullable List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> LoomScreen.bannerPatterns
-
Uses of DyeColor in net.minecraft.client.render.block.entity
Modifier and TypeMethodDescriptionstatic void
BannerBlockEntityRenderer.renderCanvas
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, ModelPart canvas, SpriteIdentifier baseSprite, boolean isBanner, List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>, DyeColor>> patterns) static void
BannerBlockEntityRenderer.renderCanvas
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, ModelPart canvas, SpriteIdentifier baseSprite, boolean isBanner, List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>, DyeColor>> patterns, boolean glint) -
Uses of DyeColor in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionstatic Identifier
ShulkerEntityRenderer.getTexture
(@Nullable DyeColor shulkerColor) -
Uses of DyeColor in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate ItemStack
CelebrateRaidWinTask.createFirework
(DyeColor color, int flight) -
Uses of DyeColor in net.minecraft.entity.mob
-
Uses of DyeColor in net.minecraft.entity.passive
Modifier 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.Modifier and TypeFieldDescriptionSheepEntity.COLORS
private static final Map<DyeColor,
ItemConvertible> SheepEntity.DROPS
Modifier 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) @Nullable DyeColor
LlamaEntity.getCarpetColor()
private DyeColor
SheepEntity.getChildColor
(AnimalEntity firstParent, AnimalEntity secondParent) CatEntity.getCollarColor()
WolfEntity.getCollarColor()
SheepEntity.getColor()
private static @Nullable DyeColor
LlamaEntity.getColorFromCarpet
(ItemStack color) TropicalFishEntity.getPatternColorComponents()
static DyeColor
TropicalFishEntity.getPatternDyeColor
(int variant) TropicalFishEntity.Variant.patternColor()
Returns the value of thepatternColor
record component.Modifier 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
LlamaEntity.setCarpetColor
(@Nullable DyeColor color) void
CatEntity.setCollarColor
(DyeColor color) void
WolfEntity.setCollarColor
(DyeColor color) void
ModifierConstructorDescriptionVariant
(TropicalFishEntity.Variety variety, DyeColor dyeColor, DyeColor dyeColor2) -
Uses of DyeColor in net.minecraft.item
-
Uses of DyeColor in net.minecraft.item.map
ModifierConstructorDescriptionMapBannerMarker
(BlockPos pos, DyeColor dyeColor, @Nullable Text name) -
Uses of DyeColor in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> SetBannerPatternFunction.BANNER_PATTERN_AND_COLOR_CODEC
private final ImmutableList.Builder<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> SetBannerPatternFunction.Builder.patterns
private final List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>,
DyeColor>> SetBannerPatternFunction.patterns
Modifier and TypeMethodDescriptionSetBannerPatternFunction.Builder.pattern
(RegistryEntry<BannerPattern> pattern, DyeColor color) SetBannerPatternFunction.Builder.pattern
(RegistryKey<BannerPattern> pattern, DyeColor color) -
Uses of DyeColor in net.minecraft.util
Modifier 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
Modifier and TypeMethodDescriptionstatic @Nullable DyeColor
DyeColor.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
.static @Nullable DyeColor
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.