Class PylonItemSchema
-
- All Implemented Interfaces:
-
io.github.pylonmc.pylon.core.registry.RegistryHandler,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public final class PylonItemSchema implements Keyed, RegistryHandler
Stores information about a Pylon item type, including its key, default ItemStack, class, and any associated blocks.
You should not need to use this if you are not working on Pylon Core.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPylonItemSchema.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static PylonItemSchema.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final NamespacedKeygetPylonBlockKey()final PylonAddongetAddon()final ResearchgetResearch()final StringgetResearchBypassPermission()final ItemStackgetItemStack()final PylonBlockplace(BlockCreateContext context)Attempts to place the block associated with this item. NamespacedKeygetKey()Booleanequals(Object other)IntegerhashCode()-
Methods inherited from class io.github.pylonmc.pylon.core.item.PylonItemSchema
getKey -
Methods inherited from class net.kyori.adventure.key.Keyed
key -
Methods inherited from class io.github.pylonmc.pylon.core.registry.RegistryHandler
onRegister, onUnregister -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPylonBlockKey
final NamespacedKey getPylonBlockKey()
-
getAddon
final PylonAddon getAddon()
-
getResearch
final Research getResearch()
-
getResearchBypassPermission
final String getResearchBypassPermission()
-
getItemStack
final ItemStack getItemStack()
-
place
final PylonBlock place(BlockCreateContext context)
Attempts to place the block associated with this item.
Does nothing if no block is associated with this item.
-
getKey
NamespacedKey getKey()
-
-
-
-