HexCasting/Common/src/main/java/at/petrak/hexcasting/api/item/ColorizerItem.java

19 lines
576 B
Java
Raw Normal View History

2022-04-12 21:13:51 +02:00
package at.petrak.hexcasting.api.item;
import at.petrak.hexcasting.api.pigment.ColorProvider;
2022-04-12 21:13:51 +02:00
import net.minecraft.world.item.ItemStack;
2022-08-18 22:12:18 +02:00
import org.jetbrains.annotations.ApiStatus;
2022-04-12 21:13:51 +02:00
import java.util.UUID;
2022-06-13 23:45:22 +02:00
/**
* 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.
*/
2022-08-18 22:12:18 +02:00
@ApiStatus.OverrideOnly
2022-04-12 21:13:51 +02:00
public interface ColorizerItem {
ColorProvider provideColor(ItemStack stack, UUID owner);
2022-04-12 21:13:51 +02:00
}