net.minecraft.world.entity.ai.behavior

public class GiveGiftToHero

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

bzk
net.minecraft.world.entity.ai.behavior.GiveGiftToHero
net.minecraft.class_4243
net.minecraft.unmapped.C_cxomqjew
net.minecraft.entity.ai.brain.task.GiveGiftsToHeroTask
net.minecraft.entity.ai.brain.task.GiveGiftsToHeroTask

Field summary

Modifier and TypeField
private static final int
c
THROW_GIFT_AT_DISTANCE
field_30117
f_jsrlwrah
MAX_DISTANCE
MAX_DISTANCE
private static final int
d
MIN_TIME_BETWEEN_GIFTS
field_30118
f_dasmcjkc
DEFAULT_DURATION
MIN_TIME_BETWEEN_GIFTS
private static final int
e
MAX_TIME_BETWEEN_GIFTS
field_30119
f_zsucqfww
MAX_NEXT_GIFT_DELAY
MAX_TIME_BETWEEN_GIFTS
private static final int
f
TIME_TO_DELAY_FOR_HEAD_TO_FINISH_TURNING
field_30120
f_ngewbtzh
RUN_TIME
RUN_TIME
private static final Map<ResourceKey<VillagerProfession>, ResourceKey<LootTable>>
g
GIFTS
field_18984
f_abfzajbn
GIFTS
GIFTS
private static final float
h
SPEED_MODIFIER
field_30121
f_lmkbkrrz
WALK_SPEED
WALK_SPEED
private int
i
timeUntilNextGift
field_18985
f_wzulznsa
ticksLeft
ticksLeft
private boolean
j
giftGivenDuringThisRun
field_18986
f_rqjmarrb
done
done
private long
k
timeSinceStart
field_18987
f_fbexxfgh
startTime
startTime

Constructor summary

ModifierConstructor
public (int delay)

Method summary

Modifier and TypeMethod
protected boolean
a(arq arg0, cqo arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19962(class_3218 arg0, class_1646 arg1)
m_ctaczglr(C_bdwnwhiu arg0, C_pdtkdbte arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
shouldRun(ServerWorld world, VillagerEntity arg1)
protected void
a(arq arg0, cqo arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_19963(class_3218 arg0, class_1646 arg1, long arg2)
m_qqumfouo(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
run(ServerWorld world, VillagerEntity arg1, long arg2)
protected boolean
b(arq arg0, cqo arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_19965(class_3218 arg0, class_1646 arg1, long arg2)
m_bmtktijo(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
shouldKeepRunning(ServerWorld world, VillagerEntity arg1, long arg2)
protected void
c(arq arg0, cqo arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19967(class_3218 arg0, class_1646 arg1, long arg2)
m_tcqpysae(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
keepRunning(ServerWorld world, VillagerEntity arg1, long arg2)
protected void
d(arq arg0, cqo arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19968(class_3218 arg0, class_1646 arg1, long arg2)
m_bgeddgpf(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
finishRunning(ServerWorld world, VillagerEntity arg1, long arg2)
private void
a(arq arg0, cqo arg1, bxe arg2)
throwGift(ServerLevel arg0, Villager arg1, LivingEntity arg2)
method_19957(class_3218 arg0, class_1646 arg1, class_1309 arg2)
m_aoqbkdni(C_bdwnwhiu arg0, C_pdtkdbte arg1, C_usxaxydn arg2)
giveGifts(ServerWorld world, VillagerEntity villager, LivingEntity recipient)
giveGifts(ServerWorld world, VillagerEntity villager, LivingEntity recipient)
private static ResourceKey<LootTable>
a(cqo arg0)
getLootTableToThrow(Villager arg0)
method_64173(class_1646 arg0)
m_udnybjdp(C_pdtkdbte arg0)
getGiftLootTable(VillagerEntity villager)
getGiftLootTable(VillagerEntity villager)
private boolean
b(cqo arg0)
isHeroVisible(Villager arg0)
method_19964(class_1646 arg0)
m_amxlfjur(C_pdtkdbte arg0)
isNearestPlayerHero(VillagerEntity villager)
isNearestPlayerHero(VillagerEntity villager)
private Optional<Player>
c(cqo arg0)
getNearestTargetableHero(Villager arg0)
method_19966(class_1646 arg0)
m_fgcayhky(C_pdtkdbte arg0)
getNearestPlayerIfHero(VillagerEntity villager)
getNearestPlayerIfHero(VillagerEntity villager)
private boolean
a(crc arg0)
isHero(Player arg0)
method_19959(class_1657 arg0)
m_xxwohtty(C_jzrpycqo arg0)
isHero(PlayerEntity player)
isHero(PlayerEntity player)
private boolean
a(cqo arg0, crc arg1)
isWithinThrowingDistance(Villager arg0, Player arg1)
method_19958(class_1646 arg0, class_1657 arg1)
m_llpkctks(C_pdtkdbte arg0, C_jzrpycqo arg1)
isCloseEnough(VillagerEntity villager, PlayerEntity player)
isCloseEnough(VillagerEntity villager, PlayerEntity player)
private static int
a(arq arg0)
calculateTimeUntilNextGift(ServerLevel arg0)
method_19961(class_3218 arg0)
m_duhoxtxn(C_bdwnwhiu arg0)
getNextGiftDelay(ServerWorld world)
getNextGiftDelay(ServerWorld world)