Added more entity goals

This commit is contained in:
Auxilor
2022-03-01 20:04:04 +00:00
parent bd32f3bc8d
commit 02497d485b
5 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package com.willfp.eco.core.entities.ai.goals.entity;
import com.willfp.eco.core.entities.ai.goals.EntityGoal;
/**
* Attack like an ocelot.
*/
public record EntityGoalOcelotAttack(
) implements EntityGoal {
}

View File

@@ -0,0 +1,14 @@
package com.willfp.eco.core.entities.ai.goals.entity;
import com.willfp.eco.core.entities.ai.goals.EntityGoal;
/**
* Open doors.
*
* @param delayedClose If closing the door should be delayed.
*/
public record EntityGoalOpenDoors(
boolean delayedClose
) implements EntityGoal {
}

View File

@@ -0,0 +1,14 @@
package com.willfp.eco.core.entities.ai.goals.entity;
import com.willfp.eco.core.entities.ai.goals.EntityGoal;
/**
* Panic.
*
* @param speed The speed at which to panic.
*/
public record EntityGoalPanic(
double speed
) implements EntityGoal {
}

View File

@@ -0,0 +1,11 @@
package com.willfp.eco.core.entities.ai.goals.entity;
import com.willfp.eco.core.entities.ai.goals.EntityGoal;
/**
* Look around randomly.
*/
public record EntityGoalRandomLookAround(
) implements EntityGoal {
}