net.minecraft.world.entity.ai.behavior

public class GiveGiftToHero

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

bgj
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
net.minecraft.src.C_589_
net.minecraft.world.entity.ai.behavior.BehaviorVillageHeroGift

Field summary

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

Constructor summary

ModifierConstructor
public (int delay)

Method summary

Modifier and TypeMethod
protected boolean
a(ahm arg0, bwc 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 arg0, VillagerEntity arg1)
m_6114_(C_12_ p_23004_, C_1118_ arg1)
protected void
a(ahm arg0, bwc 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 arg0, VillagerEntity arg1, long arg2)
m_6735_(C_12_ p_23007_, C_1118_ p_23008_, long arg2)
protected boolean
b(ahm arg0, bwc 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 arg0, VillagerEntity arg1, long arg2)
m_6737_(C_12_ p_23027_, C_1118_ p_23028_, long arg2)
protected void
c(ahm arg0, bwc 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 arg0, VillagerEntity arg1, long arg2)
m_6725_(C_12_ p_23037_, C_1118_ p_23038_, long arg2)
protected void
d(ahm arg0, bwc 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 arg0, VillagerEntity arg1, long arg2)
m_6732_(C_12_ p_23047_, C_1118_ p_23048_, long arg2)
private void
a(bwc arg0, beg arg1)
throwGift(Villager arg0, LivingEntity arg1)
method_19957(class_1646 arg0, class_1309 arg1)
m_aoqbkdni(C_pdtkdbte arg0, C_usxaxydn arg1)
giveGifts(VillagerEntity villager, LivingEntity recipient)
giveGifts(VillagerEntity villager, LivingEntity recipient)
m_23011_(C_1118_ p_23013_, C_524_ arg1)
private List<ItemStack>
a(bwc arg0)
getItemToThrow(Villager arg0)
method_19956(class_1646 arg0)
m_kkqropvw(C_pdtkdbte arg0)
getGifts(VillagerEntity villager)
getGifts(VillagerEntity villager)
m_23009_(C_1118_ arg0)
private boolean
b(bwc arg0)
isHeroVisible(Villager arg0)
method_19964(class_1646 arg0)
m_amxlfjur(C_pdtkdbte arg0)
isNearestPlayerHero(VillagerEntity villager)
isNearestPlayerHero(VillagerEntity villager)
m_23029_(C_1118_ arg0)
private Optional<Player>
c(bwc arg0)
getNearestTargetableHero(Villager arg0)
method_19966(class_1646 arg0)
m_fgcayhky(C_pdtkdbte arg0)
getNearestPlayerIfHero(VillagerEntity villager)
getNearestPlayerIfHero(VillagerEntity villager)
m_23039_(C_1118_ arg0)
private boolean
a(bwp arg0)
isHero(Player arg0)
method_19959(class_1657 arg0)
m_xxwohtty(C_jzrpycqo arg0)
isHero(PlayerEntity player)
isHero(PlayerEntity player)
m_23017_(C_1141_ arg0)
private boolean
a(bwc arg0, bwp 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)
m_23014_(C_1118_ p_23016_, C_1141_ arg1)
private static int
a(ahm arg0)
calculateTimeUntilNextGift(ServerLevel arg0)
method_19961(class_3218 arg0)
m_duhoxtxn(C_bdwnwhiu arg0)
getNextGiftDelay(ServerWorld world)
getNextGiftDelay(ServerWorld world)
m_22993_(C_12_ p_22994_)