net.minecraft.world.entity.animal

public class Bee

extends Animal implements NeutralMob, FlyingAnimal

All mapped superinterfaces:

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

cme
net.minecraft.world.entity.animal.Bee
net.minecraft.class_4466
net.minecraft.entity.passive.BeeEntity
net.minecraft.src.C_805_

Field summary

Modifier and TypeField
public static final float
ck
FLAP_DEGREES_PER_TICK
field_30271
field_30271
f_148718_
public static final int
cl
TICKS_PER_FLAP
field_28638
field_28638
f_148719_
private static final EntityDataAccessor<Byte>
cv
DATA_FLAGS_ID
field_20353
BEE_FLAGS
f_27703_
private static final EntityDataAccessor<Integer>
cw
DATA_REMAINING_ANGER_TIME
field_20354
ANGER
f_27704_
private static final int
cx
FLAG_ROLL
field_30281
NEAR_TARGET_FLAG
f_148729_
private static final int
cy
FLAG_HAS_STUNG
field_30282
HAS_STUNG_FLAG
f_148730_
private static final int
cz
FLAG_HAS_NECTAR
field_30283
HAS_NECTAR_FLAG
f_148731_
private static final int
cA
STING_DEATH_COUNTDOWN
field_30284
MAX_LIFETIME_AFTER_STINGING
f_148732_
private static final int
cB
TICKS_BEFORE_GOING_TO_KNOWN_FLOWER
field_30285
FLOWER_NAVIGATION_START_TICKS
f_148733_
private static final int
cC
TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME
field_30286
POLLINATION_FAIL_TICKS
f_148734_
private static final int
cD
MIN_ATTACK_DIST
field_30287
field_30287
f_148735_
private static final int
cE
MAX_CROPS_GROWABLE
field_30288
MAX_POLLINATED_CROPS
f_148736_
private static final int
cF
POISON_SECONDS_NORMAL
field_30289
NORMAL_DIFFICULTY_STING_POISON_DURATION
f_148737_
private static final int
cG
POISON_SECONDS_HARD
field_30290
HARD_DIFFICULTY_STING_POISON_DURATION
f_148738_
private static final int
cH
TOO_FAR_DISTANCE
field_30291
TOO_FAR_DISTANCE
f_148739_
private static final int
cI
HIVE_CLOSE_ENOUGH_DISTANCE
field_30292
field_30292
f_148740_
private static final int
cJ
RESTRICTED_WANDER_DISTANCE_REDUCTION
field_52456
field_52456
f_347580_
private static final int
cM
DEFAULT_WANDER_DISTANCE_REDUCTION
field_52457
field_52457
f_346500_
private static final int
cN
PATHFIND_TO_HIVE_WHEN_CLOSER_THAN
field_30293
MIN_HIVE_RETURN_DISTANCE
f_148741_
private static final int
cO
HIVE_SEARCH_DISTANCE
field_30294
field_30294
f_148742_
public static final String
cm
TAG_CROPS_GROWN_SINCE_POLLINATION
field_30272
CROPS_GROWN_SINCE_POLLINATION_KEY
f_148720_
public static final String
co
TAG_CANNOT_ENTER_HIVE_TICKS
field_30273
CANNOT_ENTER_HIVE_TICKS_KEY
f_148721_
public static final String
cp
TAG_TICKS_SINCE_POLLINATION
field_30276
TICKS_SINCE_POLLINATION_KEY
f_148722_
public static final String
cq
TAG_HAS_STUNG
field_30277
HAS_STUNG_KEY
f_148723_
public static final String
cr
TAG_HAS_NECTAR
field_30278
HAS_NECTAR_KEY
f_148724_
public static final String
cs
TAG_FLOWER_POS
field_30279
FLOWER_POS_KEY
f_148727_
public static final String
ct
TAG_HIVE_POS
field_30280
HIVE_POS_KEY
f_148728_
public static final boolean
cu
DEFAULT_HAS_NECTAR
field_57600
DEFAULT_HAS_NECTAR
f_379360_
private static final boolean
cP
DEFAULT_HAS_STUNG
field_57601
DEFAULT_HAS_STUNG
f_381349_
private static final int
cQ
DEFAULT_TICKS_SINCE_POLLINATION
field_57602
DEFAULT_TICKS_SINCE_POLLINATION
f_380256_
private static final int
cR
DEFAULT_CANNOT_ENTER_HIVE_TICKS
field_57603
DEFAULT_CANNOT_ENTER_HIVE_TICKS
f_381038_
private static final int
cS
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
field_57604
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
f_382056_
private static final UniformInt
cT
PERSISTENT_ANGER_TIME
field_25363
ANGER_TIME_RANGE
f_27705_
private UUID
cU
persistentAngerTarget
field_25364
angryAt
f_27706_
private float
cV
rollAmount
field_20356
currentPitch
f_27707_
private float
cW
rollAmountO
field_20357
lastPitch
f_27708_
private int
cX
timeSinceSting
field_20358
ticksSinceSting
f_27709_
int
cY
ticksWithoutNectarSinceExitingHive
field_20359
ticksSincePollination
f_27710_
private int
cZ
stayOutOfHiveCountdown
field_20360
cannotEnterHiveTicks
f_27711_
private int
da
numCropsGrownSincePollination
field_20361
cropsGrownSincePollination
f_27712_
private static final int
db
COOLDOWN_BEFORE_LOCATING_NEW_HIVE
field_30274
field_30274
f_148725_
int
dc
remainingCooldownBeforeLocatingNewHive
field_21643
ticksLeftToFindHive
f_27713_
private static final int
dd
COOLDOWN_BEFORE_LOCATING_NEW_FLOWER
field_30275
field_30275
f_148726_
private static final int
de
MIN_FIND_FLOWER_RETRY_COOLDOWN
field_52454
field_52454
f_346382_
private static final int
df
MAX_FIND_FLOWER_RETRY_COOLDOWN
field_52455
field_52455
f_349026_
int
dg
remainingCooldownBeforeLocatingNewFlower
field_21644
ticksUntilCanPollinate
f_27714_
BlockPos
dh
savedFlowerPos
field_20362
flowerPos
f_27697_
BlockPos
di
hivePos
field_20363
hivePos
f_27698_
Bee$BeePollinateGoal
dj
beePollinateGoal
field_21079
pollinateGoal
f_27699_
Bee$BeeGoToHiveGoal
dk
goToHiveGoal
field_21645
moveToHiveGoal
f_27700_
private Bee$BeeGoToKnownFlowerGoal
dl
goToKnownFlowerGoal
field_21646
moveToFlowerGoal
f_27701_
private int
dm
underWaterTicks
field_21509
ticksInsideWater
f_27702_

