net.minecraft.world.entity.ai.behavior

public class GiveGiftToHero

extends Behavior<Villager>

asg
net.minecraft.world.entity.ai.behavior.GiveGiftToHero
net.minecraft.class_4243
net.minecraft.entity.ai.brain.task.GiveGiftsToHeroTask
net.minecraft.entity.ai.brain.task.GiveHeroGiftsTask
net.minecraft.server.v1_16_R3.BehaviorVillageHeroGift

Field summary

Modifier and TypeField
private static final Map<VillagerProfession, ResourceLocation>
b
gifts
field_18984
GIFTS
field_220403_a
private int
c
timeUntilNextGift
field_18985
ticksLeft
field_220404_b
private boolean
d
giftGivenDuringThisRun
field_18986
done
field_220405_c
private long
e
timeSinceStart
field_18987
startTime
field_220406_d

Constructor summary

ModifierConstructor
public (int delay)

Method summary

Modifier and TypeMethod
protected boolean
a(aag arg0, bfj arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19962(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
func_212832_a_(ServerWorld arg0, VillagerEntity arg1)
protected void
a(aag arg0, bfj arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_19963(class_3218 arg0, class_1646 arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
func_212831_a_(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected boolean
b(aag arg0, bfj arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_19965(class_3218 arg0, class_1646 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
func_212834_g_(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
c(aag arg0, bfj arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19967(class_3218 arg0, class_1646 arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
func_212833_d_(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
d(aag arg0, bfj arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19968(class_3218 arg0, class_1646 arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
func_212835_f_(ServerWorld arg0, VillagerEntity arg1, long arg2)
private void
a(bfj arg0, aqm arg1)
throwGift(Villager arg0, LivingEntity arg1)
method_19957(class_1646 arg0, class_1309 arg1)
giveGifts(VillagerEntity villager, LivingEntity recipient)
func_220398_a(VillagerEntity arg0, LivingEntity arg1)
private List<ItemStack>
a(bfj arg0)
getItemToThrow(Villager arg0)
method_19956(class_1646 arg0)
getGifts(VillagerEntity villager)
func_220399_a(VillagerEntity arg0)
private boolean
b(bfj arg0)
isHeroVisible(Villager arg0)
method_19964(class_1646 arg0)
isNearestPlayerHero(VillagerEntity villager)
func_220396_b(VillagerEntity arg0)
private Optional<Player>
c(bfj arg0)
getNearestTargetableHero(Villager arg0)
method_19966(class_1646 arg0)
getNearestPlayerIfHero(VillagerEntity villager)
func_220400_c(VillagerEntity arg0)
private boolean
a(bfw arg0)
isHero(Player arg0)
method_19959(class_1657 arg0)
isHero(PlayerEntity player)
func_220402_a(PlayerEntity arg0)
private boolean
a(bfj arg0, bfw arg1)
isWithinThrowingDistance(Villager arg0, Player arg1)
method_19958(class_1646 arg0, class_1657 arg1)
isCloseEnough(VillagerEntity villager, PlayerEntity player)
func_220401_a(VillagerEntity arg0, PlayerEntity arg1)
private static int
a(aag arg0)
calculateTimeUntilNextGift(ServerLevel arg0)
method_19961(class_3218 arg0)
getNextGiftDelay(ServerWorld world)
func_220397_a(ServerWorld arg0)