Class OnyxBlockDisplayImpl

java.lang.Object
com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
All Implemented Interfaces:
OnyxBlockDisplay

public class OnyxBlockDisplayImpl extends Object implements OnyxBlockDisplay
Implements OnyxBlockDisplays
  • Constructor Details

    • OnyxBlockDisplayImpl

      public OnyxBlockDisplayImpl()
  • Method Details

    • all

      public OnyxBlockDisplay all(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a single texture to all six faces of the block.
      Specified by:
      all in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • sides

      public OnyxBlockDisplay sides(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      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.
      Specified by:
      sides in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • vertical

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

      public OnyxBlockDisplay top(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the top face of the block.
      Specified by:
      top in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • bottom

      public OnyxBlockDisplay bottom(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the bottom face of the block.
      Specified by:
      bottom in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • north

      public OnyxBlockDisplay north(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the north face of the block.
      Specified by:
      north in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • south

      public OnyxBlockDisplay south(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the south face of the block.
      Specified by:
      south in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • east

      public OnyxBlockDisplay east(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the east face of the block.
      Specified by:
      east in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • west

      public OnyxBlockDisplay west(String texturePath)
      Description copied from interface: OnyxBlockDisplay
      Maps a texture specifically to the west face of the block.
      Specified by:
      west in interface OnyxBlockDisplay
      Parameters:
      texturePath - The path to the texture asset.
      Returns:
      This OnyxBlockDisplay instance.
    • getTexture

      public String getTexture(OnyxBlockDisplay.Face face)
      Description copied from interface: OnyxBlockDisplay
      Gets the current texture path assigned to a specific face.
      Specified by:
      getTexture in interface OnyxBlockDisplay
      Parameters:
      face - The block face to query.
      Returns:
      The string path of the texture, or null if not found.
    • buildTextureMap

      public Map<String,String> buildTextureMap()
      Builds a read-only map of block textures.
      Returns:
      String Map of textures