Class CelebrateRaidWinTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.CelebrateRaidWinTask
public class CelebrateRaidWinTask extends Task<VillagerEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description CelebrateRaidWinTask(int minRunTime, int maxRunTime)
-
Method Summary
Modifier and Type Method Description private ItemStack
createFirework(DyeColor color, int flight)
protected void
finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected void
keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected boolean
shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, run, stop, tick, toString, tryStarting
-
Field Details
-
raid
-
-
Constructor Details
-
CelebrateRaidWinTask
public CelebrateRaidWinTask(int minRunTime, int maxRunTime)
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
-
finishRunning
- Overrides:
finishRunning
in classTask<VillagerEntity>
-
keepRunning
- Overrides:
keepRunning
in classTask<VillagerEntity>
-
createFirework
-