net.minecraft.entity.passive

public class BeeEntity

extends AnimalEntity implements Flutterer, Angerable

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Flutterer, Angerable

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

Field summary

Modifier and TypeField
public static final float
FLAP_DEGREES_PER_TICK
field_30271
field_30271
public static final int
TICKS_PER_FLAP
field_28638
field_28638
private static final TrackedData<Byte>
DATA_FLAGS_ID
field_20353
BEE_FLAGS
private static final TrackedData<Long>
DATA_ANGER_END_TIME
field_63320
ANGER_END_TIME
private static final int
FLAG_ROLL
field_30281
NEAR_TARGET_FLAG
private static final int
FLAG_HAS_STUNG
field_30282
HAS_STUNG_FLAG
private static final int
FLAG_HAS_NECTAR
field_30283
HAS_NECTAR_FLAG
private static final int
STING_DEATH_COUNTDOWN
field_30284
MAX_LIFETIME_AFTER_STINGING
private static final int
TICKS_BEFORE_GOING_TO_KNOWN_FLOWER
field_30285
FLOWER_NAVIGATION_START_TICKS
private static final int
TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME
field_30286
POLLINATION_FAIL_TICKS
private static final int
MIN_ATTACK_DIST
field_30287
field_30287
private static final int
MAX_CROPS_GROWABLE
field_30288
MAX_POLLINATED_CROPS
private static final int
POISON_SECONDS_NORMAL
field_30289
NORMAL_DIFFICULTY_STING_POISON_DURATION
private static final int
POISON_SECONDS_HARD
field_30290
HARD_DIFFICULTY_STING_POISON_DURATION
private static final int
TOO_FAR_DISTANCE
field_30291
TOO_FAR_DISTANCE
private static final int
HIVE_CLOSE_ENOUGH_DISTANCE
field_30292
field_30292
private static final int
RESTRICTED_WANDER_DISTANCE_REDUCTION
field_52456
field_52456
private static final int
DEFAULT_WANDER_DISTANCE_REDUCTION
field_52457
field_52457
private static final int
PATHFIND_TO_HIVE_WHEN_CLOSER_THAN
field_30293
MIN_HIVE_RETURN_DISTANCE
private static final int
HIVE_SEARCH_DISTANCE
field_30294
field_30294
public static final String
TAG_CROPS_GROWN_SINCE_POLLINATION
field_30272
CROPS_GROWN_SINCE_POLLINATION_KEY
public static final String
TAG_CANNOT_ENTER_HIVE_TICKS
field_30273
CANNOT_ENTER_HIVE_TICKS_KEY
public static final String
TAG_TICKS_SINCE_POLLINATION
field_30276
TICKS_SINCE_POLLINATION_KEY
public static final String
TAG_HAS_STUNG
field_30277
HAS_STUNG_KEY
public static final String
TAG_HAS_NECTAR
field_30278
HAS_NECTAR_KEY
public static final String
TAG_FLOWER_POS
field_30279
FLOWER_POS_KEY
public static final String
TAG_HIVE_POS
field_30280
HIVE_POS_KEY
public static final boolean
DEFAULT_HAS_NECTAR
field_57600
DEFAULT_HAS_NECTAR
private static final boolean
DEFAULT_HAS_STUNG
field_57601
DEFAULT_HAS_STUNG
private static final int
DEFAULT_TICKS_SINCE_POLLINATION
field_57602
DEFAULT_TICKS_SINCE_POLLINATION
private static final int
DEFAULT_CANNOT_ENTER_HIVE_TICKS
field_57603
DEFAULT_CANNOT_ENTER_HIVE_TICKS
private static final int
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
field_57604
DEFAULT_CROPS_GROWN_SINCE_POLLINATION
private static final UniformIntProvider
PERSISTENT_ANGER_TIME
field_25363
ANGER_TIME_RANGE
private LazyEntityReference<LivingEntity>
persistentAngerTarget
field_25364
angryAt
private float
rollAmount
field_20356
currentPitch
private float
rollAmountO
field_20357
lastPitch
private int
timeSinceSting
field_20358
ticksSinceSting
private int
ticksWithoutNectarSinceExitingHive
field_20359
ticksSincePollination
private int
stayOutOfHiveCountdown
field_20360
cannotEnterHiveTicks
private int
numCropsGrownSincePollination
field_20361
cropsGrownSincePollination
private static final int
COOLDOWN_BEFORE_LOCATING_NEW_HIVE
field_30274
field_30274
private int
remainingCooldownBeforeLocatingNewHive
field_21643
ticksLeftToFindHive
private static final int
COOLDOWN_BEFORE_LOCATING_NEW_FLOWER
field_30275
field_30275
private static final int
MIN_FIND_FLOWER_RETRY_COOLDOWN
field_52454
field_52454
private static final int
MAX_FIND_FLOWER_RETRY_COOLDOWN
field_52455
field_52455
private int
remainingCooldownBeforeLocatingNewFlower
field_21644
ticksUntilCanPollinate
private BlockPos
savedFlowerPos
field_20362
flowerPos
private BlockPos
hivePos
field_20363
hivePos
private BeeEntity$PollinateGoal
beePollinateGoal
field_21079
pollinateGoal
private BeeEntity$MoveToHiveGoal
goToHiveGoal
field_21645
moveToHiveGoal
private BeeEntity$MoveToFlowerGoal
goToKnownFlowerGoal
field_21646
moveToFlowerGoal
private int
underWaterTicks
field_21509
ticksInsideWater

