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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the six faces of a standard block. -
Method Summary
Modifier and TypeMethodDescriptionMaps a single texture to all six faces of the block.Maps a texture specifically to the bottom face of the block.Maps a texture specifically to the east face of the block.Gets the current texture path assigned to a specific face.Maps a texture specifically to the north face of the block.Maps a texture to the four lateral sides of the block (North, East, South, and West).Maps a texture specifically to the south face of the block.Maps a texture specifically to the top face of the block.Maps a texture to both the Top and Bottom faces of the block.Maps a texture specifically to the west face of the block.
-
Method Details
-
getTexture
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
nullif not found.
-
all
Maps a single texture to all six faces of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
sides
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
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
Maps a texture specifically to the top face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
bottom
Maps a texture specifically to the bottom face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
north
Maps a texture specifically to the north face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
east
Maps a texture specifically to the east face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
south
Maps a texture specifically to the south face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
west
Maps a texture specifically to the west face of the block.- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-