Index
All Classes and Interfaces|All Packages
A
- all(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a single texture to all six faces of the block.
- all(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- AssetValidator - Class in com.zombienw.onyxlib.impl.pack
-
Helper class for validating required/referenced assets used by elements.
- AssetValidator() - Constructor for class com.zombienw.onyxlib.impl.pack.AssetValidator
B
- baseBlock(Material) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Defines the underlying vanilla Minecraft block underneath this custom block.
- baseBlock(Material) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- baseItem(Material) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Sets the underlying vanilla material for this item.
- baseItem(Material) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- block(String) - Method in interface com.zombienw.onyxlib.api.OnyxNamespace
-
Creates or looks up an OnyxBlock.
- block(String) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- blockDisplay(Consumer) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Configures the visual faces of the custom block using a block display builder.
- blockDisplay(Consumer) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- bottom(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the bottom face of the block.
- bottom(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- BOTTOM - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
- buildTextureMap() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
-
Builds a read-only map of block textures.
C
- clear() - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Resets the registry.
- com.zombienw.onyxlib - package com.zombienw.onyxlib
- com.zombienw.onyxlib.api - package com.zombienw.onyxlib.api
- com.zombienw.onyxlib.api.block - package com.zombienw.onyxlib.api.block
- com.zombienw.onyxlib.api.event - package com.zombienw.onyxlib.api.event
- com.zombienw.onyxlib.api.item - package com.zombienw.onyxlib.api.item
- com.zombienw.onyxlib.impl.block - package com.zombienw.onyxlib.impl.block
- com.zombienw.onyxlib.impl.item - package com.zombienw.onyxlib.impl.item
- com.zombienw.onyxlib.impl.pack - package com.zombienw.onyxlib.impl.pack
- com.zombienw.onyxlib.impl.registry - package com.zombienw.onyxlib.impl.registry
- create() - Method in interface com.zombienw.onyxlib.api.OnyxElement
-
Creates a single ItemStack of this element.
- create() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- create() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- create(int) - Method in interface com.zombienw.onyxlib.api.OnyxElement
-
Creates an ItemStack of this element with the specified amount.
- create(int) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- create(int) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
D
- deleteDirectory(Path) - Static method in class com.zombienw.onyxlib.impl.pack.FileUtils
- displayName(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Sets the display name using a legacy string with no italics.
- displayName(String) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Sets the display name using a legacy string with no italics.
- displayName(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- displayName(String) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- displayName(Component) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Sets the display name using an Adventure Component.
- displayName(Component) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Sets the display name using an Adventure Component.
- displayName(Component) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- displayName(Component) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
E
- east(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the east face of the block.
- east(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- EAST - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
- extractAssetsFromJar(Plugin, Path) - Static method in class com.zombienw.onyxlib.impl.pack.FileUtils
F
- FileUtils - Class in com.zombienw.onyxlib.impl.pack
-
Helper class for managing file operations.
- FileUtils() - Constructor for class com.zombienw.onyxlib.impl.pack.FileUtils
G
- generate() - Method in class com.zombienw.onyxlib.impl.pack.PackGenerator
- generate(OnyxPlugin, Path) - Method in class com.zombienw.onyxlib.impl.pack.PackMetaGenerator
- getAllNamespaces() - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Gets all registered namespaces.
- getBaseBlock() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- getBaseMaterial() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- getBlock(String) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getBlockDisplay() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- getBlocks() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getCustomModelPath() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- getCustomModelPath() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- getElement(String) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getElement(NamespacedKey) - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Gets an item/block from all namespaces using its full key.
- getElements() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getHandlerList() - Static method in class com.zombienw.onyxlib.api.event.OnyxBlockBreakEvent
- getHandlerList() - Static method in class com.zombienw.onyxlib.api.event.OnyxBlockPlaceEvent
- getHandlers() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockBreakEvent
- getHandlers() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockPlaceEvent
- getId() - Method in interface com.zombienw.onyxlib.api.OnyxElement
- getId() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- getId() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- getItem(String) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getItems() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getKey() - Method in interface com.zombienw.onyxlib.api.OnyxElement
- getKey() - Method in interface com.zombienw.onyxlib.api.OnyxNamespace
-
Gets the key associated with this namespace.
- getKey() - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- getKey() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- getKey() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getMaximumNearbyLight(Location) - Static method in class com.zombienw.onyxlib.impl.block.OnyxBlockUtils
-
Samples nearby neighbors to get the max appropriate lighting.
- getNamespace(String) - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Finds a namespace without creating it.
- getOnyxBlock() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockBreakEvent
- getOnyxBlock() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockPlaceEvent
- getOrCreate(Plugin) - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Finds or create a namespace for a plugin.
- getPlayer() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockBreakEvent
- getPlayer() - Method in class com.zombienw.onyxlib.api.event.OnyxBlockPlaceEvent
- getPlugin() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- getTexture(OnyxBlockDisplay.Face) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Gets the current texture path assigned to a specific face.
- getTexture(OnyxBlockDisplay.Face) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- getTexturePath() - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
H
- hasOnyxId(ItemDisplay) - Static method in class com.zombienw.onyxlib.impl.block.OnyxBlockUtils
-
Checks if an ItemDisplay entity has any namespaced tag ending with "onyx_id"
I
- item(String) - Method in interface com.zombienw.onyxlib.api.OnyxNamespace
-
Creates or looks up an OnyxItem.
- item(String) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- itemMeta(Consumer) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Provides direct access to the ItemMeta for complex modifications.
- itemMeta(Consumer) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
L
- lock() - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
-
Locks the namespace to prevent further items from being registered
- lockAll() - Static method in class com.zombienw.onyxlib.impl.registry.NamespaceRegistry
-
Locks all namespaces to prevent item registration.
M
- matchBlock(Block) - Method in interface com.zombienw.onyxlib.api.OnyxNamespace
-
Checks the given block to determine if it is tracking an OnyxBlock.
- matchBlock(Block) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- matchItem(ItemStack) - Method in interface com.zombienw.onyxlib.api.OnyxNamespace
-
Checks the given ItemStack and matches it to a registered OnyxItem if it exists.
- matchItem(ItemStack) - Method in class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- model(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- model(String) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- model(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Sets the relative path to the developer made JSON item model.
- model(String) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Sets the relative path to the developer made JSON item model.
- ModelGenerator - Class in com.zombienw.onyxlib.impl.pack
-
Generates item/block models and custom item model definitions.
- ModelGenerator() - Constructor for class com.zombienw.onyxlib.impl.pack.ModelGenerator
N
- namespace(Plugin) - Static method in class com.zombienw.onyxlib.api.OnyxLib
-
Retrieves or creates a namespace for the given plugin.
- NamespaceRegistry - Class in com.zombienw.onyxlib.impl.registry
-
Manages the relationship between all the OnyxLib-using plugins.
- north(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the north face of the block.
- north(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- NORTH - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
O
- onBlockBreak(BlockBreakEvent) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockListener
-
Checks if broken blocks are OnyxBlocks and breaks them.
- onBlockPlace(BlockPlaceEvent) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockListener
-
Handles when an OnyxBlock item is placed and places the physical OnyxBlock.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.zombienw.onyxlib.OnyxCommand
- onDisable() - Method in class com.zombienw.onyxlib.OnyxPlugin
- onEnable() - Method in class com.zombienw.onyxlib.OnyxPlugin
- onServerLoad(ServerLoadEvent) - Method in class com.zombienw.onyxlib.OnyxPlugin
- onTabComplete(CommandSender, Command, String, String[]) - Method in class com.zombienw.onyxlib.OnyxCommand
- OnyxBlock - Interface in com.zombienw.onyxlib.api.block
-
Represents a custom block.
- OnyxBlockBreakEvent - Class in com.zombienw.onyxlib.api.event
-
Fired immediately before an OnyxBlock is removed and its display entity is deleted.
- OnyxBlockBreakEvent(Block, Player, OnyxBlock) - Constructor for class com.zombienw.onyxlib.api.event.OnyxBlockBreakEvent
- OnyxBlockDisplay - Interface in com.zombienw.onyxlib.api.block
-
A builder interface used to map textures to the faces of a custom block.
- OnyxBlockDisplay.Face - Enum Class in com.zombienw.onyxlib.api.block
-
Represents the six faces of a standard block.
- OnyxBlockDisplayImpl - Class in com.zombienw.onyxlib.impl.block
-
Implements OnyxBlockDisplays
- OnyxBlockDisplayImpl() - Constructor for class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- OnyxBlockImpl - Class in com.zombienw.onyxlib.impl.block
-
Implements OnyxBlocks
- OnyxBlockImpl(String, NamespacedKey, NamespacedKey) - Constructor for class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- OnyxBlockListener - Class in com.zombienw.onyxlib.impl.block
-
Event listener to manage the lifecycle of custom blocks.
- OnyxBlockListener(OnyxPlugin) - Constructor for class com.zombienw.onyxlib.impl.block.OnyxBlockListener
- OnyxBlockPlaceEvent - Class in com.zombienw.onyxlib.api.event
-
Fired immediately after an OnyxBlock is placed and its display entity is spawned.
- OnyxBlockPlaceEvent(Block, Player, OnyxBlock) - Constructor for class com.zombienw.onyxlib.api.event.OnyxBlockPlaceEvent
- OnyxBlockUtils - Class in com.zombienw.onyxlib.impl.block
- OnyxBlockUtils() - Constructor for class com.zombienw.onyxlib.impl.block.OnyxBlockUtils
- OnyxCommand - Class in com.zombienw.onyxlib
-
Executes/completes the give and generatePack command.
- OnyxCommand(OnyxPlugin) - Constructor for class com.zombienw.onyxlib.OnyxCommand
- OnyxElement - Interface in com.zombienw.onyxlib.api
-
Represents any registered component in OnyxLib (Items, Blocks, etc.) that can be represented as an ItemStack.
- OnyxItem - Interface in com.zombienw.onyxlib.api.item
-
Represents a custom item.
- OnyxItemImpl - Class in com.zombienw.onyxlib.impl.item
-
Implements OnyxItems
- OnyxItemImpl(String, NamespacedKey, NamespacedKey) - Constructor for class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- OnyxLib - Class in com.zombienw.onyxlib.api
-
The root for all of OnyxLib
- OnyxNamespace - Interface in com.zombienw.onyxlib.api
-
The root containers/registries for all custom content.
- OnyxNamespaceImpl - Class in com.zombienw.onyxlib.impl.registry
-
Implements OnyxNamespaces
- OnyxNamespaceImpl(Plugin, String) - Constructor for class com.zombienw.onyxlib.impl.registry.OnyxNamespaceImpl
- OnyxPlugin - Class in com.zombienw.onyxlib
-
The actual JavaPlugin for OnyxLib.
- OnyxPlugin() - Constructor for class com.zombienw.onyxlib.OnyxPlugin
P
- PackGenerator - Class in com.zombienw.onyxlib.impl.pack
-
Orchestrates all the moving pieces of the pack generator.
- PackGenerator(OnyxPlugin) - Constructor for class com.zombienw.onyxlib.impl.pack.PackGenerator
- PackMetaGenerator - Class in com.zombienw.onyxlib.impl.pack
-
Generates resource pack related metadata.
- PackMetaGenerator() - Constructor for class com.zombienw.onyxlib.impl.pack.PackMetaGenerator
- place(Location) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Places an OnyxBlock at a given location.
- place(Location) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
- processBlock(Path, OnyxBlockImpl) - Method in class com.zombienw.onyxlib.impl.pack.ModelGenerator
- processItem(Path, OnyxItemImpl) - Method in class com.zombienw.onyxlib.impl.pack.ModelGenerator
R
- rotates(boolean) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlock
-
Determines if the custom block should rotate to face the player upon placement.
- rotates(boolean) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockImpl
S
- sides(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture to the four lateral sides of the block (North, East, South, and West).
- sides(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- south(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the south face of the block.
- south(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- SOUTH - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
T
- texture(String) - Method in class com.zombienw.onyxlib.impl.item.OnyxItemImpl
- texture(String) - Method in interface com.zombienw.onyxlib.api.item.OnyxItem
-
Sets the relative path to the texture file, WITHOUT the .png extension.
- top(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the top face of the block.
- top(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- TOP - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
U
- updateDisplayLight(ItemDisplay) - Static method in class com.zombienw.onyxlib.impl.block.OnyxBlockUtils
-
Sets the display brightness of an entity based on its environment
- updateNearbyDisplays(Location) - Static method in class com.zombienw.onyxlib.impl.block.OnyxBlockUtils
-
Update all nearby OnyxBlock ItemDisplay entity light values.
V
- validate(Path, OnyxNamespaceImpl) - Method in class com.zombienw.onyxlib.impl.pack.AssetValidator
- valueOf(String) - Static method in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
-
Returns an array containing the constants of this enum class, in the order they are declared.
- vertical(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture to both the Top and Bottom faces of the block.
- vertical(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
W
- west(String) - Method in interface com.zombienw.onyxlib.api.block.OnyxBlockDisplay
-
Maps a texture specifically to the west face of the block.
- west(String) - Method in class com.zombienw.onyxlib.impl.block.OnyxBlockDisplayImpl
- WEST - Enum constant in enum class com.zombienw.onyxlib.api.block.OnyxBlockDisplay.Face
Z
- zipDirectory(Path, Path) - Static method in class com.zombienw.onyxlib.impl.pack.FileUtils
All Classes and Interfaces|All Packages