Interface OnyxBlockDisplay

All Known Implementing Classes:
OnyxBlockDisplayImpl

public interface OnyxBlockDisplay
A builder interface used to map textures to the faces of a custom block. Texture conflicts are resolved by execution order.
  • Method Details

    • getTexture

      String getTexture(OnyxBlockDisplay.Face face)
      Gets the current texture path assigned to a specific face.
      Parameters:
      face - The block face to query.
      Returns:
      The string path of the texture, or null if not found.
    • all

      OnyxBlockDisplay all(String texturePath)
      Maps a single texture to all six faces of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • sides

      OnyxBlockDisplay sides(String texturePath)
      Maps a texture to the four lateral sides of the block (North, East, South, and West). This does not modify the Top or Bottom faces.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • vertical

      OnyxBlockDisplay vertical(String texturePath)
      Maps a texture to both the Top and Bottom faces of the block. This does not modify the lateral side faces.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • top

      OnyxBlockDisplay top(String texturePath)
      Maps a texture specifically to the top face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • bottom

      OnyxBlockDisplay bottom(String texturePath)
      Maps a texture specifically to the bottom face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • north

      OnyxBlockDisplay north(String texturePath)
      Maps a texture specifically to the north face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • east

      OnyxBlockDisplay east(String texturePath)
      Maps a texture specifically to the east face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • south

      OnyxBlockDisplay south(String texturePath)
      Maps a texture specifically to the south face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • west

      OnyxBlockDisplay west(String texturePath)
      Maps a texture specifically to the west face of the block.
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.