Package dev.lone.itemsadder.api
Class ItemsAdder.Advanced
java.lang.Object
dev.lone.itemsadder.api.ItemsAdder.Advanced
- Enclosing class:
- ItemsAdder
Advanced stuff, better not touch it.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.bukkit.block.data.BlockDatagetBlockDataByInternalId(int id) Deprecated.static @Nullable StringgetItemModelResourceLocation(String namespacedId) Returns the model path of the specified item in the Minecraft ResourceLocation formatnamespace:pathstatic voidinjectItemModifier(org.bukkit.plugin.Plugin plugin, ItemsAdder.Advanced.ModifierHandler modifier) Inject a function which can edit ANY item registered into the ItemsAdder registry.static voidinjectItemModifier(org.bukkit.plugin.Plugin plugin, String namespacedId, ItemsAdder.Advanced.ModifierHandler modifier) Inject a function which can edit a specific item registered into the ItemsAdder registry.
-
Constructor Details
-
Advanced
public Advanced()
-
-
Method Details
-
getBlockDataByInternalId
@Deprecated @Nullable public static @Nullable org.bukkit.block.data.BlockData getBlockDataByInternalId(int id) Deprecated.Calculates the correct Bukkit BlockData based on the internal ItemsAdder registry ID. This is used by some specific special plugins.- Parameters:
id- internal ItemsAdder registry ID- Returns:
- Bukkit BlockData
-
injectItemModifier
public static void injectItemModifier(org.bukkit.plugin.Plugin plugin, String namespacedId, ItemsAdder.Advanced.ModifierHandler modifier) Inject a function which can edit a specific item registered into the ItemsAdder registry. Use this to customize your item even more.- Parameters:
plugin- the plugin where you are calling this methodnamespacedId- the Id of the item you want to edit in the formatnamespace:idmodifier- the function which will edit the item
-
injectItemModifier
public static void injectItemModifier(org.bukkit.plugin.Plugin plugin, ItemsAdder.Advanced.ModifierHandler modifier) Inject a function which can edit ANY item registered into the ItemsAdder registry. Use this to customize your item even more.- Parameters:
plugin- the plugin where you are calling this methodmodifier- the function which will edit the item
-
getItemModelResourceLocation
Returns the model path of the specified item in the Minecraft ResourceLocation formatnamespace:path- Parameters:
namespacedId- the Id of the item you want to get the model of in the formatnamespace:id- Returns:
- the ResourceLocation.
-