Package net.tnemc.item.bukkit.platform
Class BukkitItemPlatform
java.lang.Object
net.tnemc.item.platform.ItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack,org.bukkit.inventory.Inventory>
net.tnemc.item.bukkit.platform.BukkitItemPlatform
public class BukkitItemPlatform
extends ItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack,org.bukkit.inventory.Inventory>
BukkitItemPlatform
- Since:
- 0.1.7.7
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds default configurations or settings to be used by the implementing class.Provides access to the calculations provider for performing various platform-specific operations.createStack(String material) Creates a new stack based on the given material.@NotNull ItemProvider<org.bukkit.inventory.ItemStack> Retrieves the default provider for the item stack comparison.@NotNull StringRetrieves the identifier of the default provider for the item stack comparison.initSerialized(org.json.simple.JSONObject object) Initializes and returns an AbstractItemStack object by deserializing the provided JSON object.static BukkitItemPlatforminstance()locale(org.bukkit.inventory.ItemStack locale) Converts the given locale stack to an instance ofAbstractItemStackversion()Methods inherited from class net.tnemc.item.platform.ItemPlatform
addApplicator, addCheck, addEffect, addItemProvider, addMulti, addPersistentDataType, addSerializer, apply, check, check, checkOrder, checkOrder, componentString, converter, effects, getClasses, provider, providerApplies, serializer
-
Method Details
-
createStack
Description copied from class:ItemPlatformCreates a new stack based on the given material.- Specified by:
createStackin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Parameters:
material- The material used for creating the stack.- Returns:
- The newly created stack.
-
instance
-
version
- Specified by:
versionin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Returns:
- the version that is being used currently
- Since:
- 0.2.0.0
-
addDefaults
Description copied from class:ItemPlatformAdds default configurations or settings to be used by the implementing class.- Specified by:
addDefaultsin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory>
-
defaultProvider
Retrieves the default provider for the item stack comparison.- Specified by:
defaultProviderin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Returns:
- the default provider for the item stack comparison.
- Since:
- 0.2.0.0
-
defaultProviderIdentifier
Retrieves the identifier of the default provider for the item stack comparison.- Specified by:
defaultProviderIdentifierin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Returns:
- The identifier of the default provider for the item stack comparison.
- Since:
- 0.2.0.0
-
calculations
Description copied from class:ItemPlatformProvides access to the calculations provider for performing various platform-specific operations.- Specified by:
calculationsin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Returns:
- An instance of
CalculationsProviderthat handles calculations related to the item platform.
-
locale
Converts the given locale stack to an instance ofAbstractItemStack- Specified by:
localein classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Parameters:
locale- the locale to convert- Returns:
- the converted locale of type I
- Since:
- 0.2.0.0
-
initSerialized
Initializes and returns an AbstractItemStack object by deserializing the provided JSON object.- Specified by:
initSerializedin classItemPlatform<BukkitItemStack,org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory> - Parameters:
object- the JSON object to deserialize- Returns:
- an initialized AbstractItemStack object
- Since:
- 0.2.0.0
-