Package at.petrak.hexcasting.api.pigment
Class ColorProvider
java.lang.Object
at.petrak.hexcasting.api.pigment.ColorProvider
- Direct Known Subclasses:
ItemAmethystAndCopperPigment.MyColorProvider,ItemAmethystPigment.MyColorProvider,ItemDyePigment.MyColorProvider,ItemPridePigment.MyColorProvider,ItemUUIDPigment.MyColorProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetColor(float time, net.minecraft.world.phys.Vec3 position) Gets a color with a minimum luminance applied.protected abstract intgetRawColor(float time, net.minecraft.world.phys.Vec3 position) Implers, impl this function
-
Field Details
-
MISSING
-
-
Constructor Details
-
ColorProvider
public ColorProvider()
-
-
Method Details
-
getRawColor
protected abstract int getRawColor(float time, net.minecraft.world.phys.Vec3 position) Implers, impl this function -
getColor
public final int getColor(float time, net.minecraft.world.phys.Vec3 position) Gets a color with a minimum luminance applied.- Parameters:
time- absolute world time in ticksposition- a position for the icosahedron, a randomish number for particles.- Returns:
- an AARRGGBB color.
-