ColorProviderRegistry
@Deprecated public interface ColorProviderRegistry<T,Provider>
Modifier and Type | Field and Description |
---|---|
static ColorProviderRegistry<net.minecraft.block.Block,net.minecraft.client.color.block.BlockColorProvider> |
BLOCK
Deprecated.
|
static ColorProviderRegistry<net.minecraft.item.ItemConvertible,net.minecraft.client.color.item.ItemColorProvider> |
ITEM
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Provider |
get(T object)
Deprecated.
Get a color provider for the given object.
|
void |
register(Provider provider,
T... objects)
Deprecated.
Register a color provider for one or more objects.
|
static final ColorProviderRegistry<net.minecraft.item.ItemConvertible,net.minecraft.client.color.item.ItemColorProvider> ITEM
static final ColorProviderRegistry<net.minecraft.block.Block,net.minecraft.client.color.block.BlockColorProvider> BLOCK
void register(Provider provider, T... objects)
provider
- The color provider to register.objects
- The objects which should be colored using this provider.@Nullable Provider get(T object)
Please note that the underlying registry may not be fully populated or stable until the game has started, as other mods may overwrite the registry.
object
- The object to acquire the provide for.null
if none is registered or available.