net.minecraft.world.entity.animal

public class Bee

extends Animal implements NeutralMob, FlyingAnimal

All mapped superinterfaces:

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

cjn
net.minecraft.world.entity.animal.Bee
net.minecraft.class_4466
net.minecraft.entity.passive.BeeEntity

Field summary

Modifier and TypeField
public static final float
bI
FLAP_DEGREES_PER_TICK
field_30271
field_30271
public static final int
bJ
TICKS_PER_FLAP
field_28638
field_28638
private static final EntityDataAccessor<Byte>
bT
DATA_FLAGS_ID
field_20353
BEE_FLAGS
private static final EntityDataAccessor<Integer>
bU
DATA_REMAINING_ANGER_TIME
field_20354
ANGER
private static final int
bV
FLAG_ROLL
field_30281
NEAR_TARGET_FLAG
private static final int
bW
FLAG_HAS_STUNG
field_30282
HAS_STUNG_FLAG
private static final int
bX
FLAG_HAS_NECTAR
field_30283
HAS_NECTAR_FLAG
private static final int
bY
STING_DEATH_COUNTDOWN
field_30284
MAX_LIFETIME_AFTER_STINGING
private static final int
bZ
TICKS_BEFORE_GOING_TO_KNOWN_FLOWER
field_30285
FLOWER_NAVIGATION_START_TICKS
private static final int
ca
TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME
field_30286
POLLINATION_FAIL_TICKS
private static final int
cb
MIN_ATTACK_DIST
field_30287
field_30287
private static final int
cc
MAX_CROPS_GROWABLE
field_30288
MAX_POLLINATED_CROPS
private static final int
cd
POISON_SECONDS_NORMAL
field_30289
NORMAL_DIFFICULTY_STING_POISON_DURATION
private static final int
ce
POISON_SECONDS_HARD
field_30290
HARD_DIFFICULTY_STING_POISON_DURATION
private static final int
cf
TOO_FAR_DISTANCE
field_30291
TOO_FAR_DISTANCE
private static final int
cg
HIVE_CLOSE_ENOUGH_DISTANCE
field_30292
field_30292
private static final int
ch
RESTRICTED_WANDER_DISTANCE_REDUCTION
field_52456
field_52456
private static final int
ci
DEFAULT_WANDER_DISTANCE_REDUCTION
field_52457
field_52457
private static final int
cj
PATHFIND_TO_HIVE_WHEN_CLOSER_THAN
field_30293
MIN_HIVE_RETURN_DISTANCE
private static final int
ck
HIVE_SEARCH_DISTANCE
field_30294
field_30294
public static final String
bK
TAG_CROPS_GROWN_SINCE_POLLINATION
field_30272
CROPS_GROWN_SINCE_POLLINATION_KEY
public static final String
bM
TAG_CANNOT_ENTER_HIVE_TICKS
field_30273
CANNOT_ENTER_HIVE_TICKS_KEY
public static final String
bN
TAG_TICKS_SINCE_POLLINATION
field_30276
TICKS_SINCE_POLLINATION_KEY
public static final String
bO
TAG_HAS_STUNG
field_30277
HAS_STUNG_KEY
public static final String
bP
TAG_HAS_NECTAR
field_30278
HAS_NECTAR_KEY
public static final String
bQ
TAG_FLOWER_POS
field_30279
FLOWER_POS_KEY
public static final String
bR
TAG_HIVE_POS
field_30280
HIVE_POS_KEY
public static final boolean
bS
DEFAULT_HAS_NECTAR
field_57600
DEFAULT_HAS_NECTAR
private static final boolean
cl
DEFAULT_HAS_STUNG
field_57601
DEFAULT_HAS_STUNG
private static final int
cm
DEFAULT_TICKS_SINCE_POLLINATION
field_57602
DEFAULT_TICKS_SINCE_POLLINATION
private static final int
cn
DEFAULT_CANNOT_ENTER_HIVE_TICKS
field_57603
DEFAULT_CANNOT_ENTER_HIVE_TICKS
private static final int
cq
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
field_57604
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
private static final UniformInt
cr
PERSISTENT_ANGER_TIME
field_25363
ANGER_TIME_RANGE
private UUID
cs
persistentAngerTarget
field_25364
angryAt
private float
ct
rollAmount
field_20356
currentPitch
private float
cu
rollAmountO
field_20357
lastPitch
private int
cv
timeSinceSting
field_20358
ticksSinceSting
int
cw
ticksWithoutNectarSinceExitingHive
field_20359
ticksSincePollination
private int
cx
stayOutOfHiveCountdown
field_20360
cannotEnterHiveTicks
private int
cy
numCropsGrownSincePollination
field_20361
cropsGrownSincePollination
private static final int
cz
COOLDOWN_BEFORE_LOCATING_NEW_HIVE
field_30274
field_30274
int
cA
remainingCooldownBeforeLocatingNewHive
field_21643
ticksLeftToFindHive
private static final int
cB
COOLDOWN_BEFORE_LOCATING_NEW_FLOWER
field_30275
field_30275
private static final int
cC
MIN_FIND_FLOWER_RETRY_COOLDOWN
field_52454
field_52454
private static final int
cD
MAX_FIND_FLOWER_RETRY_COOLDOWN
field_52455
field_52455
int
cE
remainingCooldownBeforeLocatingNewFlower
field_21644
ticksUntilCanPollinate
BlockPos
cF
savedFlowerPos
field_20362
flowerPos
BlockPos
cG
hivePos
field_20363
hivePos
Bee$BeePollinateGoal
cH
beePollinateGoal
field_21079
pollinateGoal
Bee$BeeGoToHiveGoal
cI
goToHiveGoal
field_21645
moveToHiveGoal
private Bee$BeeGoToKnownFlowerGoal
cJ
goToKnownFlowerGoal
field_21646
moveToFlowerGoal
private int
cK
underWaterTicks
field_21509
ticksInsideWater

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(akr$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public float
a(iw arg0, dkc arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
protected void
D()
registerGoals()
method_5959()
initGoals()
public void
b(ua arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ua arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
c(aru arg0, bwv arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public void
h()
tick()
method_5773()
tick()
private void
a(djz arg0, double arg1, double arg2, double arg3, double arg4, double arg5, lx 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)
void
j(iw arg0)
pathfindRandomlyTowards(BlockPos arg0)
method_23987(class_2338 arg0)
startMovingTo(BlockPos pos)
public BlockPos
q()
getSavedFlowerPos()
method_21778()
getFlowerPos()
public boolean
t()
hasSavedFlowerPos()
method_21779()
hasFlower()
public void
h(iw arg0)
setSavedFlowerPos(BlockPos arg0)
method_21797(class_2338 arg0)
setFlowerPos(BlockPos flowerPos)
public int
x()
getTravellingTicks()
method_35161()
getMoveGoalTicks()
public List<BlockPos>
gu()
getBlacklistedHives()
method_35162()
getPossibleHives()
private boolean
gL()
isTiredOfLookingForNectar()
method_23983()
failedPollinatingTooLong()
void
gM()
dropHive()
method_61463()
clearHivePos()
void
gN()
dropFlower()
method_61464()
clearFlowerPos()
boolean
gO()
wantsToEnterHive()
method_21789()
canEnterHive()
public static boolean
c(djz arg0)
isNightOrRaining(Level arg0)
method_63007(class_1937 arg0)
isNightOrRaining(World world)
public void
s(int arg0)
setStayOutOfHiveCountdown(int arg0)
method_21807(int arg0)
setCannotEnterHiveTicks(int cannotEnterHiveTicks)
public float
J(float arg0)
getRollAmount(float arg0)
method_21811(float arg0)
getBodyPitch(float tickProgress)
private void
gP()
updateRollAmount()
method_21790()
updateBodyPitch()
protected void
a(aru arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
gv()
resetTicksWithoutNectarSinceExitingHive()
method_21780()
resetPollinationTicks()
private boolean
gQ()
isHiveNearFire()
method_23984()
isHiveNearFire()
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
private boolean
k(iw arg0)
doesHiveHaveSpace(BlockPos arg0)
method_23988(class_2338 arg0)
doesHiveHaveSpace(BlockPos pos)
public boolean
gw()
hasHive()
method_21791()
hasHivePos()
public BlockPos
gx()
getHivePos()
method_23884()
getHivePos()
public GoalSelector
gy()
getGoalSelector()
method_35163()
getGoalSelector()
protected void
ac()
sendDebugPackets()
method_18409()
sendAiDebugData()
int
gR()
getCropsGrownSincePollination()
method_21792()
getCropsGrownSincePollination()
private void
gS()
resetNumCropsGrownSincePollination()
method_21783()
resetCropCounter()
void
gT()
incrementNumCropsGrownSincePollination()
method_21793()
addCropCounter()
public void
k_()
aiStep()
method_6007()
tickMovement()
BeehiveBlockEntity
gU()
getBeehiveBlockEntity()
method_65073()
getHive()
boolean
gV()
isHiveValid()
method_21794()
hasValidHive()
public boolean
gG()
hasNectar()
method_21784()
hasNectar()
void
w(boolean arg0)
setHasNectar(boolean arg0)
method_21805(boolean arg0)
setHasNectar(boolean hasNectar)
public boolean
gH()
hasStung()
method_21785()
hasStung()
private void
x(boolean arg0)
setHasStung(boolean arg0)
method_21806(boolean arg0)
setHasStung(boolean hasStung)
private boolean
gW()
isRolling()
method_21786()
isNearTarget()
private void
y(boolean arg0)
setRolling(boolean arg0)
method_21808(boolean arg0)
setNearTarget(boolean nearTarget)
boolean
l(iw arg0)
isTooFarAway(BlockPos arg0)
method_23990(class_2338 arg0)
isTooFar(BlockPos pos)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_21775(int arg0, boolean arg1)
setBeeFlag(int bit, boolean value)
private boolean
t(int arg0)
getFlag(int arg0)
method_21812(int arg0)
getBeeFlag(int location)
public static AttributeSupplier$Builder
gI()
createAttributes()
method_26880()
createBeeAttributes()
protected PathNavigation
b(djz arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public InteractionResult
b(crz arg0, bus arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
i(daa arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
b(iw arg0, ebg arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bvk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected float
fe()
getSoundVolume()
method_6107()
getSoundVolume()
public Bee
b(aru arg0, bwl arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_21771(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
a(double arg0, boolean arg1, ebg arg2, iw 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)
public boolean
aZ()
isFlapping()
method_5776()
isFlappingWings()
public boolean
gJ()
isFlying()
method_6581()
isInAir()
public void
gK()
dropOffNectar()
method_21788()
onHoneyDelivered()
public boolean
a(aru arg0, bvk 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)
protected void
c(axv<exp> arg0)
jumpInLiquid(TagKey<Fluid> arg0)
method_6010(class_6862<class_3611> arg0)
swimUpward(TagKey<Fluid> arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()
boolean
b(iw arg0, int arg1)
closerThan(BlockPos arg0, int arg1)
method_23979(class_2338 arg0, int arg1)
isWithinDistance(BlockPos pos, int distance)
public void
i(iw arg0)
setHivePos(BlockPos arg0)
method_57301(class_2338 arg0)
setHivePos(BlockPos pos)
public static boolean
c(ebg arg0)
attractsBees(BlockState arg0)
method_65348(class_2680 arg0)
isAttractive(BlockState state)