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 DyeColorAbstractBannerBlock.colorprivate final DyeColorBedBlock.colorShulkerBoxBlock.colorprivate final DyeColorStainedGlassBlock.colorprivate final DyeColorStainedGlassPaneBlock.colorprivate final DyeColorDyedCarpetBlock.dyeColorFields 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 Blockstatic BlockBannerBlock.getForColor(DyeColor color) static ItemStackShulkerBoxBlock.getItemStack(@Nullable DyeColor color) private static BlockBlocks.registerBedBlock(String id, DyeColor color) private static BlockBlocks.registerStainedGlassBlock(String id, DyeColor color) Constructors in net.minecraft.block with parameters of type DyeColorModifierConstructorDescriptionprotectedAbstractBannerBlock(DyeColor color, AbstractBlock.Settings settings) BannerBlock(DyeColor color, AbstractBlock.Settings settings) BedBlock(DyeColor color, AbstractBlock.Settings settings) protectedDyedCarpetBlock(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 DyeColorBannerBlockEntity.baseColorShulkerBoxBlockEntity.cachedColorprivate final DyeColorBedBlockEntity.colorprivate final DyeColorSignText.colorMethods 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 SignTextSignText.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 voidBlockStateModelGenerator.registerBanner(Block block, Block wallBlock, DyeColor color) private voidBlockStateModelGenerator.registerBed(Block block, Block particleSource, DyeColor color) private voidBlockStateModelGenerator.registerShulkerBox(Block shulkerBox, @Nullable DyeColor color) -
Uses of DyeColor in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type DyeColorModifier and TypeMethodDescriptionvoidDrawContext.addBannerResult(BannerFlagBlockModel bannerModel, DyeColor baseColor, BannerPatternsComponent resultBannerPatterns, int x1, int y1, int x2, int y2) -
Uses of DyeColor in net.minecraft.client.gui.render.state.special
Fields in net.minecraft.client.gui.render.state.special declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColorBannerResultGuiElementRenderState.baseColorThe field for thebaseColorrecord component.Methods in net.minecraft.client.gui.render.state.special that return DyeColorModifier and TypeMethodDescriptionBannerResultGuiElementRenderState.baseColor()Returns the value of thebaseColorrecord component.Constructors in net.minecraft.client.gui.render.state.special with parameters of type DyeColorModifierConstructorDescriptionBannerResultGuiElementRenderState(BannerFlagBlockModel bannerFlagBlockModel, DyeColor color, BannerPatternsComponent bannerPatterns, int x1, int y1, int x2, int y2, @Nullable ScreenRect scissorArea) BannerResultGuiElementRenderState(BannerFlagBlockModel bannerFlagBlockModel, DyeColor dyeColor, BannerPatternsComponent bannerPatternsComponent, int int2, int int3, int int4, int int5, @Nullable ScreenRect screenRect, @Nullable ScreenRect screenRect2) -
Uses of DyeColor in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type DyeColorModifier and TypeMethodDescriptionstatic SpriteIdentifierTexturedRenderLayers.createBedTextureId(DyeColor color) static IdentifierTexturedRenderLayers.createColorId(DyeColor color) static SpriteIdentifierTexturedRenderLayers.createShulkerBoxTextureId(DyeColor color) static IdentifierTexturedRenderLayers.createShulkerId(DyeColor color) static SpriteIdentifierTexturedRenderLayers.getBedTextureId(DyeColor color) static SpriteIdentifierTexturedRenderLayers.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 voidBannerBlockEntityRenderer.render(SpriteHolder materials, MatrixStack matrices, OrderedRenderCommandQueue queue, int light, int overlay, float yaw, BannerBlockModel model, BannerFlagBlockModel flagModel, float pitch, DyeColor dyeColor, BannerPatternsComponent bannerPatterns, ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlay, int int2) voidBannerBlockEntityRenderer.renderAsItem(MatrixStack matrices, OrderedRenderCommandQueue queue, int light, int overlay, DyeColor baseColor, BannerPatternsComponent patterns, int int2) static <S> voidBannerBlockEntityRenderer.renderCanvas(SpriteHolder materials, MatrixStack matrices, OrderedRenderCommandQueue queue, int light, int overlay, Model<S> model, S state, SpriteIdentifier spriteId, boolean useBannerLayer, DyeColor color, BannerPatternsComponent patterns, boolean bool, ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlayCommand, int int2) private static <S> voidBannerBlockEntityRenderer.renderLayer(SpriteHolder materials, MatrixStack matrices, OrderedRenderCommandQueue queue, int light, int overlay, Model<S> model, S state, SpriteIdentifier spriteId, DyeColor color, ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlay) -
Uses of DyeColor in net.minecraft.client.render.block.entity.state
Fields in net.minecraft.client.render.block.entity.state declared as DyeColor -
Uses of DyeColor in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type DyeColorModifier and TypeMethodDescriptionstatic IdentifierShulkerEntityRenderer.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 DyeColorBannerModelRenderer.baseColorprivate final DyeColorBannerModelRenderer.Unbaked.baseColorThe field for thebaseColorrecord component.Methods in net.minecraft.client.render.item.model.special that return DyeColorModifier and TypeMethodDescriptionBannerModelRenderer.Unbaked.baseColor()Returns the value of thebaseColorrecord 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.client.util
Fields in net.minecraft.client.util declared as DyeColorModifier and TypeFieldDescription(package private) final DyeColor[]ColorLerper.Type.colorsstatic final DyeColor[]ColorLerper.RAINBOW_COLORSFields in net.minecraft.client.util with type parameters of type DyeColorMethods in net.minecraft.client.util with parameters of type DyeColorModifier and TypeMethodDescription(package private) static intfinal intConstructors in net.minecraft.client.util with parameters of type DyeColor -
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_COLORstatic final ComponentType<DyeColor> DataComponentTypes.CAT_COLLARstatic final ComponentType<DyeColor> DataComponentTypes.SHEEP_COLORstatic final ComponentType<DyeColor> DataComponentTypes.SHULKER_COLORstatic final ComponentType<DyeColor> DataComponentTypes.TROPICAL_FISH_BASE_COLORstatic final ComponentType<DyeColor> DataComponentTypes.TROPICAL_FISH_PATTERN_COLORstatic 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 DyeColorBannerPatternsComponent.Layer.colorThe field for thecolorrecord component.Methods in net.minecraft.component.type that return DyeColorModifier and TypeMethodDescriptionBannerPatternsComponent.Layer.color()Returns the value of thecolorrecord 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 EquippableComponentstatic EquippableComponentConstructors 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_COLORMethod parameters in net.minecraft.data.loottable with type arguments of type DyeColorModifier and TypeMethodDescriptionstatic LootPool.BuilderEntityLootTableGenerator.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 ItemStackCelebrateRaidWinTask.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 DyeColorTropicalFishEntity.Variant.baseColorThe field for thebaseColorrecord component.private static final DyeColorCatEntity.DEFAULT_COLLAR_COLORprivate static final DyeColorWolfEntity.DEFAULT_COLLAR_COLORprivate static final DyeColorSheepEntity.DEFAULT_COLORprivate final DyeColorTropicalFishEntity.Variant.patternColorThe field for thepatternColorrecord component.Methods in net.minecraft.entity.passive that return DyeColorModifier and TypeMethodDescriptionTropicalFishEntity.Variant.baseColor()Returns the value of thebaseColorrecord component.TropicalFishEntity.getBaseColor()static DyeColorTropicalFishEntity.getBaseColor(int variant) CatEntity.getCollarColor()WolfEntity.getCollarColor()SheepEntity.getColor()TropicalFishEntity.getPatternColor()static DyeColorTropicalFishEntity.getPatternColor(int variant) TropicalFishEntity.Variant.patternColor()Returns the value of thepatternColorrecord component.static DyeColorSheepColors.select(RegistryEntry<Biome> biome, Random random) static DyeColorSheepEntity.selectSpawnColor(ServerWorldAccess world, BlockPos pos) Methods in net.minecraft.entity.passive with parameters of type DyeColorModifier and TypeMethodDescriptionprivate static SheepColors.ColorSelectorSheepColors.createDefaultSelector(DyeColor color) private static SheepColors.ColorSelectorSheepColors.createSingleSelector(DyeColor color) (package private) static intTropicalFishEntity.getVariantId(TropicalFishEntity.Pattern variety, DyeColor baseColor, DyeColor patternColor) private voidTropicalFishEntity.setBaseColor(DyeColor baseColor) private voidCatEntity.setCollarColor(DyeColor color) private voidWolfEntity.setCollarColor(DyeColor color) voidprivate voidTropicalFishEntity.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_COLORstatic final Map<DyeColor, RegistryKey<EquipmentAsset>> EquipmentAssetKeys.HARNESS_FROM_COLOR -
Uses of DyeColor in net.minecraft.item.map
Fields in net.minecraft.item.map declared as DyeColorModifier and TypeFieldDescriptionprivate final DyeColorMapBannerMarker.colorThe field for thecolorrecord component.Methods in net.minecraft.item.map that return DyeColorModifier and TypeMethodDescriptionMapBannerMarker.color()Returns the value of thecolorrecord 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_COLORstatic final Map<DyeColor, RegistryKey<LootTable>> LootTables.SHEEP_SHEARING_FROM_DYE_COLORMethods 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_COLORstatic final StringIdentifiable.EnumCodec<DyeColor> DyeColor.CODECstatic final com.mojang.serialization.Codec<DyeColor> DyeColor.INDEX_CODECDeprecated.private static final IntFunction<DyeColor> DyeColor.INDEX_MAPPERstatic final PacketCodec<ByteBuf, DyeColor> DyeColor.PACKET_CODECMethods in net.minecraft.util that return DyeColorModifier and TypeMethodDescriptionDyeColor.byFireworkColor(int color) Returns the dye color whose firework color iscolor, ornullif there is no such color.Returns the dye color whose id isid, orfallbackif there is no such color.static DyeColorDyeColor.byIndex(int index) Returns the dye color whose index isindex.static DyeColorDyeColor.mixColors(ServerWorld world, DyeColor first, DyeColor second) static DyeColorReturns 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, orfallbackif there is no such color.private static CraftingRecipeInputDyeColor.createColorMixingRecipeInput(DyeColor first, DyeColor second) static DyeColorDyeColor.mixColors(ServerWorld world, DyeColor first, DyeColor second)