Uses of Enum Class
net.minecraft.world.item.DyeColor
Packages that use DyeColor
Package
Description
-
Uses of DyeColor in net.minecraft.client.color
Fields in net.minecraft.client.color declared as DyeColorModifier and TypeFieldDescription(package private) final DyeColor[]
ColorLerper.Type.colors
static final DyeColor[]
ColorLerper.MUSIC_NOTE_COLORS
Fields in net.minecraft.client.color with type parameters of type DyeColorMethods in net.minecraft.client.color with parameters of type DyeColorModifier and TypeMethodDescriptionfinal int
(package private) static int
ColorLerper.getModifiedColor
(DyeColor pColor, float pBrightness) Constructors in net.minecraft.client.color with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.client.data.models
Methods in net.minecraft.client.data.models with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type DyeColorModifier and TypeMethodDescriptionvoid
GuiGraphics.submitBannerPatternRenderState
(ModelPart pFlag, DyeColor pBaseColor, BannerPatternLayers pResultBannerPatterns, int pX0, int pY0, int pX1, int pY1) -
Uses of DyeColor in net.minecraft.client.gui.render.state.pip
Fields in net.minecraft.client.gui.render.state.pip declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
GuiBannerResultRenderState.baseColor
The field for thebaseColor
record component.Methods in net.minecraft.client.gui.render.state.pip that return DyeColorModifier and TypeMethodDescriptionGuiBannerResultRenderState.baseColor()
Returns the value of thebaseColor
record component.Constructors in net.minecraft.client.gui.render.state.pip with parameters of type DyeColorModifierConstructorDescriptionGuiBannerResultRenderState
(ModelPart p_416229_, DyeColor p_416489_, BannerPatternLayers p_416057_, int p_416374_, int p_416493_, int p_415894_, int p_416726_, ScreenRectangle p_416459_) GuiBannerResultRenderState
(ModelPart flag, DyeColor baseColor, BannerPatternLayers resultBannerPatterns, int x0, int y0, int x1, int y1, ScreenRectangle scissorArea, ScreenRectangle bounds) Creates an instance of aGuiBannerResultRenderState
record class. -
Uses of DyeColor in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type DyeColorModifier and TypeMethodDescriptionstatic ResourceLocation
Sheets.colorToResourceMaterial
(DyeColor pColor) static ResourceLocation
Sheets.colorToShulkerMaterial
(DyeColor pColor) static Material
Sheets.createBedMaterial
(DyeColor p_387329_) static Material
Sheets.createShulkerMaterial
(DyeColor p_388587_) static Material
Sheets.getBedMaterial
(DyeColor pColor) static Material
Sheets.getShulkerBoxMaterial
(DyeColor pColor) -
Uses of DyeColor in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static void
BannerRenderer.renderBanner
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, float pRotation, BannerModel pStandingModel, BannerFlagModel pStandingFlagModel, float pAngle, DyeColor pBaseColor, BannerPatternLayers pPatterns) void
BannerRenderer.renderInHand
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, DyeColor pBaseColor, BannerPatternLayers pPatterns) private static void
BannerRenderer.renderPatternLayer
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, int pPackedOverlay, ModelPart pFlagPart, Material pMaterial, DyeColor pColor) static void
BannerRenderer.renderPatterns
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, ModelPart pFlagPart, Material pFlagMaterial, boolean pBanner, DyeColor pBaseColor, BannerPatternLayers pPatterns) static void
BannerRenderer.renderPatterns
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, ModelPart pFlagPart, Material pFlagMaterial, boolean pBanner, DyeColor pBaseColor, BannerPatternLayers pPatterns, boolean pWithGlint, boolean pNoEntity) -
Uses of DyeColor in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type DyeColorModifier and TypeMethodDescriptionstatic ResourceLocation
ShulkerRenderer.getTextureLocation
(DyeColor pColor) -
Uses of DyeColor in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as DyeColorModifier and TypeFieldDescriptionCatRenderState.collarColor
WolfRenderState.collarColor
ShulkerRenderState.color
SheepRenderState.woolColor
-
Uses of DyeColor in net.minecraft.client.renderer.special
Fields in net.minecraft.client.renderer.special declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
BannerSpecialRenderer.baseColor
private final DyeColor
BannerSpecialRenderer.Unbaked.baseColor
The field for thebaseColor
record component.Methods in net.minecraft.client.renderer.special that return DyeColorModifier and TypeMethodDescriptionBannerSpecialRenderer.Unbaked.baseColor()
Returns the value of thebaseColor
record component.Constructors in net.minecraft.client.renderer.special with parameters of type DyeColorModifierConstructorDescriptionBannerSpecialRenderer
(DyeColor pBaseColor, BannerRenderer pBannerRenderer) Creates an instance of aUnbaked
record class. -
Uses of DyeColor in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final DataComponentType
<DyeColor> DataComponents.BASE_COLOR
static final DataComponentType
<DyeColor> DataComponents.CAT_COLLAR
static final DataComponentType
<DyeColor> DataComponents.SHEEP_COLOR
static final DataComponentType
<DyeColor> DataComponents.SHULKER_COLOR
static final DataComponentType
<DyeColor> DataComponents.TROPICAL_FISH_BASE_COLOR
static final DataComponentType
<DyeColor> DataComponents.TROPICAL_FISH_PATTERN_COLOR
static final DataComponentType
<DyeColor> DataComponents.WOLF_COLLAR
-
Uses of DyeColor in net.minecraft.data.loot
Method parameters in net.minecraft.data.loot with type arguments of type DyeColorModifier and TypeMethodDescriptionstatic LootPool.Builder
EntityLootSubProvider.createSheepDispatchPool
(Map<DyeColor, ResourceKey<LootTable>> pLootTables) -
Uses of DyeColor in net.minecraft.data.loot.packs
Fields in net.minecraft.data.loot.packs with type parameters of type DyeColor -
Uses of DyeColor in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior with parameters of type DyeColorModifier and TypeMethodDescriptionprivate ItemStack
CelebrateVillagersSurvivedRaid.getFirework
(DyeColor pColor, int pFlightTime) -
Uses of DyeColor in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
TropicalFish.Variant.baseColor
The field for thebaseColor
record component.private static final DyeColor
private final DyeColor
TropicalFish.Variant.patternColor
The field for thepatternColor
record component.Methods in net.minecraft.world.entity.animal that return DyeColorModifier and TypeMethodDescriptionTropicalFish.Variant.baseColor()
Returns the value of thebaseColor
record component.TropicalFish.getBaseColor()
static DyeColor
TropicalFish.getBaseColor
(int pVariantId) Cat.getCollarColor()
TropicalFish.getPatternColor()
static DyeColor
TropicalFish.getPatternColor
(int pVariantId) TropicalFish.Variant.patternColor()
Returns the value of thepatternColor
record component.Methods in net.minecraft.world.entity.animal with parameters of type DyeColorModifier and TypeMethodDescription(package private) static int
TropicalFish.packVariant
(TropicalFish.Pattern pPattern, DyeColor pBaseColor, DyeColor pPatternColor) private void
TropicalFish.setBaseColor
(DyeColor pBaseColor) private void
Cat.setCollarColor
(DyeColor pColor) private void
TropicalFish.setPatternColor
(DyeColor pPatternColor) Constructors in net.minecraft.world.entity.animal with parameters of type DyeColorModifierConstructorDescriptionVariant
(TropicalFish.Pattern pattern, DyeColor baseColor, DyeColor patternColor) Creates an instance of aVariant
record class. -
Uses of DyeColor in net.minecraft.world.entity.animal.sheep
Fields in net.minecraft.world.entity.animal.sheep declared as DyeColorMethods in net.minecraft.world.entity.animal.sheep that return DyeColorModifier and TypeMethodDescriptionSheepColorSpawnRules.SheepColorProvider.get
(RandomSource pRandom) Sheep.getColor()
static DyeColor
Sheep.getRandomSheepColor
(ServerLevelAccessor pLevel, BlockPos pPos) static DyeColor
SheepColorSpawnRules.getSheepColor
(Holder<Biome> pBiome, RandomSource pRandom) Methods in net.minecraft.world.entity.animal.sheep with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static SheepColorSpawnRules.SheepColorProvider
SheepColorSpawnRules.commonColors
(DyeColor pMainColor) void
private static SheepColorSpawnRules.SheepColorProvider
-
Uses of DyeColor in net.minecraft.world.entity.animal.wolf
Fields in net.minecraft.world.entity.animal.wolf declared as DyeColorMethods in net.minecraft.world.entity.animal.wolf that return DyeColorMethods in net.minecraft.world.entity.animal.wolf with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return DyeColorMethods in net.minecraft.world.entity.monster that return types with arguments of type DyeColorMethod parameters in net.minecraft.world.entity.monster with type arguments of type DyeColor -
Uses of DyeColor in net.minecraft.world.item
Fields in net.minecraft.world.item declared as DyeColorFields in net.minecraft.world.item with type parameters of type DyeColorModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
<DyeColor> DyeColor.BY_FIREWORK_COLOR
private static final IntFunction
<DyeColor> DyeColor.BY_ID
static final StringRepresentable.EnumCodec
<DyeColor> DyeColor.CODEC
DyeItem.ITEM_BY_COLOR
static final com.mojang.serialization.Codec
<DyeColor> DyeColor.LEGACY_ID_CODEC
Deprecated.static final StreamCodec
<io.netty.buffer.ByteBuf, DyeColor> DyeColor.STREAM_CODEC
Methods in net.minecraft.world.item that return DyeColorModifier and TypeMethodDescriptionstatic DyeColor
DyeColor.byFireworkColor
(int pFireworkColor) static DyeColor
DyeColor.byId
(int p_41054_) static DyeColor
BannerItem.getColor()
static DyeColor
DyeItem.getDyeColor()
static DyeColor
DyeColor.getMixedColor
(ServerLevel pLevel, DyeColor pFirst, DyeColor pSecond) 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.world.item with parameters of type DyeColorModifier and TypeMethodDescriptionstatic DyeItem
static DyeColor
static Item
BundleItem.getByColor
(DyeColor pColor) static DyeColor
DyeColor.getMixedColor
(ServerLevel pLevel, DyeColor pFirst, DyeColor pSecond) private static CraftingInput
DyeColor.makeCraftColorInput
(DyeColor pFirst, DyeColor pSecond) Constructors in net.minecraft.world.item with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.world.item.equipment
Fields in net.minecraft.world.item.equipment with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final Map
<DyeColor, ResourceKey<EquipmentAsset>> EquipmentAssets.CARPETS
static final Map
<DyeColor, ResourceKey<EquipmentAsset>> EquipmentAssets.HARNESSES
Methods in net.minecraft.world.item.equipment with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
AbstractBannerBlock.color
private final DyeColor
BedBlock.color
private final DyeColor
ShulkerBoxBlock.color
private final DyeColor
StainedGlassBlock.color
private final DyeColor
StainedGlassPaneBlock.color
private final DyeColor
WoolCarpetBlock.color
Fields in net.minecraft.world.level.block with type parameters of type DyeColorMethods in net.minecraft.world.level.block that return DyeColorModifier and TypeMethodDescriptionAbstractBannerBlock.getColor()
BeaconBeamBlock.getColor()
BeaconBlock.getColor()
BedBlock.getColor()
ShulkerBoxBlock.getColor()
StainedGlassBlock.getColor()
StainedGlassPaneBlock.getColor()
WoolCarpetBlock.getColor()
Methods in net.minecraft.world.level.block with parameters of type DyeColorModifier and TypeMethodDescriptionstatic Block
static Block
ShulkerBoxBlock.getBlockByColor
(DyeColor pColor) static ItemStack
ShulkerBoxBlock.getColoredItemStack
(DyeColor pColor) private static Block
Blocks.registerBed
(String pName, DyeColor pColor) private static Block
Blocks.registerStainedGlass
(String pName, DyeColor pColor) Constructors in net.minecraft.world.level.block with parameters of type DyeColorModifierConstructorDescriptionAbstractBannerBlock
(DyeColor pColor, BlockBehaviour.Properties pProperties) BannerBlock
(DyeColor p_49012_, BlockBehaviour.Properties p_49013_) BedBlock
(DyeColor p_49454_, BlockBehaviour.Properties p_49455_) ShulkerBoxBlock
(DyeColor pColor, BlockBehaviour.Properties pProperties) StainedGlassBlock
(DyeColor p_56833_, BlockBehaviour.Properties p_56834_) StainedGlassPaneBlock
(DyeColor p_56838_, BlockBehaviour.Properties p_56839_) WallBannerBlock
(DyeColor p_57920_, BlockBehaviour.Properties p_57921_) WoolCarpetBlock
(DyeColor p_58291_, BlockBehaviour.Properties p_58292_) -
Uses of DyeColor in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
BannerBlockEntity.baseColor
private final DyeColor
BannerPatternLayers.Layer.color
The field for thecolor
record component.private final DyeColor
BedBlockEntity.color
private final DyeColor
ShulkerBoxBlockEntity.color
private final DyeColor
SignText.color
Methods in net.minecraft.world.level.block.entity that return DyeColorModifier and TypeMethodDescriptionBannerPatternLayers.Layer.color()
Returns the value of thecolor
record component.BannerBlockEntity.getBaseColor()
BedBlockEntity.getColor()
ShulkerBoxBlockEntity.getColor()
SignText.getColor()
Methods in net.minecraft.world.level.block.entity with parameters of type DyeColorModifier and TypeMethodDescriptionBannerPatternLayers.Builder.add
(Holder<BannerPattern> pPattern, DyeColor pColor) BannerPatternLayers.Builder.addIfRegistered
(HolderGetter<BannerPattern> pPatterns, ResourceKey<BannerPattern> pPatternKey, DyeColor pColor) Deprecated.private static SignText
SignText.load
(Component[] p_277661_, Optional<Component[]> p_277768_, DyeColor p_277345_, boolean p_278008_) Constructors in net.minecraft.world.level.block.entity with parameters of type DyeColorModifierConstructorDescriptionBannerBlockEntity
(BlockPos pPos, BlockState pBlockState, DyeColor pBaseColor) BedBlockEntity
(BlockPos pPos, BlockState pBlockState, DyeColor pColor) Layer
(Holder<BannerPattern> pattern, DyeColor color) Creates an instance of aLayer
record class.ShulkerBoxBlockEntity
(DyeColor pColor, BlockPos pPos, BlockState pBlockState) SignText
(Component[] pMessages, Component[] pFilteredMessages, DyeColor pColor, boolean pHasGlowingText) -
Uses of DyeColor in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type DyeColorModifier and TypeMethodDescription -
Uses of DyeColor in net.minecraft.world.level.saveddata.maps
Fields in net.minecraft.world.level.saveddata.maps declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColor
MapBanner.color
The field for thecolor
record component.Methods in net.minecraft.world.level.saveddata.maps that return DyeColorModifier and TypeMethodDescriptionMapBanner.color()
Returns the value of thecolor
record component.Constructors in net.minecraft.world.level.saveddata.maps with parameters of type DyeColor -
Uses of DyeColor in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type DyeColorModifier and TypeFieldDescriptionstatic final Map
<DyeColor, ResourceKey<LootTable>> BuiltInLootTables.SHEAR_SHEEP_BY_DYE
static final Map
<DyeColor, ResourceKey<LootTable>> BuiltInLootTables.SHEEP_BY_DYE
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type DyeColorModifier and TypeMethodDescriptionprivate static Map
<DyeColor, ResourceKey<LootTable>> BuiltInLootTables.makeDyeKeyMap
(String pPath) -
Uses of DyeColor in net.minecraft.world.level.storage.loot.functions
Methods in net.minecraft.world.level.storage.loot.functions with parameters of type DyeColorModifier and TypeMethodDescriptionSetBannerPatternFunction.Builder.addPattern
(Holder<BannerPattern> pPattern, DyeColor pColor)