Package dev.jaxydog.astral.content.item
Interface Colored
- All Superinterfaces:
net.minecraft.item.ItemConvertible,Registered,Registered.Client
- All Known Implementing Classes:
CloudyArmorItem,CloudyItem,DyeableCloudyArmorItem
Implements common functionality for all colored item extensions.
By itself, this interface only handles registration on the client environment. It should usually be used in tandem
with the Custom interface, which handles common registration as well.
- Since:
- 1.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Method Summary
Modifier and TypeMethodDescriptionintgetStackColor(net.minecraft.item.ItemStack stack, int layerIndex) Returns the color for the given stack at the provided layer index.default voidRegisters this value on the client environment.Methods inherited from interface net.minecraft.item.ItemConvertible
asItemMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId, getRegistryPath
-
Method Details
-
getStackColor
int getStackColor(net.minecraft.item.ItemStack stack, int layerIndex) Returns the color for the given stack at the provided layer index.- Parameters:
stack- The item stack.layerIndex- The index of the color layer.- Returns:
- The layer's color.
- Since:
- 2.0.0
-
registerClient
default void registerClient()Description copied from interface:Registered.ClientRegisters this value on the client environment.The contained code will only ever run on the game client. If you only want the server or want both, see its sister interfaces.
- Specified by:
registerClientin interfaceRegistered.Client- See Also:
-