Constructor summary

ModifierConstructor
public (EntityType<? extends BeeEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
protected void
registerGoals()
method_5959()
initGoals()
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public boolean
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public void
tick()
method_5773()
tick()
private void
spawnFluidParticle(Level level, double x1, double x2, double z1, double z2, double y, ParticleOptions dripParticle)
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)
private void
pathfindRandomlyTowards(BlockPos targetPos)
method_23987(class_2338 arg0)
startMovingTo(BlockPos pos)
public BlockPos
getSavedFlowerPos()
method_21778()
getFlowerPos()
public boolean
hasSavedFlowerPos()
method_21779()
hasFlower()
public void
setSavedFlowerPos(BlockPos savedFlowerPos)
method_21797(class_2338 arg0)
setFlowerPos(BlockPos flowerPos)
public int
getTravellingTicks()
method_35161()
getMoveGoalTicks()
public List<BlockPos>
getBlacklistedHives()
method_35162()
getPossibleHives()
private boolean
isTiredOfLookingForNectar()
method_23983()
failedPollinatingTooLong()
private void
dropHive()
method_61463()
clearHivePos()
private void
dropFlower()
method_61464()
clearFlowerPos()
private boolean
wantsToEnterHive()
method_21789()
canEnterHive()
public void
setStayOutOfHiveCountdown(int ticks)
method_21807(int arg0)
setCannotEnterHiveTicks(int cannotEnterHiveTicks)
public float
getRollAmount(float a)
method_21811(float arg0)
getBodyPitch(float tickProgress)
private void
updateRollAmount()
method_21790()
updateBodyPitch()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
resetTicksWithoutNectarSinceExitingHive()
method_21780()
resetPollinationTicks()
private boolean
isHiveNearFire()
method_23984()
isHiveNearFire()
public long
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
public void
setPersistentAngerEndTime(long endTime)
method_75132(long arg0)
setAngerEndTime(long arg0)
public LazyEntityReference<LivingEntity>
getPersistentAngerTarget()
method_29508()
getAngryAt()
public void
setPersistentAngerTarget(EntityReference<LivingEntity> persistentAngerTarget)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
public void
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
private boolean
doesHiveHaveSpace(BlockPos hivePos)
method_23988(class_2338 arg0)
doesHiveHaveSpace(BlockPos pos)
public boolean
hasHive()
method_21791()
hasHivePos()
public BlockPos
getHivePos()
method_23884()
getHivePos()
public GoalSelector
getGoalSelector()
method_35163()
getGoalSelector()
private int
getCropsGrownSincePollination()
method_21792()
getCropsGrownSincePollination()
private void
resetNumCropsGrownSincePollination()
method_21783()
resetCropCounter()
private void
incrementNumCropsGrownSincePollination()
method_21793()
addCropCounter()
public void
aiStep()
method_6007()
tickMovement()
private BeehiveBlockEntity
getBeehiveBlockEntity()
method_65073()
getHive()
private boolean
isHiveValid()
method_21794()
hasValidHive()
public boolean
hasNectar()
method_21784()
hasNectar()
private void
setHasNectar(boolean hasNectar)
method_21805(boolean arg0)
setHasNectar(boolean hasNectar)
public boolean
hasStung()
method_21785()
hasStung()
private void
setHasStung(boolean hasStung)
method_21806(boolean arg0)
setHasStung(boolean hasStung)
private boolean
isRolling()
method_21786()
isNearTarget()
private void
setRolling(boolean rolling)
method_21808(boolean arg0)
setNearTarget(boolean nearTarget)
private boolean
isTooFarAway(BlockPos targetPos)
method_23990(class_2338 arg0)
isTooFar(BlockPos pos)
private void
setFlag(int flag, boolean value)
method_21775(int arg0, boolean arg1)
setBeeFlag(int bit, boolean value)
private boolean
getFlag(int flag)
method_21812(int arg0)
getBeeFlag(int location)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26880()
createBeeAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public BeeEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
isFlapping()
method_5776()
isFlappingWings()
public boolean
isFlying()
method_6581()
isInAir()
public void
dropOffNectar()
method_21788()
onHoneyDelivered()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected void
jumpInLiquid(TagKey<Fluid> type)
method_6010(class_6862<class_3611> arg0)
swimUpward(TagKey<Fluid> arg0)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
private boolean
closerThan(BlockPos targetPos, int distance)
method_23979(class_2338 arg0, int arg1)
isWithinDistance(BlockPos pos, int distance)
public void
setHivePos(BlockPos hivePos)
method_57301(class_2338 arg0)
setHivePos(BlockPos pos)
public static boolean
attractsBees(BlockState state)
method_65348(class_2680 arg0)
isAttractive(BlockState state)
public void
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
static EntityNavigation
access$000(Bee arg0)
method_36631(class_4466 arg0)
method_36631(BeeEntity arg0)
static Random
access$100(Bee arg0)
method_21765(class_4466 arg0)
method_21765(BeeEntity arg0)
static EntityNavigation
access$200(Bee arg0)
method_36632(class_4466 arg0)
method_36632(BeeEntity arg0)
static EntityNavigation
access$300(Bee arg0)
method_36633(class_4466 arg0)
method_36633(BeeEntity arg0)
static EntityNavigation
access$400(Bee arg0)
method_36634(class_4466 arg0)
method_36634(BeeEntity arg0)
static EntityNavigation
access$500(Bee arg0)
method_23989(class_4466 arg0)
method_23989(BeeEntity arg0)
static EntityNavigation
access$600(Bee arg0)
method_23991(class_4466 arg0)
method_23991(BeeEntity arg0)
static EntityNavigation
access$700(Bee arg0)
method_36635(class_4466 arg0)
method_36635(BeeEntity arg0)
static EntityNavigation
access$800(Bee arg0)
method_23994(class_4466 arg0)
method_23994(BeeEntity arg0)
static EntityNavigation
access$900(Bee arg0)
method_23976(class_4466 arg0)
method_23976(BeeEntity arg0)
static EntityNavigation
access$1000(Bee arg0)
method_23999(class_4466 arg0)
method_23999(BeeEntity arg0)
static EntityNavigation
access$1100(Bee arg0)
method_23980(class_4466 arg0)
method_23980(BeeEntity arg0)
static EntityNavigation
access$1200(Bee arg0)
method_23982(class_4466 arg0)
method_23982(BeeEntity arg0)
static EntityNavigation
access$1300(Bee arg0)
method_23985(class_4466 arg0)
method_23985(BeeEntity arg0)
static EntityNavigation
access$1400(Bee arg0)
method_24000(class_4466 arg0)
method_24000(BeeEntity arg0)
static EntityNavigation
access$1500(Bee arg0)
method_24001(class_4466 arg0)
method_24001(BeeEntity arg0)
static EntityNavigation
access$1600(Bee arg0)
method_24002(class_4466 arg0)
method_24002(BeeEntity arg0)
static EntityNavigation
access$1700(Bee arg0)
method_24003(class_4466 arg0)
method_24003(BeeEntity arg0)
static EntityNavigation
access$1800(Bee arg0)
method_23967(class_4466 arg0)
method_23967(BeeEntity arg0)
static Random
access$1900(Bee arg0)
method_21795(class_4466 arg0)
method_21795(BeeEntity arg0)
static Random
access$2000(Bee arg0)
method_21796(class_4466 arg0)
method_21796(BeeEntity arg0)
static EntityNavigation
access$2100(Bee arg0)
method_23993(class_4466 arg0)
method_23993(BeeEntity arg0)
static Random
access$2200(Bee arg0)
method_23739(class_4466 arg0)
method_23739(BeeEntity arg0)
static EntityNavigation
access$2300(Bee arg0)
method_23995(class_4466 arg0)
method_23995(BeeEntity arg0)
static Random
access$2400(Bee arg0)
method_21798(class_4466 arg0)
method_21798(BeeEntity arg0)
static Random
access$2500(Bee arg0)
method_23740(class_4466 arg0)
method_23740(BeeEntity arg0)
static EntityNavigation
access$2600(Bee arg0)
method_61459(class_4466 arg0)
method_61459(BeeEntity arg0)
static Random
access$2700(Bee arg0)
method_21803(class_4466 arg0)
method_21803(BeeEntity arg0)
static Random
access$2800(Bee arg0)
method_36630(class_4466 arg0)
method_36630(BeeEntity arg0)
static Random
access$2900(Bee arg0)
method_61460(class_4466 arg0)
method_61460(BeeEntity arg0)
static Random
access$3000(Bee arg0)
method_61461(class_4466 arg0)
method_61461(BeeEntity arg0)
static Random
access$3100(Bee arg0)
method_61462(class_4466 arg0)
method_61462(BeeEntity arg0)
private BeeDebugData
lambda$registerDebugValues$0()
method_74668()
method_74668()
private static boolean
lambda$registerGoals$0(ItemStack arg0)
method_58363(class_1799 arg0)
method_58363(ItemStack stack)