public class EntityAITasks
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
EntityAITasks.EntityAITaskEntry |
Modifier and Type | Field and Description |
---|---|
private int |
disabledControlFlags |
private java.util.Set<EntityAITasks.EntityAITaskEntry> |
executingTaskEntries |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Profiler |
profiler |
java.util.Set<EntityAITasks.EntityAITaskEntry> |
taskEntries |
private int |
tickCount |
private int |
tickRate |
Constructor and Description |
---|
EntityAITasks(Profiler profilerIn) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(int priority,
EntityAIBase task) |
private boolean |
areTasksCompatible(EntityAITasks.EntityAITaskEntry taskEntry1,
EntityAITasks.EntityAITaskEntry taskEntry2) |
private boolean |
canContinue(EntityAITasks.EntityAITaskEntry taskEntry) |
private boolean |
canUse(EntityAITasks.EntityAITaskEntry taskEntry) |
void |
disableControlFlag(int p_188526_1_) |
void |
enableControlFlag(int p_188525_1_) |
boolean |
isControlFlagDisabled(int p_188528_1_) |
void |
onUpdateTasks() |
void |
removeTask(EntityAIBase task) |
void |
setControlFlag(int p_188527_1_,
boolean p_188527_2_) |
private static final org.apache.logging.log4j.Logger LOGGER
public final java.util.Set<EntityAITasks.EntityAITaskEntry> taskEntries
private final java.util.Set<EntityAITasks.EntityAITaskEntry> executingTaskEntries
private final Profiler profiler
private int tickCount
private int tickRate
private int disabledControlFlags
public EntityAITasks(Profiler profilerIn)
public void addTask(int priority, EntityAIBase task)
public void removeTask(EntityAIBase task)
public void onUpdateTasks()
private boolean canContinue(EntityAITasks.EntityAITaskEntry taskEntry)
private boolean canUse(EntityAITasks.EntityAITaskEntry taskEntry)
private boolean areTasksCompatible(EntityAITasks.EntityAITaskEntry taskEntry1, EntityAITasks.EntityAITaskEntry taskEntry2)
public boolean isControlFlagDisabled(int p_188528_1_)
public void disableControlFlag(int p_188526_1_)
public void enableControlFlag(int p_188525_1_)
public void setControlFlag(int p_188527_1_, boolean p_188527_2_)