Package dev.jaxydog.astral.content.block
Interface Colored
- All Superinterfaces:
BlockConvertible,Registered,Registered.Client
Provides dynamic color support for the implementing block.
- 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 TypeMethodDescriptionintgetColor(net.minecraft.block.BlockState state, net.minecraft.world.BlockRenderView view, net.minecraft.util.math.BlockPos position, int index) Returns the color for the given block at the provided layer index.default voidRegisters this value on the client environment.Methods inherited from interface dev.jaxydog.astral.content.block.BlockConvertible
asBlockMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId, getRegistryPath
-
Method Details
-
getColor
int getColor(net.minecraft.block.BlockState state, net.minecraft.world.BlockRenderView view, net.minecraft.util.math.BlockPos position, int index) Returns the color for the given block at the provided layer index.- Parameters:
state- The block's current state.view- The block's rendering view.position- The block's current position.index- The color layer index.- Returns:
- The block's color at the given index.
- Since:
- 1.7.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:
-