2022-04-12 21:13:51 +02:00
|
|
|
package at.petrak.hexcasting.api.item;
|
|
|
|
|
2023-04-27 21:26:15 +02:00
|
|
|
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 {
|
2023-04-27 21:26:15 +02:00
|
|
|
ColorProvider provideColor(ItemStack stack, UUID owner);
|
2022-04-12 21:13:51 +02:00
|
|
|
}
|