Package net.minecraft.src
Class EntityAIAttackOnCollide
java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAIAttackOnCollide
- Direct Known Subclasses:
ZombieSecondaryAttackBehavior
-
Field Summary
FieldsModifier and TypeFieldDescriptionintAn amount of decrementing ticks that allows the entity to attack once the tick reaches 0.The PathEntity of our entity.doublebooleanWhen true, the mob will continue chasing its target, even if it can't find a path to them right now. -
Constructor Summary
ConstructorsConstructorDescriptionEntityAIAttackOnCollide(EntityCreature par1EntityCreature, double par2, boolean par4) EntityAIAttackOnCollide(EntityCreature par1EntityCreature, Class par2Class, double par3, boolean par5) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether an in-progress EntityAIBase should continue executingvoidResets the taskbooleanReturns whether the EntityAIBase should begin execution.voidExecute a one shot task or start executing a continuous taskvoidUpdates the taskMethods inherited from class net.minecraft.src.EntityAIBase
getMutexBits, isContinuous, setMutexBits
-
Field Details
-
worldObj
-
attacker
-
attackTick
public int attackTickAn amount of decrementing ticks that allows the entity to attack once the tick reaches 0. -
longMemory
public boolean longMemoryWhen true, the mob will continue chasing its target, even if it can't find a path to them right now. -
field_75440_e
public double field_75440_e -
entityPathEntity
The PathEntity of our entity. -
classTarget
-
-
Constructor Details
-
EntityAIAttackOnCollide
public EntityAIAttackOnCollide(EntityCreature par1EntityCreature, Class par2Class, double par3, boolean par5) -
EntityAIAttackOnCollide
-
-
Method Details
-
shouldExecute
public boolean shouldExecute()Returns whether the EntityAIBase should begin execution.- Specified by:
shouldExecutein classEntityAIBase
-
continueExecuting
public boolean continueExecuting()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
continueExecutingin classEntityAIBase
-
startExecuting
public void startExecuting()Execute a one shot task or start executing a continuous task- Overrides:
startExecutingin classEntityAIBase
-
resetTask
public void resetTask()Resets the task- Overrides:
resetTaskin classEntityAIBase
-
updateTask
public void updateTask()Updates the task- Overrides:
updateTaskin classEntityAIBase
-