Package com.cryptomorin.xseries.base
Class XModule<XForm extends XModule<XForm,BukkitForm>,BukkitForm>
java.lang.Object
com.cryptomorin.xseries.base.XModule<XForm,BukkitForm>
- Type Parameters:
XForm- the class type associated with the Bukkit type defined by XSeries.BukkitForm- the Bukkit class type associated with the XForm.
- All Implemented Interfaces:
XBase<XForm,BukkitForm>
- Direct Known Subclasses:
XAttribute,XBiome,XEnchantment,XPatternType,XSound
public abstract class XModule<XForm extends XModule<XForm,BukkitForm>,BukkitForm>
extends Object
implements XBase<XForm,BukkitForm>
An abstract version of
XBase which implements more default methods for convenience.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.final BukkitFormget()String[]getNames()final inthashCode()Identity hash code.final @NotNull Stringname()Should be used for saving data.protected voidsetEnumName(XRegistry<XForm, BukkitForm> registry, String enumName) final StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.base.XBase
friendlyName, getMetadata, isSupported, or
-
Constructor Details
-
XModule
-
-
Method Details
-
name
Should be used for saving data.- Specified by:
namein interfaceXBase<XForm extends XModule<XForm,BukkitForm>, BukkitForm>
-
setEnumName
-
getNames
- Specified by:
getNamesin interfaceXBase<XForm extends XModule<XForm,BukkitForm>, BukkitForm>
-
get
- Specified by:
getin interfaceXBase<XForm extends XModule<XForm,BukkitForm>, BukkitForm>
-
toString
-
hashCode
public final int hashCode()Identity hash code. -
equals
Deprecated.Identity comparison. Should use==instead.
-