Class SentinelCrackShot
java.lang.Object
org.mcmonkey.sentinel.SentinelIntegration
org.mcmonkey.sentinel.integration.SentinelCrackShot
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the 'target help' data for this integration (empty string if not relevant).String[]
Gets the list of target prefixes that this integration handles.boolean
itemIsRanged
(SentinelTrait sentinel, org.bukkit.inventory.ItemStack item) For autoswitch logic, return 'true' if the item should be considered a valid ranged weapon to swap to.boolean
tryAttack
(SentinelTrait st, org.bukkit.entity.LivingEntity ent) Runs when an NPC intends to attack a target - return 'true' to indicate the integration ran its own attack methodology (and no default attack handling is needed).Methods inherited from class org.mcmonkey.sentinel.SentinelIntegration
isTarget, isTarget, shouldLowerCaseValue
-
Constructor Details
-
SentinelCrackShot
public SentinelCrackShot()
-
-
Method Details
-
getTargetHelp
Description copied from class:SentinelIntegration
Gets the 'target help' data for this integration (empty string if not relevant). Example format is: "myintegration:MY_TARGET_IDENTIFIER" like "squad:SQUAD_NAME" or "healthabove:PERCENTAGE"- Overrides:
getTargetHelp
in classSentinelIntegration
-
getTargetPrefixes
Description copied from class:SentinelIntegration
Gets the list of target prefixes that this integration handles. For a "squad:SQUAD_NAME" target, this should return: new String[] { "squad" } For integrations that don't have targets, return new String[0];- Overrides:
getTargetPrefixes
in classSentinelIntegration
-
itemIsRanged
Description copied from class:SentinelIntegration
For autoswitch logic, return 'true' if the item should be considered a valid ranged weapon to swap to. If Sentinel's core and all integrations return 'false', the item will be considered a melee weapon.- Overrides:
itemIsRanged
in classSentinelIntegration
-
tryAttack
Description copied from class:SentinelIntegration
Runs when an NPC intends to attack a target - return 'true' to indicate the integration ran its own attack methodology (and no default attack handling is needed).- Overrides:
tryAttack
in classSentinelIntegration
-