Class ColorMap<T>
java.lang.Object
com.refinedmods.refinedstorage.common.content.ColorMap<T>
- Direct Known Subclasses:
BlockColorMap
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColorMap
(net.minecraft.resources.ResourceLocation baseId, net.minecraft.world.item.DyeColor defaultColor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEach
(ColorMap.ColoredConsumer<T> consumer) get
(net.minecraft.world.item.DyeColor color) protected final net.minecraft.resources.ResourceLocation
getId
(net.minecraft.world.item.DyeColor color) boolean
isDefaultColor
(net.minecraft.world.item.DyeColor color) protected final void
values()
-
Field Details
-
defaultColor
protected final net.minecraft.world.item.DyeColor defaultColor
-
-
Constructor Details
-
ColorMap
public ColorMap(net.minecraft.resources.ResourceLocation baseId, net.minecraft.world.item.DyeColor defaultColor)
-
-
Method Details
-
isDefaultColor
public boolean isDefaultColor(net.minecraft.world.item.DyeColor color) -
putAll
-
getId
protected final net.minecraft.resources.ResourceLocation getId(net.minecraft.world.item.DyeColor color) -
forEach
-
get
-
getDefault
-
values
-