19 lines
576 B
Java
19 lines
576 B
Java
package at.petrak.hexcasting.api.item;
|
|
|
|
import at.petrak.hexcasting.api.pigment.ColorProvider;
|
|
import net.minecraft.world.item.ItemStack;
|
|
import org.jetbrains.annotations.ApiStatus;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Items which can be used as a colorizer can implement this interface.
|
|
* <p>
|
|
* On both the Forge and Fabric sides, the registry will be scanned for all items which implement this interface,
|
|
* and the appropriate cap/CC will be attached.
|
|
*/
|
|
@ApiStatus.OverrideOnly
|
|
public interface ColorizerItem {
|
|
ColorProvider provideColor(ItemStack stack, UUID owner);
|
|
}
|