Class OnyxBlockDisplayImpl
java.lang.Object
com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- All Implemented Interfaces:
OnyxBlockDisplay
Implements OnyxBlockDisplays
-
Nested Class Summary
Nested classes/interfaces inherited from interface OnyxBlockDisplay
OnyxBlockDisplay.Face -
Constructor Summary
Constructors -
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.Builds a read-only map of block textures.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.
-
Constructor Details
-
OnyxBlockDisplayImpl
public OnyxBlockDisplayImpl()
-
-
Method Details
-
all
Description copied from interface:OnyxBlockDisplayMaps a single texture to all six faces of the block.- Specified by:
allin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
sides
Description copied from interface:OnyxBlockDisplayMaps 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:
sidesin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
vertical
Description copied from interface:OnyxBlockDisplayMaps a texture to both the Top and Bottom faces of the block. This does not modify the lateral side faces.- Specified by:
verticalin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
top
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the top face of the block.- Specified by:
topin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
bottom
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the bottom face of the block.- Specified by:
bottomin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
north
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the north face of the block.- Specified by:
northin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
south
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the south face of the block.- Specified by:
southin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
east
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the east face of the block.- Specified by:
eastin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
west
Description copied from interface:OnyxBlockDisplayMaps a texture specifically to the west face of the block.- Specified by:
westin interfaceOnyxBlockDisplay- Parameters:
texturePath- The path to the texture asset.- Returns:
- This OnyxBlockDisplay instance.
-
getTexture
Description copied from interface:OnyxBlockDisplayGets the current texture path assigned to a specific face.- Specified by:
getTexturein interfaceOnyxBlockDisplay- Parameters:
face- The block face to query.- Returns:
- The string path of the texture, or
nullif not found.
-
buildTextureMap
-