Package net.tnemc.item.component.impl
Class StoredEnchantmentsComponent<I extends AbstractItemStack<T>,T>
java.lang.Object
net.tnemc.item.component.impl.EnchantmentsComponent<I,T>
net.tnemc.item.component.impl.StoredEnchantmentsComponent<I,T>
- All Implemented Interfaces:
SerialComponent<I,,T> ItemApplicator<I,,T> ItemCheck<T>,Identifiable,ItemSerializer<I,T>
- Direct Known Subclasses:
BukkitStoredEnchantmentsComponent,PaperOldStoredEnchantmentsComponent
public abstract class StoredEnchantmentsComponent<I extends AbstractItemStack<T>,T>
extends EnchantmentsComponent<I,T>
StoredEnchantmentsComponents - Can contain either the following fields, or key-value pairs of levels of enchantments.
- Since:
- 0.2.0.0
- Author:
- creatorfromhell
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.tnemc.item.component.impl.EnchantmentsComponent
levels, levels, readJSON, toJSONMethods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.tnemc.item.platform.applier.ItemApplicator
apply, enabledMethods inherited from interface net.tnemc.item.platform.serialize.ItemSerializer
enabled, serializeMethods inherited from interface net.tnemc.item.component.SerialComponent
applies, appliesTo, check
-
Constructor Details
-
StoredEnchantmentsComponent
public StoredEnchantmentsComponent() -
StoredEnchantmentsComponent
-
-
Method Details
-
identifier
- Specified by:
identifierin interfaceIdentifiable- Overrides:
identifierin classEnchantmentsComponent<I extends AbstractItemStack<T>,T> - Returns:
- the identifier for this check.
-
similar
- Specified by:
similarin interfaceSerialComponent<I extends AbstractItemStack<T>,T> - Overrides:
similarin classEnchantmentsComponent<I extends AbstractItemStack<T>,T> - Parameters:
component- The SerialComponent to compare for similarity.- Returns:
- True if the components are similar, false otherwise.
-
hashCode
- Overrides:
hashCodein classEnchantmentsComponent<I extends AbstractItemStack<T>,T>
-