net.minecraft.world.entity.ai.behavior

public class GiveGiftToHero

extends Behavior<Villager>

amf
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_15_R1.BehaviorVillageHeroGift

Field summary

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

Constructor summary

ModifierConstructor
public (int delay)

Method summary

Modifier and TypeMethod
protected boolean
a(xd arg0, axt 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(xd arg0, axt 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(xd arg0, axt 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(xd arg0, axt 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(xd arg0, axt 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(axt arg0, akw 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(axt arg0)
getItemToThrow(Villager arg0)
method_19956(class_1646 arg0)
getGifts(VillagerEntity villager)
func_220399_a(VillagerEntity arg0)
private boolean
b(axt arg0)
isHeroVisible(Villager arg0)
method_19964(class_1646 arg0)
isNearestPlayerHero(VillagerEntity villager)
func_220396_b(VillagerEntity arg0)
private Optional<Player>
c(axt arg0)
getNearestTargetableHero(Villager arg0)
method_19966(class_1646 arg0)
getNearestPlayerIfHero(VillagerEntity villager)
func_220400_c(VillagerEntity arg0)
private boolean
a(ayg arg0)
isHero(Player arg0)
method_19959(class_1657 arg0)
isHero(PlayerEntity player)
func_220402_a(PlayerEntity arg0)
private boolean
a(axt arg0, ayg 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(xd arg0)
calculateTimeUntilNextGift(ServerLevel arg0)
method_19961(class_3218 arg0)
getNextGiftDelay(ServerWorld world)
func_220397_a(ServerWorld arg0)