Class ColorProvider

java.lang.Object
at.petrak.hexcasting.api.pigment.ColorProvider
Direct Known Subclasses:
ItemAmethystAndCopperPigment.MyColorProvider, ItemAmethystPigment.MyColorProvider, ItemDyePigment.MyColorProvider, ItemPridePigment.MyColorProvider, ItemUUIDPigment.MyColorProvider

public abstract class ColorProvider extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ColorProvider
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    getColor(float time, net.minecraft.world.phys.Vec3 position)
    Gets a color with a minimum luminance applied.
    protected abstract int
    getRawColor(float time, net.minecraft.world.phys.Vec3 position)
    Implers, impl this function

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 ticks
      position - a position for the icosahedron, a randomish number for particles.
      Returns:
      an AARRGGBB color.