类 GiveGiftsToHeroTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.GiveGiftsToHeroTask
-
public class GiveGiftsToHeroTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official auwintermediary net/minecraft/class_4243named net/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleandoneprivate static intfield_30117private static intfield_30118private static intfield_30119private static intfield_30120private static floatfield_30121private static Map<VillagerProfession,Identifier>GIFTSprivate longstartTimeprivate intticksLeft-
从类继承的字段 net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
-
构造器概要
构造器 构造器 说明 GiveGiftsToHeroTask(int delay)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidfinishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)private List<ItemStack>getGifts(VillagerEntity villager)private Optional<PlayerEntity>getNearestPlayerIfHero(VillagerEntity villager)private static intgetNextGiftDelay(ServerWorld world)private voidgiveGifts(VillagerEntity villager, LivingEntity recipient)private booleanisCloseEnough(VillagerEntity villager, PlayerEntity player)private booleanisHero(PlayerEntity player)private booleanisNearestPlayerHero(VillagerEntity villager)protected voidkeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected voidrun(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)-
从类继承的方法 net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
-
-
-
字段详细资料
-
field_30117
private static final int field_30117
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLauw;a:Iintermediary field_30117Lnet/minecraft/class_4243;field_30117:Inamed field_30117Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30117:I
-
field_30118
private static final int field_30118
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLauw;c:Iintermediary field_30118Lnet/minecraft/class_4243;field_30118:Inamed field_30118Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30118:I
-
field_30119
private static final int field_30119
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLauw;d:Iintermediary field_30119Lnet/minecraft/class_4243;field_30119:Inamed field_30119Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30119:I
-
field_30120
private static final int field_30120
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLauw;e:Iintermediary field_30120Lnet/minecraft/class_4243;field_30120:Inamed field_30120Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30120:I
-
GIFTS
private static final Map<VillagerProfession,Identifier> GIFTS
- Mappings:
Namespace Name Mixin selector official fLauw;f:Ljava/util/Map;intermediary field_18984Lnet/minecraft/class_4243;field_18984:Ljava/util/Map;named GIFTSLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;GIFTS:Ljava/util/Map;
-
field_30121
private static final float field_30121
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official gLauw;g:Fintermediary field_30121Lnet/minecraft/class_4243;field_30121:Fnamed field_30121Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30121:F
-
ticksLeft
private int ticksLeft
- Mappings:
Namespace Name Mixin selector official hLauw;h:Iintermediary field_18985Lnet/minecraft/class_4243;field_18985:Inamed ticksLeftLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;ticksLeft:I
-
done
private boolean done
- Mappings:
Namespace Name Mixin selector official iLauw;i:Zintermediary field_18986Lnet/minecraft/class_4243;field_18986:Znamed doneLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;done:Z
-
startTime
private long startTime
- Mappings:
Namespace Name Mixin selector official jLauw;j:Jintermediary field_18987Lnet/minecraft/class_4243;field_18987:Jnamed startTimeLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;startTime:J
-
-
方法详细资料
-
shouldRun
protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
- 覆盖:
shouldRun在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLauw;a(Labj;Lbis;)Zintermediary method_19962Lnet/minecraft/class_4243;method_19962(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Znamed shouldRunLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
run
protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
- 覆盖:
run在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLauw;a(Labj;Lbis;J)Vintermediary method_19963Lnet/minecraft/class_4243;method_19963(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed runLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
- 覆盖:
shouldKeepRunning在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official bLauw;b(Labj;Lbis;J)Zintermediary method_19965Lnet/minecraft/class_4243;method_19965(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Znamed shouldKeepRunningLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
keepRunning
protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
- 覆盖:
keepRunning在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official cLauw;c(Labj;Lbis;J)Vintermediary method_19967Lnet/minecraft/class_4243;method_19967(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed keepRunningLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
protected void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
- 覆盖:
finishRunning在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official dLauw;d(Labj;Lbis;J)Vintermediary method_19968Lnet/minecraft/class_4243;method_19968(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed finishRunningLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
giveGifts
private void giveGifts(VillagerEntity villager, LivingEntity recipient)
- Mappings:
Namespace Name Mixin selector official aLauw;a(Lbis;Lasy;)Vintermediary method_19957Lnet/minecraft/class_4243;method_19957(Lnet/minecraft/class_1646;Lnet/minecraft/class_1309;)Vnamed giveGiftsLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;giveGifts(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getGifts
private List<ItemStack> getGifts(VillagerEntity villager)
- Mappings:
Namespace Name Mixin selector official aLauw;a(Lbis;)Ljava/util/List;intermediary method_19956Lnet/minecraft/class_4243;method_19956(Lnet/minecraft/class_1646;)Ljava/util/List;named getGiftsLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getGifts(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/List;
-
isNearestPlayerHero
private boolean isNearestPlayerHero(VillagerEntity villager)
- Mappings:
Namespace Name Mixin selector official bLauw;b(Lbis;)Zintermediary method_19964Lnet/minecraft/class_4243;method_19964(Lnet/minecraft/class_1646;)Znamed isNearestPlayerHeroLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isNearestPlayerHero(Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
getNearestPlayerIfHero
private Optional<PlayerEntity> getNearestPlayerIfHero(VillagerEntity villager)
- Mappings:
Namespace Name Mixin selector official cLauw;c(Lbis;)Ljava/util/Optional;intermediary method_19966Lnet/minecraft/class_4243;method_19966(Lnet/minecraft/class_1646;)Ljava/util/Optional;named getNearestPlayerIfHeroLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getNearestPlayerIfHero(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
-
isHero
private boolean isHero(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLauw;a(Lbjf;)Zintermediary method_19959Lnet/minecraft/class_4243;method_19959(Lnet/minecraft/class_1657;)Znamed isHeroLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isHero(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
isCloseEnough
private boolean isCloseEnough(VillagerEntity villager, PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLauw;a(Lbis;Lbjf;)Zintermediary method_19958Lnet/minecraft/class_4243;method_19958(Lnet/minecraft/class_1646;Lnet/minecraft/class_1657;)Znamed isCloseEnoughLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isCloseEnough(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getNextGiftDelay
private static int getNextGiftDelay(ServerWorld world)
- Mappings:
Namespace Name Mixin selector official aLauw;a(Labj;)Iintermediary method_19961Lnet/minecraft/class_4243;method_19961(Lnet/minecraft/class_3218;)Inamed getNextGiftDelayLnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getNextGiftDelay(Lnet/minecraft/server/world/ServerWorld;)I
-
-