Class PaperOldProfileComponent
java.lang.Object
net.tnemc.item.component.impl.ProfileComponent<PaperItemStack,org.bukkit.inventory.ItemStack>
net.tnemc.item.paper.platform.impl.old.PaperOldProfileComponent
- All Implemented Interfaces:
SerialComponent<PaperItemStack,
,org.bukkit.inventory.ItemStack> ItemApplicator<PaperItemStack,
,org.bukkit.inventory.ItemStack> ItemCheck<org.bukkit.inventory.ItemStack>
,Identifiable
,ItemSerializer<PaperItemStack,
org.bukkit.inventory.ItemStack>
public class PaperOldProfileComponent
extends ProfileComponent<PaperItemStack,org.bukkit.inventory.ItemStack>
PaperOldProfileComponent
- Since:
- 0.2.0.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(org.bukkit.inventory.ItemStack item) Checks if this component applies to the specified item.org.bukkit.inventory.ItemStack
apply
(PaperItemStack serialized, org.bukkit.inventory.ItemStack item) boolean
serialize
(org.bukkit.inventory.ItemStack item, PaperItemStack serialized) Methods inherited from class net.tnemc.item.component.impl.ProfileComponent
hashCode, identifier, profile, profile, profile, profile, readJSON, similar, toJSON
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.tnemc.item.component.SerialComponent
applies, check
-
Constructor Details
-
PaperOldProfileComponent
public PaperOldProfileComponent()
-
-
Method Details
-
enabled
- Parameters:
version
- the version being used when this check is called.- Returns:
- true if this check is enabled for the version, otherwise false
- Since:
- 0.2.0.0
-
apply
public org.bukkit.inventory.ItemStack apply(PaperItemStack serialized, org.bukkit.inventory.ItemStack item) - Parameters:
serialized
- the serialized item stack to useitem
- the item that we should use to apply this applicator to.- Returns:
- the updated item.
- Since:
- 0.2.0.0
-
serialize
- Parameters:
item
- the item that we should use to deserialize.serialized
- the serialized item stack we should use to apply this deserializer to- Returns:
- the updated serialized item.
- Since:
- 0.2.0.0
-
appliesTo
Checks if this component applies to the specified item.- Parameters:
item
- The item to check against.- Returns:
- True if this component applies to the item, false otherwise.
- Since:
- 0.2.0.0
-