Constructor summary

ModifierConstructor
public (EntityType<? extends Bee> p_27718_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
a(all$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(jb arg0, dmx arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_27789_, C_1599_ arg1)
protected void
H()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
public boolean
c(aub arg0, bzm arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
m_7327_(C_12_ p_27722_, C_507_ arg1)
public void
g()
tick()
method_5773()
tick()
m_8119_()
private void
a(dmu arg0, double arg1, double arg2, double arg3, double arg4, double arg5, mc 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_27779_(C_1596_ p_27781_, double p_27782_, double p_27784_, double p_27786_, double arg4, double arg5, C_4756_ arg6)
void
j(jb arg0)
pathfindRandomlyTowards(BlockPos arg0)
method_23987(class_2338 arg0)
startMovingTo(BlockPos pos)
m_27880_(C_4675_ arg0)
public BlockPos
m()
getSavedFlowerPos()
method_21778()
getFlowerPos()
m_27851_()
public boolean
n()
hasSavedFlowerPos()
method_21779()
hasFlower()
m_27852_()
public void
h(jb arg0)
setSavedFlowerPos(BlockPos arg0)
method_21797(class_2338 arg0)
setFlowerPos(BlockPos flowerPos)
m_27876_(C_4675_ arg0)
public int
t()
getTravellingTicks()
method_35161()
getMoveGoalTicks()
m_148774_()
public List<BlockPos>
gH()
getBlacklistedHives()
method_35162()
getPossibleHives()
m_148775_()
private boolean
gY()
isTiredOfLookingForNectar()
method_23983()
failedPollinatingTooLong()
m_27865_()
void
gZ()
dropHive()
method_61463()
clearHivePos()
m_355359_()
void
ha()
dropFlower()
method_61464()
clearFlowerPos()
m_357380_()
boolean
hb()
wantsToEnterHive()
method_21789()
canEnterHive()
m_27866_()
public static boolean
c(dmu arg0)
isNightOrRaining(Level arg0)
method_63007(class_1937 arg0)
isNightOrRaining(World world)
m_355598_(C_1596_ p_367929_)
public void
s(int arg0)
setStayOutOfHiveCountdown(int arg0)
method_21807(int arg0)
setCannotEnterHiveTicks(int cannotEnterHiveTicks)
m_27915_(int arg0)
public float
J(float arg0)
getRollAmount(float arg0)
method_21811(float arg0)
getBodyPitch(float tickProgress)
m_27935_(float arg0)
private void
hc()
updateRollAmount()
method_21790()
updateBodyPitch()
m_27867_()
protected void
a(aub arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
m_8024_(C_12_ arg0)
public void
gI()
resetTicksWithoutNectarSinceExitingHive()
method_21780()
resetPollinationTicks()
m_27853_()
private boolean
hd()
isHiveNearFire()
method_23984()
isHiveNearFire()
m_27868_()
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
m_6784_()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
m_7870_(int arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
m_6120_()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
m_6925_(UUID arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
m_6825_()
private boolean
k(jb arg0)
doesHiveHaveSpace(BlockPos arg0)
method_23988(class_2338 arg0)
doesHiveHaveSpace(BlockPos pos)
m_27884_(C_4675_ arg0)
public boolean
gJ()
hasHive()
method_21791()
hasHivePos()
m_27854_()
public BlockPos
gK()
getHivePos()
method_23884()
getHivePos()
m_27855_()
public GoalSelector
gL()
getGoalSelector()
method_35163()
getGoalSelector()
m_148772_()
protected void
ah()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()
int
he()
getCropsGrownSincePollination()
method_21792()
getCropsGrownSincePollination()
m_27869_()
private void
hf()
resetNumCropsGrownSincePollination()
method_21783()
resetCropCounter()
m_27870_()
void
hg()
incrementNumCropsGrownSincePollination()
method_21793()
addCropCounter()
m_27871_()
public void
e_()
aiStep()
method_6007()
tickMovement()
m_8107_()
BeehiveBlockEntity
hh()
getBeehiveBlockEntity()
method_65073()
getHive()
m_352432_()
boolean
hi()
isHiveValid()
method_21794()
hasValidHive()
m_27872_()
public boolean
gT()
hasNectar()
method_21784()
hasNectar()
m_27856_()
void
x(boolean arg0)
setHasNectar(boolean arg0)
method_21805(boolean arg0)
setHasNectar(boolean hasNectar)
m_27919_(boolean arg0)
public boolean
gU()
hasStung()
method_21785()
hasStung()
m_27857_()
private void
y(boolean arg0)
setHasStung(boolean arg0)
method_21806(boolean arg0)
setHasStung(boolean hasStung)
m_27925_(boolean arg0)
private boolean
hj()
isRolling()
method_21786()
isNearTarget()
m_27873_()
private void
z(boolean arg0)
setRolling(boolean arg0)
method_21808(boolean arg0)
setNearTarget(boolean nearTarget)
m_27929_(boolean arg0)
boolean
l(jb arg0)
isTooFarAway(BlockPos arg0)
method_23990(class_2338 arg0)
isTooFar(BlockPos pos)
m_27889_(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_27832_(int p_27834_, boolean arg1)
private boolean
t(int arg0)
getFlag(int arg0)
method_21812(int arg0)
getBeeFlag(int location)
m_27921_(int arg0)
public static AttributeSupplier$Builder
gV()
createAttributes()
method_26880()
createBeeAttributes()
m_27858_()
protected PathNavigation
b(dmu arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
m_6037_(C_1596_ arg0)
public InteractionResult
b(cut arg0, bxi arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_377494_, C_470_ arg1)
public boolean
i(dcv arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
protected void
b(jb arg0, eeb arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_27821_, C_2064_ arg1)
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
e(byb arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
f_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected float
fk()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
public Bee
b(aub arg0, bzc arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_21771(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_148761_, C_141062_ arg1)
protected void
a(double arg0, boolean arg1, eeb arg2, jb 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_27755_, boolean p_27757_, C_2064_ arg2, C_4675_ arg3)
public boolean
bd()
isFlapping()
method_5776()
isFlappingWings()
m_142039_()
public boolean
gW()
isFlying()
method_6581()
isInAir()
m_29443_()
public void
gX()
dropOffNectar()
method_21788()
onHoneyDelivered()
m_27864_()
public boolean
a(aub arg0, byb 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_366275_, C_489_ p_361676_, float arg2)
protected void
c(bae<fak> 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
F()
getLeashOffset()
method_29919()
getLeashOffset()
m_27831_()
boolean
b(jb arg0, int arg1)
closerThan(BlockPos arg0, int arg1)
method_23979(class_2338 arg0, int arg1)
isWithinDistance(BlockPos pos, int distance)
m_27816_(C_4675_ p_27818_, int arg1)
public void
i(jb arg0)
setHivePos(BlockPos arg0)
method_57301(class_2338 arg0)
setHivePos(BlockPos pos)
m_320152_(C_4675_ arg0)
public static boolean
c(eeb arg0)
attractsBees(BlockState arg0)
method_65348(class_2680 arg0)
isAttractive(BlockState state)
m_374210_(C_2064_ p_376850_)