net.minecraft.util

public record ColorMap<T>

net.minecraft.world.level.block.ColorCollection
net.minecraft.class_1_727
net.minecraft.util.ColorMap

Field summary

Modifier and TypeField
private final T
white
comp_1_556
white
private final T
orange
comp_1_552
orange
private final T
magenta
comp_1_551
magenta
private final T
lightBlue
comp_1_548
lightBlue
private final T
yellow
comp_1_557
yellow
private final T
lime
comp_1_550
lime
private final T
pink
comp_1_553
pink
private final T
gray
comp_1_546
gray
private final T
lightGray
comp_1_549
lightGray
private final T
cyan
comp_1_545
cyan
private final T
purple
comp_1_554
purple
private final T
blue
comp_1_543
blue
private final T
brown
comp_1_544
brown
private final T
green
comp_1_547
green
private final T
red
comp_1_555
red
private final T
black
comp_1_542
black
public static final ColorMap<DyeColor>
VALUES
field_1_5717
COLORS
public static final ColorMap<String>
NAMES
field_1_5716
IDS

Constructor summary

ModifierConstructor
public (T white, T orange, T magenta, T lightBlue, T yellow, T lime, T pink, T gray, T lightGray, T cyan, T purple, T blue, T brown, T green, T red, T black)

Method summary

Modifier and TypeMethod
public static <T> ColorMap<T>
create(T value)
method_1_4916(T arg0)
constant(T value)
public static <B extends Block, Id> ColorMap<Block>
registerBlocks(ColorCollection<Id> ids, org.apache.commons.lang3.function.TriFunction<Id, Function<BlockBehaviour$Properties, Block>, BlockBehaviour$Properties, Block> register, BiFunction<DyeColor, BlockBehaviour$Properties, B> colorBlockFactory, Function<DyeColor, BlockBehaviour$Properties> propertiesSupplier)
method_1_4401(class_1_727<Id> arg0, org.apache.commons.lang3.function.TriFunction<Id, Function<class_4970$class_2251, class_2248>, class_4970$class_2251, class_2248> arg1, BiFunction<class_1767, class_4970$class_2251, B> arg2, Function<class_1767, class_4970$class_2251> arg3)
forBlocks(ColorMap<Id> ids, org.apache.commons.lang3.function.TriFunction<Id, Function<AbstractBlock$Settings, Block>, AbstractBlock$Settings, Block> registrar, BiFunction<DyeColor, AbstractBlock$Settings, B> blockFactory, Function<DyeColor, AbstractBlock$Settings> settingsFactory)
public static <Id> ColorMap<Item>
registerBlockItems(ColorCollection<Id> ids, ColorCollection<Block> blocks, org.apache.commons.lang3.function.TriFunction<Id, Block, DyeColor, Item> itemFactory)
method_1_4402(class_1_727<Id> arg0, class_1_727<class_2248> arg1, org.apache.commons.lang3.function.TriFunction<Id, class_2248, class_1767, class_1792> arg2)
forBlockItems(ColorMap<Id> ids, ColorMap<Block> blocks, org.apache.commons.lang3.function.TriFunction<Id, Block, DyeColor, Item> itemFactory)
public static <Id> ColorMap<Item>
registerItems(ColorCollection<Id> ids, BiFunction<Id, DyeColor, Item> itemFactory)
method_1_4403(class_1_727<Id> arg0, BiFunction<Id, class_1767, class_1792> arg1)
forItems(ColorMap<Id> ids, BiFunction<Id, DyeColor, Item> itemFactory)
public static ColorMap<String>
prefixWithColor(ColorCollection<String> ids)
method_1_4920(class_1_727<String> arg0)
addPrefixes(ColorMap<String> suffixes)
public List<T>
asList()
method_1_4393()
values()
public void
forEach(Consumer<T> consumer)
method_1_4394(Consumer<T> arg0)
forEach(Consumer<T> callback)
public T
pick(DyeColor dyeColor)
method_1_4400(class_1767 arg0)
get(DyeColor color)
public <U> ColorMap<U>
map(Function<T, U> mapper)
method_1_4399(Function<T, U> arg0)
map(Function<T, U> function)
public static <T, U> void
zipApply(ColorCollection<T> first, ColorCollection<U> second, BiConsumer<T, U> consumer)
method_1_4404(class_1_727<T> arg0, class_1_727<U> arg1, BiConsumer<T, U> arg2)
forEachZipped(ColorMap<T> first, ColorMap<U> second, BiConsumer<T, U> callback)
public static <T, U, R> ColorMap<R>
zipMap(ColorCollection<T> first, ColorCollection<U> second, BiFunction<T, U, R> operation)
method_1_4921(class_1_727<T> arg0, class_1_727<U> arg1, BiFunction<T, U, R> arg2)
mapZipped(ColorMap<T> first, ColorMap<U> second, BiFunction<T, U, R> function)
public T
white()
comp_1_556()
white()
public T
orange()
comp_1_552()
orange()
public T
magenta()
comp_1_551()
magenta()
public T
lightBlue()
comp_1_548()
lightBlue()
public T
yellow()
comp_1_557()
yellow()
public T
lime()
comp_1_550()
lime()
public T
pink()
comp_1_553()
pink()
public T
gray()
comp_1_546()
gray()
public T
lightGray()
comp_1_549()
lightGray()
public T
cyan()
comp_1_545()
cyan()
public T
purple()
comp_1_554()
purple()
public T
blue()
comp_1_543()
blue()
public T
brown()
comp_1_544()
brown()
public T
green()
comp_1_547()
green()
public T
red()
comp_1_555()
red()
public T
black()
comp_1_542()
black()
private static String
lambda$prefixWithColor$0(String arg0, String arg1)
method_1_4917(String arg0, String arg1)
method_1_4917(String color, String suffix)
private static Item
lambda$registerItems$0(BiFunction arg0, DyeColor arg1, Object arg2)
method_1_4919(BiFunction arg0, class_1767 arg1, Object arg2)
method_1_4919(BiFunction arg0, DyeColor color, Object id)
private static Item
lambda$registerBlockItems$0(org.apache.commons.lang3.function.TriFunction arg0, ColorCollection arg1, DyeColor arg2, Object arg3)
method_1_4918(org.apache.commons.lang3.function.TriFunction arg0, class_1_727 arg1, class_1767 arg2, Object arg3)
method_1_4918(org.apache.commons.lang3.function.TriFunction arg0, ColorMap arg1, DyeColor color, Object id)
private static Block
lambda$registerBlocks$0(org.apache.commons.lang3.function.TriFunction arg0, BiFunction arg1, Function arg2, DyeColor arg3, Object arg4)
method_1_4395(org.apache.commons.lang3.function.TriFunction arg0, BiFunction arg1, Function arg2, class_1767 arg3, Object arg4)
method_1_4395(org.apache.commons.lang3.function.TriFunction arg0, BiFunction arg1, Function arg2, DyeColor color, Object id)
private static Block
lambda$registerBlocks$1(BiFunction arg0, DyeColor arg1, BlockBehaviour$Properties arg2)
method_1_4396(BiFunction arg0, class_1767 arg1, class_4970$class_2251 arg2)
method_1_4396(BiFunction arg0, DyeColor arg1, AbstractBlock$Settings settings)