Class RangedShotgunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedGunAttackGoal<T>
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedShotgunAttackGoal<T>
public class RangedShotgunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob>
extends RangedGunAttackGoal<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Field Summary
Fields inherited from class tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedGunAttackGoal
attackCooldown, attackTime, entity, gunItem, maxAttackDistance, moveSpeedAmp, seeTime, strafingBackwards, strafingClockwise, strafingTime -
Constructor Summary
ConstructorsConstructorDescriptionRangedShotgunAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn, net.minecraft.world.item.Item gun) -
Method Summary
Methods inherited from class tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedGunAttackGoal
canContinueToUse, setAttackCooldown, start, stop, tickMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Constructor Details
-
RangedShotgunAttackGoal
public RangedShotgunAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn, net.minecraft.world.item.Item gun)
-
-
Method Details
-
canUse
public boolean canUse()Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.- Overrides:
canUsein classRangedGunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob>- Returns:
- boolean
-