Interface Colored

All Superinterfaces:
BlockConvertible, Registered, Registered.Client

public interface Colored extends BlockConvertible, Registered.Client
Provides dynamic color support for the implementing block.
Since:
1.7.0
  • 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.Client
      Registers 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:
      registerClient in interface Registered.Client
      See Also: