net.minecraft.world.entity.animal.bee

public class Bee

extends Animal implements NeutralMob, FlyingAnimal

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, WaypointTransmitter, Waypoint, EquipmentUser, Leashable, Targeting, NeutralMob, FlyingAnimal

ctw
net.minecraft.world.entity.animal.bee.Bee
net.minecraft.class_4466
net.minecraft.entity.passive.BeeEntity
net.minecraft.src.C_432370_
net.minecraft.world.entity.animal.bee.EntityBee

字段概要

修饰符与类型字段
public static final float
cv
FLAP_DEGREES_PER_TICK
field_30271
field_30271
f_437203_
public static final int
cw
TICKS_PER_FLAP
field_28638
field_28638
f_435395_
private static final EntityDataAccessor<Byte>
cG
DATA_FLAGS_ID
field_20353
BEE_FLAGS
f_435769_
private static final EntityDataAccessor<Long>
cH
DATA_ANGER_END_TIME
field_63320
ANGER_END_TIME
f_435290_
private static final int
cI
FLAG_ROLL
field_30281
NEAR_TARGET_FLAG
f_434124_
private static final int
cJ
FLAG_HAS_STUNG
field_30282
HAS_STUNG_FLAG
f_434010_
private static final int
cK
FLAG_HAS_NECTAR
field_30283
HAS_NECTAR_FLAG
f_433130_
private static final int
cL
STING_DEATH_COUNTDOWN
field_30284
MAX_LIFETIME_AFTER_STINGING
f_436542_
private static final int
cM
TICKS_BEFORE_GOING_TO_KNOWN_FLOWER
field_30285
FLOWER_NAVIGATION_START_TICKS
f_433517_
private static final int
cN
TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME
field_30286
POLLINATION_FAIL_TICKS
f_436914_
private static final int
cO
MIN_ATTACK_DIST
field_30287
field_30287
f_435210_
private static final int
cP
MAX_CROPS_GROWABLE
field_30288
MAX_POLLINATED_CROPS
f_436290_
private static final int
cQ
POISON_SECONDS_NORMAL
field_30289
NORMAL_DIFFICULTY_STING_POISON_DURATION
f_437287_
private static final int
cR
POISON_SECONDS_HARD
field_30290
HARD_DIFFICULTY_STING_POISON_DURATION
f_435843_
private static final int
cU
TOO_FAR_DISTANCE
field_30291
TOO_FAR_DISTANCE
f_437262_
private static final int
cV
HIVE_CLOSE_ENOUGH_DISTANCE
field_30292
field_30292
f_433264_
private static final int
cW
RESTRICTED_WANDER_DISTANCE_REDUCTION
field_52456
field_52456
f_436711_
private static final int
cX
DEFAULT_WANDER_DISTANCE_REDUCTION
field_52457
field_52457
f_436712_
private static final int
cY
PATHFIND_TO_HIVE_WHEN_CLOSER_THAN
field_30293
MIN_HIVE_RETURN_DISTANCE
f_435438_
private static final int
cZ
HIVE_SEARCH_DISTANCE
field_30294
field_30294
f_436599_
public static final String
cx
TAG_CROPS_GROWN_SINCE_POLLINATION
field_30272
CROPS_GROWN_SINCE_POLLINATION_KEY
f_433822_
public static final String
cz
TAG_CANNOT_ENTER_HIVE_TICKS
field_30273
CANNOT_ENTER_HIVE_TICKS_KEY
f_435644_
public static final String
cA
TAG_TICKS_SINCE_POLLINATION
field_30276
TICKS_SINCE_POLLINATION_KEY
f_435098_
public static final String
cB
TAG_HAS_STUNG
field_30277
HAS_STUNG_KEY
f_436801_
public static final String
cC
TAG_HAS_NECTAR
field_30278
HAS_NECTAR_KEY
f_434140_
public static final String
cD
TAG_FLOWER_POS
field_30279
FLOWER_POS_KEY
f_434625_
public static final String
cE
TAG_HIVE_POS
field_30280
HIVE_POS_KEY
f_436145_
public static final boolean
cF
DEFAULT_HAS_NECTAR
field_57600
DEFAULT_HAS_NECTAR
f_435527_
private static final boolean
da
DEFAULT_HAS_STUNG
field_57601
DEFAULT_HAS_STUNG
f_433128_
private static final int
db
DEFAULT_TICKS_SINCE_POLLINATION
field_57602
DEFAULT_TICKS_SINCE_POLLINATION
f_436992_
private static final int
dc
DEFAULT_CANNOT_ENTER_HIVE_TICKS
field_57603
DEFAULT_CANNOT_ENTER_HIVE_TICKS
f_437325_
private static final int
dd
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
field_57604
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
f_437055_
private static final UniformInt
de
PERSISTENT_ANGER_TIME
field_25363
ANGER_TIME_RANGE
f_433938_
private EntityReference<LivingEntity>
df
persistentAngerTarget
field_25364
angryAt
f_434771_
private float
dg
rollAmount
field_20356
currentPitch
f_434191_
private float
dh
rollAmountO
field_20357
lastPitch
f_436437_
private int
di
timeSinceSting
field_20358
ticksSinceSting
f_435613_
int
dj
ticksWithoutNectarSinceExitingHive
field_20359
ticksSincePollination
f_437211_
private int
dk
stayOutOfHiveCountdown
field_20360
cannotEnterHiveTicks
f_434713_
private int
dl
numCropsGrownSincePollination
field_20361
cropsGrownSincePollination
f_437199_
private static final int
dm
COOLDOWN_BEFORE_LOCATING_NEW_HIVE
field_30274
field_30274
f_435137_
int
dn
remainingCooldownBeforeLocatingNewHive
field_21643
ticksLeftToFindHive
f_434470_
private static final int
do
COOLDOWN_BEFORE_LOCATING_NEW_FLOWER
field_30275
field_30275
f_437258_
private static final int
dp
MIN_FIND_FLOWER_RETRY_COOLDOWN
field_52454
field_52454
f_436612_
private static final int
dq
MAX_FIND_FLOWER_RETRY_COOLDOWN
field_52455
field_52455
f_434217_
int
dr
remainingCooldownBeforeLocatingNewFlower
field_21644
ticksUntilCanPollinate
f_435771_
BlockPos
ds
savedFlowerPos
field_20362
flowerPos
f_435511_
BlockPos
dt
hivePos
field_20363
hivePos
f_433941_
Bee$BeePollinateGoal
du
beePollinateGoal
field_21079
pollinateGoal
f_436607_
Bee$BeeGoToHiveGoal
dv
goToHiveGoal
field_21645
moveToHiveGoal
f_435433_
private Bee$BeeGoToKnownFlowerGoal
dw
goToKnownFlowerGoal
field_21646
moveToFlowerGoal
f_436288_
private int
dx
underWaterTicks
field_21509
ticksInsideWater
f_435859_

构造函数概要

修饰符构造函数
public (EntityType<? extends Bee> p_454230_, Level arg1)

方法概要

修饰符与类型方法
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public float
a(is arg0, dwr arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_457424_, C_1599_ arg1)
protected void
D()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
a(fns arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
protected void
a(fnq arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
public boolean
c(axf arg0, cgk arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
m_7327_(C_12_ p_460607_, C_507_ arg1)
public void
g()
tick()
method_5773()
tick()
m_8119_()
private void
a(dwo arg0, double arg1, double arg2, double arg3, double arg4, double arg5, lw arg6)
spawnFluidParticle(Level arg0, double arg1, double arg2, double arg3, double arg4, double arg5, ParticleOptions arg6)
method_21769(class_1937 arg0, double arg1, double arg2, double arg3, double arg4, double arg5, class_2394 arg6)
addParticle(World world, double lastX, double x, double lastZ, double z, double y, ParticleEffect effect)
m_439878_(C_1596_ p_456673_, double p_457420_, double p_457832_, double p_455535_, double arg4, double arg5, C_4756_ arg6)
void
j(is arg0)
pathfindRandomlyTowards(BlockPos arg0)
method_23987(class_2338 arg0)
startMovingTo(BlockPos pos)
m_439323_(C_4675_ arg0)
public BlockPos
p()
getSavedFlowerPos()
method_21778()
getFlowerPos()
m_441768_()
public boolean
gP()
hasSavedFlowerPos()
method_21779()
hasFlower()
m_442976_()
public void
h(is arg0)
setSavedFlowerPos(BlockPos arg0)
method_21797(class_2338 arg0)
setFlowerPos(BlockPos flowerPos)
m_439318_(C_4675_ arg0)
public int
gQ()
getTravellingTicks()
method_35161()
getMoveGoalTicks()
m_446172_()
public List<BlockPos>
gR()
getBlacklistedHives()
method_35162()
getPossibleHives()
m_439291_()
private boolean
hh()
isTiredOfLookingForNectar()
method_23983()
failedPollinatingTooLong()
m_440621_()
void
hi()
dropHive()
method_61463()
clearHivePos()
m_446684_()
void
hj()
dropFlower()
method_61464()
clearFlowerPos()
m_439346_()
boolean
hk()
wantsToEnterHive()
method_21789()
canEnterHive()
m_445414_()
public void
s(int arg0)
setStayOutOfHiveCountdown(int arg0)
method_21807(int arg0)
setCannotEnterHiveTicks(int cannotEnterHiveTicks)
m_442412_(int arg0)
public float
L(float arg0)
getRollAmount(float arg0)
method_21811(float arg0)
getBodyPitch(float tickProgress)
m_444046_(float arg0)
private void
hl()
updateRollAmount()
method_21790()
updateBodyPitch()
m_443449_()
protected void
a(axf arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
m_8024_(C_12_ arg0)
public void
gS()
resetTicksWithoutNectarSinceExitingHive()
method_21780()
resetPollinationTicks()
m_447373_()
private boolean
hm()
isHiveNearFire()
method_23984()
isHiveNearFire()
m_445955_()
public long
a()
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
m_439145_()
public void
b(long arg0)
setPersistentAngerEndTime(long arg0)
method_75132(long arg0)
setAngerEndTime(long arg0)
m_439783_(long arg0)
public EntityReference<LivingEntity>
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
m_6120_()
public void
a(cgr<chl> arg0)
setPersistentAngerTarget(EntityReference<LivingEntity> arg0)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
m_6925_(C_379042_<C_524_> arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
m_6825_()
private boolean
k(is arg0)
doesHiveHaveSpace(BlockPos arg0)
method_23988(class_2338 arg0)
doesHiveHaveSpace(BlockPos pos)
m_440416_(C_4675_ arg0)
public boolean
gT()
hasHive()
method_21791()
hasHivePos()
m_440817_()
public BlockPos
gU()
getHivePos()
method_23884()
getHivePos()
m_447473_()
public GoalSelector
gV()
getGoalSelector()
method_35163()
getGoalSelector()
m_438821_()
int
hn()
getCropsGrownSincePollination()
method_21792()
getCropsGrownSincePollination()
m_439192_()
private void
ho()
resetNumCropsGrownSincePollination()
method_21783()
resetCropCounter()
m_442977_()
void
hp()
incrementNumCropsGrownSincePollination()
method_21793()
addCropCounter()
m_443306_()
public void
d_()
aiStep()
method_6007()
tickMovement()
m_8107_()
BeehiveBlockEntity
hq()
getBeehiveBlockEntity()
method_65073()
getHive()
m_447174_()
boolean
hr()
isHiveValid()
method_21794()
hasValidHive()
m_444150_()
public boolean
hd()
hasNectar()
method_21784()
hasNectar()
m_439353_()
void
x(boolean arg0)
setHasNectar(boolean arg0)
method_21805(boolean arg0)
setHasNectar(boolean hasNectar)
m_438901_(boolean arg0)
public boolean
he()
hasStung()
method_21785()
hasStung()
m_440648_()
private void
y(boolean arg0)
setHasStung(boolean arg0)
method_21806(boolean arg0)
setHasStung(boolean hasStung)
m_441666_(boolean arg0)
private boolean
hs()
isRolling()
method_21786()
isNearTarget()
m_443103_()
private void
z(boolean arg0)
setRolling(boolean arg0)
method_21808(boolean arg0)
setNearTarget(boolean nearTarget)
m_445798_(boolean arg0)
boolean
l(is arg0)
isTooFarAway(BlockPos arg0)
method_23990(class_2338 arg0)
isTooFar(BlockPos pos)
m_444170_(C_4675_ arg0)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_21775(int arg0, boolean arg1)
setBeeFlag(int bit, boolean value)
m_440038_(int p_453792_, boolean arg1)
private boolean
t(int arg0)
getFlag(int arg0)
method_21812(int arg0)
getBeeFlag(int location)
m_446928_(int arg0)
public static AttributeSupplier$Builder
hf()
createAttributes()
method_26880()
createBeeAttributes()
m_442217_()
protected PathNavigation
b(dwo arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
m_6037_(C_1596_ arg0)
public InteractionResult
b(ddm arg0, cdb arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_460611_, C_470_ arg1)
public boolean
j(dlt arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
protected void
b(is arg0, eoh arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_450349_, C_2064_ arg1)
protected SoundEvent
W()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
h(cex arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
fd()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected float
fC()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
public Bee
b(axf arg0, cfy arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_21771(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_459879_, C_141062_ arg1)
protected void
a(double arg0, boolean arg1, eoh arg2, is arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
m_7840_(double p_460412_, boolean p_451393_, C_2064_ arg2, C_4675_ arg3)
public boolean
bp()
isFlapping()
method_5776()
isFlappingWings()
m_142039_()
public boolean
d()
isFlying()
method_6581()
isInAir()
m_142592_()
public void
hg()
dropOffNectar()
method_21788()
onHoneyDelivered()
m_445880_()
public boolean
a(axf arg0, cex arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
m_351622_(C_12_ p_457645_, C_489_ p_456505_, float arg2)
protected void
c(bef<fla> arg0)
jumpInLiquid(TagKey<Fluid> arg0)
method_6010(class_6862<class_3611> arg0)
swimUpward(TagKey<Fluid> arg0)
m_203347_(C_203208_<C_2690_> arg0)
public Vec3
B()
getLeashOffset()
method_29919()
getLeashOffset()
m_33927_()
boolean
b(is arg0, int arg1)
closerThan(BlockPos arg0, int arg1)
method_23979(class_2338 arg0, int arg1)
isWithinDistance(BlockPos pos, int distance)
m_440890_(C_4675_ p_453557_, int arg1)
public void
i(is arg0)
setHivePos(BlockPos arg0)
method_57301(class_2338 arg0)
setHivePos(BlockPos pos)
m_442256_(C_4675_ arg0)
public static boolean
c(eoh arg0)
attractsBees(BlockState arg0)
method_65348(class_2680 arg0)
isAttractive(BlockState state)
m_446357_(C_2064_ p_452245_)
public void
a(axf arg0, bxh$a arg1)
registerDebugValues(ServerLevel arg0, DebugValueSource$Registration arg1)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
m_402531_(C_12_ p_455909_, C_411330_$C_411147_ arg1)