类 ForgetCompletedPointOfInterestTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.ForgetCompletedPointOfInterestTask
-
public class ForgetCompletedPointOfInterestTask extends Task<LivingEntity>
- Mappings:
Namespace Name official axdintermediary net/minecraft/class_4128named net/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
字段概要
字段 修饰符和类型 字段 说明 private Predicate<PointOfInterestType>conditionprivate static intfield_30185private MemoryModuleType<GlobalPos>memoryModule-
从类继承的字段 net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
-
构造器概要
构造器 构造器 说明 ForgetCompletedPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModule)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private booleanhasCompletedPointOfInterest(ServerWorld world, BlockPos pos)private booleanisBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity)protected voidrun(ServerWorld world, LivingEntity entity, long time)protected booleanshouldRun(ServerWorld world, LivingEntity entity)-
从类继承的方法 net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
-
-
-
字段详细资料
-
field_30185
private static final int field_30185
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLaxd;a:Iintermediary field_30185Lnet/minecraft/class_4128;field_30185:Inamed field_30185Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;field_30185:I
-
memoryModule
private final MemoryModuleType<GlobalPos> memoryModule
- Mappings:
Namespace Name Mixin selector official cLaxd;c:Lbav;intermediary field_18390Lnet/minecraft/class_4128;field_18390:Lnet/minecraft/class_4140;named memoryModuleLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;memoryModule:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
condition
private final Predicate<PointOfInterestType> condition
- Mappings:
Namespace Name Mixin selector official dLaxd;d:Ljava/util/function/Predicate;intermediary field_18391Lnet/minecraft/class_4128;field_18391:Ljava/util/function/Predicate;named conditionLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;condition:Ljava/util/function/Predicate;
-
-
构造器详细资料
-
ForgetCompletedPointOfInterestTask
public ForgetCompletedPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModule)
- Mappings:
Namespace Name Mixin selector official <init>Laxd;<init>(Lbcr;Lbav;)Vintermediary <init>Lnet/minecraft/class_4128;<init>(Lnet/minecraft/class_4158;Lnet/minecraft/class_4140;)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;<init>(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
-
-
方法详细资料
-
shouldRun
protected boolean shouldRun(ServerWorld world, LivingEntity entity)
- 覆盖:
shouldRun在类中Task<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLauj;a(Labj;Lasy;)Zintermediary method_18919Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Znamed shouldRunLnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
protected void run(ServerWorld world, LivingEntity entity, long time)
- 覆盖:
run在类中Task<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLauj;a(Labj;Lasy;J)Vintermediary method_18920Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Vnamed runLnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
isBedOccupiedByOthers
private boolean isBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity)
- Mappings:
Namespace Name Mixin selector official aLaxd;a(Labj;Lgb;Lasy;)Zintermediary method_20500Lnet/minecraft/class_4128;method_20500(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Znamed isBedOccupiedByOthersLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;isBedOccupiedByOthers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
-
hasCompletedPointOfInterest
private boolean hasCompletedPointOfInterest(ServerWorld world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLaxd;a(Labj;Lgb;)Zintermediary method_20499Lnet/minecraft/class_4128;method_20499(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Znamed hasCompletedPointOfInterestLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;hasCompletedPointOfInterest(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
-