Class DualWield
java.lang.Object
me.deecaad.weaponmechanics.weapon.info.DualWield
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<DualWield>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandenyDualWieldingWith(String weaponTitle) Checks whether or not this can be used with other weapon titlevoidsendDeniedMessage(TriggerType checkCause, org.bukkit.entity.Player player, String weaponTitle) Simply sends dual wield denied message for player.serialize(me.deecaad.core.file.SerializeData data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
DualWield
public DualWield()Default constructor for serializer -
DualWield
-
-
Method Details
-
denyDualWieldingWith
Checks whether or not this can be used with other weapon title- Parameters:
weaponTitle- the other weapon title- Returns:
- true only if dual wielding is allowed
-
sendDeniedMessage
public void sendDeniedMessage(TriggerType checkCause, @Nullable org.bukkit.entity.Player player, String weaponTitle) Simply sends dual wield denied message for player. Message is only sent if dual wield check cause is same as weapon's shoot, scope or reload trigger type.- Parameters:
checkCause- the cause of this dual wield checkplayer- the player for who to sendweaponTitle- the weapon used
-
getKeyword
- Specified by:
getKeywordin interfaceme.deecaad.core.file.Serializer<DualWield>
-
serialize
@NotNull public DualWield serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<DualWield>- Throws:
me.deecaad.core.file.SerializerException
-