Class BeeEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,Flutterer
,Leashable
,Angerable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/passive/BeeEntity
intermediary net/minecraft/class_4466
official chx
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private class
private class
private class
private class
class
class
private class
private class
private class
private static class
private class
private class
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData
<Integer> private static final UniformIntProvider
private static final TrackedData
<Byte> static final String
private int
static final String
private int
private float
static final int
static final float
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
A bee will start moving to a flower once this time in ticks has passed from a pollination.static final String
private static final int
private static final int
static final String
private static final int
static final String
static final String
private float
private static final int
private static final int
private static final int
The minimum distance that bees will immediately return to their hive at.private BeeEntity.MoveToFlowerGoal
(package private) BeeEntity.MoveToHiveGoal
private static final int
private static final int
(package private) BeeEntity.PollinateGoal
private static final int
The duration in ticks when a bee's pollination is considered failed.static final String
private int
(package private) int
(package private) int
private int
(package private) int
private static final int
The minimum distance that bees lose their hive or flower position at.Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, EQUIPMENT_SLOT_ID, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.mob.Angerable
ANGER_TIME_KEY, ANGRY_AT_KEY
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
private void
addParticle
(World world, double lastX, double x, double lastZ, double z, double y, ParticleEffect effect) (package private) boolean
void
(package private) void
(package private) void
createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) protected EntityNavigation
createNavigation
(World world) boolean
damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.private boolean
private boolean
protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected SoundEvent
int
private boolean
getBeeFlag
(int location) float
getBodyPitch
(float tickDelta) (package private) int
protected SoundEvent
(package private) @Nullable BeehiveBlockEntity
getHive()
protected SoundEvent
getHurtSound
(DamageSource source) Returns the offset from the entity's position where the leash is attached to.int
float
getPathfindingFavor
(BlockPos pos, WorldView world) protected float
boolean
boolean
boolean
boolean
hasStung()
(package private) boolean
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
boolean
isBreedingItem
(ItemStack stack) boolean
Returns whether the entity is flapping their wings.private boolean
boolean
isInAir()
private boolean
static boolean
isNightOrRaining
(World world) (package private) boolean
(package private) boolean
isWithinDistance
(BlockPos pos, int distance) protected void
mobTick
(ServerWorld world) void
protected void
playStepSound
(BlockPos pos, BlockState state) void
Reads custom data fromnbt
.private void
void
protected void
void
setAngerTime
(int angerTime) void
setAngryAt
(@Nullable UUID angryAt) private void
setBeeFlag
(int bit, boolean value) void
setCannotEnterHiveTicks
(int cannotEnterHiveTicks) void
setFlowerPos
(BlockPos flowerPos) (package private) void
setHasNectar
(boolean hasNectar) private void
setHasStung
(boolean hasStung) void
setHivePos
(BlockPos pos) private void
setNearTarget
(boolean nearTarget) (package private) void
startMovingTo
(BlockPos pos) protected void
swimUpward
(TagKey<Fluid> fluid) void
tick()
Ticks this entity.void
boolean
tryAttack
(ServerWorld world, Entity target) private void
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, canImmediatelyDespawn, createAnimalAttributes, eat, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getXpToDrop, handleStatus, interactMob, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, playEatSound, resetLoveTicks, setLoveTicks
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, initialize, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorDropChances, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandDropChances, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, tickNewAi, tryEquip, turnHead, updateAttribute, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropInventory, dropXp, endCombat, enterCombat, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponStack, getXpToDrop, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDropLoot, shouldDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.entity.mob.Angerable
canTarget, forgive, getAttacker, getTarget, hasAngerTime, isUniversallyAngry, readAngerFromNbt, setAttacker, setAttacking, setTarget, shouldAngerAt, stopAnger, tickAngerLogic, universallyAnger, writeAngerToNbt
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
field_30271
public static final float field_30271- See Also:
- Mappings:
Namespace Name Mixin selector named field_30271
Lnet/minecraft/entity/passive/BeeEntity;field_30271:F
intermediary field_30271
Lnet/minecraft/class_4466;field_30271:F
official bZ
Lchx;bZ:F
-
field_28638
public static final int field_28638- Mappings:
Namespace Name Mixin selector named field_28638
Lnet/minecraft/entity/passive/BeeEntity;field_28638:I
intermediary field_28638
Lnet/minecraft/class_4466;field_28638:I
official ca
Lchx;ca:I
-
BEE_FLAGS
- Mappings:
Namespace Name Mixin selector named BEE_FLAGS
Lnet/minecraft/entity/passive/BeeEntity;BEE_FLAGS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_20353
Lnet/minecraft/class_4466;field_20353:Lnet/minecraft/class_2940;
official cj
Lchx;cj:Lalc;
-
ANGER
- Mappings:
Namespace Name Mixin selector named ANGER
Lnet/minecraft/entity/passive/BeeEntity;ANGER:Lnet/minecraft/entity/data/TrackedData;
intermediary field_20354
Lnet/minecraft/class_4466;field_20354:Lnet/minecraft/class_2940;
official ck
Lchx;ck:Lalc;
-
NEAR_TARGET_FLAG
private static final int NEAR_TARGET_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named NEAR_TARGET_FLAG
Lnet/minecraft/entity/passive/BeeEntity;NEAR_TARGET_FLAG:I
intermediary field_30281
Lnet/minecraft/class_4466;field_30281:I
official cl
Lchx;cl:I
-
HAS_STUNG_FLAG
private static final int HAS_STUNG_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named HAS_STUNG_FLAG
Lnet/minecraft/entity/passive/BeeEntity;HAS_STUNG_FLAG:I
intermediary field_30282
Lnet/minecraft/class_4466;field_30282:I
official cm
Lchx;cm:I
-
HAS_NECTAR_FLAG
private static final int HAS_NECTAR_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named HAS_NECTAR_FLAG
Lnet/minecraft/entity/passive/BeeEntity;HAS_NECTAR_FLAG:I
intermediary field_30283
Lnet/minecraft/class_4466;field_30283:I
official cn
Lchx;cn:I
-
MAX_LIFETIME_AFTER_STINGING
private static final int MAX_LIFETIME_AFTER_STINGING- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LIFETIME_AFTER_STINGING
Lnet/minecraft/entity/passive/BeeEntity;MAX_LIFETIME_AFTER_STINGING:I
intermediary field_30284
Lnet/minecraft/class_4466;field_30284:I
official co
Lchx;co:I
-
FLOWER_NAVIGATION_START_TICKS
private static final int FLOWER_NAVIGATION_START_TICKSA bee will start moving to a flower once this time in ticks has passed from a pollination.- See Also:
- Mappings:
Namespace Name Mixin selector named FLOWER_NAVIGATION_START_TICKS
Lnet/minecraft/entity/passive/BeeEntity;FLOWER_NAVIGATION_START_TICKS:I
intermediary field_30285
Lnet/minecraft/class_4466;field_30285:I
official cp
Lchx;cp:I
-
POLLINATION_FAIL_TICKS
private static final int POLLINATION_FAIL_TICKSThe duration in ticks when a bee's pollination is considered failed.- See Also:
- Mappings:
Namespace Name Mixin selector named POLLINATION_FAIL_TICKS
Lnet/minecraft/entity/passive/BeeEntity;POLLINATION_FAIL_TICKS:I
intermediary field_30286
Lnet/minecraft/class_4466;field_30286:I
official cq
Lchx;cq:I
-
field_30287
private static final int field_30287- See Also:
- Mappings:
Namespace Name Mixin selector named field_30287
Lnet/minecraft/entity/passive/BeeEntity;field_30287:I
intermediary field_30287
Lnet/minecraft/class_4466;field_30287:I
official cr
Lchx;cr:I
-
MAX_POLLINATED_CROPS
private static final int MAX_POLLINATED_CROPS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_POLLINATED_CROPS
Lnet/minecraft/entity/passive/BeeEntity;MAX_POLLINATED_CROPS:I
intermediary field_30288
Lnet/minecraft/class_4466;field_30288:I
official cs
Lchx;cs:I
-
NORMAL_DIFFICULTY_STING_POISON_DURATION
private static final int NORMAL_DIFFICULTY_STING_POISON_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named NORMAL_DIFFICULTY_STING_POISON_DURATION
Lnet/minecraft/entity/passive/BeeEntity;NORMAL_DIFFICULTY_STING_POISON_DURATION:I
intermediary field_30289
Lnet/minecraft/class_4466;field_30289:I
official ct
Lchx;ct:I
-
HARD_DIFFICULTY_STING_POISON_DURATION
private static final int HARD_DIFFICULTY_STING_POISON_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named HARD_DIFFICULTY_STING_POISON_DURATION
Lnet/minecraft/entity/passive/BeeEntity;HARD_DIFFICULTY_STING_POISON_DURATION:I
intermediary field_30290
Lnet/minecraft/class_4466;field_30290:I
official cu
Lchx;cu:I
-
TOO_FAR_DISTANCE
private static final int TOO_FAR_DISTANCEThe minimum distance that bees lose their hive or flower position at.- See Also:
- Mappings:
Namespace Name Mixin selector named TOO_FAR_DISTANCE
Lnet/minecraft/entity/passive/BeeEntity;TOO_FAR_DISTANCE:I
intermediary field_30291
Lnet/minecraft/class_4466;field_30291:I
official cv
Lchx;cv:I
-
field_30292
private static final int field_30292- See Also:
- Mappings:
Namespace Name Mixin selector named field_30292
Lnet/minecraft/entity/passive/BeeEntity;field_30292:I
intermediary field_30292
Lnet/minecraft/class_4466;field_30292:I
official cw
Lchx;cw:I
-
field_52456
private static final int field_52456- See Also:
- Mappings:
Namespace Name Mixin selector named field_52456
Lnet/minecraft/entity/passive/BeeEntity;field_52456:I
intermediary field_52456
Lnet/minecraft/class_4466;field_52456:I
official cx
Lchx;cx:I
-
field_52457
private static final int field_52457- See Also:
- Mappings:
Namespace Name Mixin selector named field_52457
Lnet/minecraft/entity/passive/BeeEntity;field_52457:I
intermediary field_52457
Lnet/minecraft/class_4466;field_52457:I
official cy
Lchx;cy:I
-
MIN_HIVE_RETURN_DISTANCE
private static final int MIN_HIVE_RETURN_DISTANCEThe minimum distance that bees will immediately return to their hive at.- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_HIVE_RETURN_DISTANCE
Lnet/minecraft/entity/passive/BeeEntity;MIN_HIVE_RETURN_DISTANCE:I
intermediary field_30293
Lnet/minecraft/class_4466;field_30293:I
official cz
Lchx;cz:I
-
field_30294
private static final int field_30294- See Also:
- Mappings:
Namespace Name Mixin selector named field_30294
Lnet/minecraft/entity/passive/BeeEntity;field_30294:I
intermediary field_30294
Lnet/minecraft/class_4466;field_30294:I
official cC
Lchx;cC:I
-
CROPS_GROWN_SINCE_POLLINATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CROPS_GROWN_SINCE_POLLINATION_KEY
Lnet/minecraft/entity/passive/BeeEntity;CROPS_GROWN_SINCE_POLLINATION_KEY:Ljava/lang/String;
intermediary field_30272
Lnet/minecraft/class_4466;field_30272:Ljava/lang/String;
official cb
Lchx;cb:Ljava/lang/String;
-
CANNOT_ENTER_HIVE_TICKS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CANNOT_ENTER_HIVE_TICKS_KEY
Lnet/minecraft/entity/passive/BeeEntity;CANNOT_ENTER_HIVE_TICKS_KEY:Ljava/lang/String;
intermediary field_30273
Lnet/minecraft/class_4466;field_30273:Ljava/lang/String;
official cd
Lchx;cd:Ljava/lang/String;
-
TICKS_SINCE_POLLINATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named TICKS_SINCE_POLLINATION_KEY
Lnet/minecraft/entity/passive/BeeEntity;TICKS_SINCE_POLLINATION_KEY:Ljava/lang/String;
intermediary field_30276
Lnet/minecraft/class_4466;field_30276:Ljava/lang/String;
official ce
Lchx;ce:Ljava/lang/String;
-
HAS_STUNG_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named HAS_STUNG_KEY
Lnet/minecraft/entity/passive/BeeEntity;HAS_STUNG_KEY:Ljava/lang/String;
intermediary field_30277
Lnet/minecraft/class_4466;field_30277:Ljava/lang/String;
official cf
Lchx;cf:Ljava/lang/String;
-
HAS_NECTAR_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named HAS_NECTAR_KEY
Lnet/minecraft/entity/passive/BeeEntity;HAS_NECTAR_KEY:Ljava/lang/String;
intermediary field_30278
Lnet/minecraft/class_4466;field_30278:Ljava/lang/String;
official cg
Lchx;cg:Ljava/lang/String;
-
FLOWER_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FLOWER_POS_KEY
Lnet/minecraft/entity/passive/BeeEntity;FLOWER_POS_KEY:Ljava/lang/String;
intermediary field_30279
Lnet/minecraft/class_4466;field_30279:Ljava/lang/String;
official ch
Lchx;ch:Ljava/lang/String;
-
HIVE_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named HIVE_POS_KEY
Lnet/minecraft/entity/passive/BeeEntity;HIVE_POS_KEY:Ljava/lang/String;
intermediary field_30280
Lnet/minecraft/class_4466;field_30280:Ljava/lang/String;
official ci
Lchx;ci:Ljava/lang/String;
-
ANGER_TIME_RANGE
- Mappings:
Namespace Name Mixin selector named ANGER_TIME_RANGE
Lnet/minecraft/entity/passive/BeeEntity;ANGER_TIME_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
intermediary field_25363
Lnet/minecraft/class_4466;field_25363:Lnet/minecraft/class_6019;
official cD
Lchx;cD:Lbst;
-
field_30274
private static final int field_30274- See Also:
- Mappings:
Namespace Name Mixin selector named field_30274
Lnet/minecraft/entity/passive/BeeEntity;field_30274:I
intermediary field_30274
Lnet/minecraft/class_4466;field_30274:I
official cL
Lchx;cL:I
-
field_30275
private static final int field_30275- See Also:
- Mappings:
Namespace Name Mixin selector named field_30275
Lnet/minecraft/entity/passive/BeeEntity;field_30275:I
intermediary field_30275
Lnet/minecraft/class_4466;field_30275:I
official cN
Lchx;cN:I
-
field_52454
private static final int field_52454- See Also:
- Mappings:
Namespace Name Mixin selector named field_52454
Lnet/minecraft/entity/passive/BeeEntity;field_52454:I
intermediary field_52454
Lnet/minecraft/class_4466;field_52454:I
official cO
Lchx;cO:I
-
field_52455
private static final int field_52455- See Also:
- Mappings:
Namespace Name Mixin selector named field_52455
Lnet/minecraft/entity/passive/BeeEntity;field_52455:I
intermediary field_52455
Lnet/minecraft/class_4466;field_52455:I
official cP
Lchx;cP:I
-
angryAt
- Mappings:
Namespace Name Mixin selector named angryAt
Lnet/minecraft/entity/passive/BeeEntity;angryAt:Ljava/util/UUID;
intermediary field_25364
Lnet/minecraft/class_4466;field_25364:Ljava/util/UUID;
official cE
Lchx;cE:Ljava/util/UUID;
-
currentPitch
private float currentPitch- Mappings:
Namespace Name Mixin selector named currentPitch
Lnet/minecraft/entity/passive/BeeEntity;currentPitch:F
intermediary field_20356
Lnet/minecraft/class_4466;field_20356:F
official cF
Lchx;cF:F
-
lastPitch
private float lastPitch- Mappings:
Namespace Name Mixin selector named lastPitch
Lnet/minecraft/entity/passive/BeeEntity;lastPitch:F
intermediary field_20357
Lnet/minecraft/class_4466;field_20357:F
official cG
Lchx;cG:F
-
ticksSinceSting
private int ticksSinceSting- Mappings:
Namespace Name Mixin selector named ticksSinceSting
Lnet/minecraft/entity/passive/BeeEntity;ticksSinceSting:I
intermediary field_20358
Lnet/minecraft/class_4466;field_20358:I
official cH
Lchx;cH:I
-
ticksSincePollination
int ticksSincePollination- Mappings:
Namespace Name Mixin selector named ticksSincePollination
Lnet/minecraft/entity/passive/BeeEntity;ticksSincePollination:I
intermediary field_20359
Lnet/minecraft/class_4466;field_20359:I
official cI
Lchx;cI:I
-
cannotEnterHiveTicks
private int cannotEnterHiveTicks- Mappings:
Namespace Name Mixin selector named cannotEnterHiveTicks
Lnet/minecraft/entity/passive/BeeEntity;cannotEnterHiveTicks:I
intermediary field_20360
Lnet/minecraft/class_4466;field_20360:I
official cJ
Lchx;cJ:I
-
cropsGrownSincePollination
private int cropsGrownSincePollination- Mappings:
Namespace Name Mixin selector named cropsGrownSincePollination
Lnet/minecraft/entity/passive/BeeEntity;cropsGrownSincePollination:I
intermediary field_20361
Lnet/minecraft/class_4466;field_20361:I
official cK
Lchx;cK:I
-
ticksLeftToFindHive
int ticksLeftToFindHive- Mappings:
Namespace Name Mixin selector named ticksLeftToFindHive
Lnet/minecraft/entity/passive/BeeEntity;ticksLeftToFindHive:I
intermediary field_21643
Lnet/minecraft/class_4466;field_21643:I
official cM
Lchx;cM:I
-
ticksUntilCanPollinate
int ticksUntilCanPollinate- Mappings:
Namespace Name Mixin selector named ticksUntilCanPollinate
Lnet/minecraft/entity/passive/BeeEntity;ticksUntilCanPollinate:I
intermediary field_21644
Lnet/minecraft/class_4466;field_21644:I
official cQ
Lchx;cQ:I
-
flowerPos
- Mappings:
Namespace Name Mixin selector named flowerPos
Lnet/minecraft/entity/passive/BeeEntity;flowerPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_20362
Lnet/minecraft/class_4466;field_20362:Lnet/minecraft/class_2338;
official cR
Lchx;cR:Ljh;
-
hivePos
- Mappings:
Namespace Name Mixin selector named hivePos
Lnet/minecraft/entity/passive/BeeEntity;hivePos:Lnet/minecraft/util/math/BlockPos;
intermediary field_20363
Lnet/minecraft/class_4466;field_20363:Lnet/minecraft/class_2338;
official cS
Lchx;cS:Ljh;
-
pollinateGoal
BeeEntity.PollinateGoal pollinateGoal- Mappings:
Namespace Name Mixin selector named pollinateGoal
Lnet/minecraft/entity/passive/BeeEntity;pollinateGoal:Lnet/minecraft/entity/passive/BeeEntity$PollinateGoal;
intermediary field_21079
Lnet/minecraft/class_4466;field_21079:Lnet/minecraft/class_4466$class_4478;
official cT
Lchx;cT:Lchx$k;
-
moveToHiveGoal
BeeEntity.MoveToHiveGoal moveToHiveGoal- Mappings:
Namespace Name Mixin selector named moveToHiveGoal
Lnet/minecraft/entity/passive/BeeEntity;moveToHiveGoal:Lnet/minecraft/entity/passive/BeeEntity$MoveToHiveGoal;
intermediary field_21645
Lnet/minecraft/class_4466;field_21645:Lnet/minecraft/class_4466$class_4472;
official cU
Lchx;cU:Lchx$e;
-
moveToFlowerGoal
- Mappings:
Namespace Name Mixin selector named moveToFlowerGoal
Lnet/minecraft/entity/passive/BeeEntity;moveToFlowerGoal:Lnet/minecraft/entity/passive/BeeEntity$MoveToFlowerGoal;
intermediary field_21646
Lnet/minecraft/class_4466;field_21646:Lnet/minecraft/class_4466$class_4473;
official cV
Lchx;cV:Lchx$f;
-
ticksInsideWater
private int ticksInsideWater- Mappings:
Namespace Name Mixin selector named ticksInsideWater
Lnet/minecraft/entity/passive/BeeEntity;ticksInsideWater:I
intermediary field_21509
Lnet/minecraft/class_4466;field_21509:I
official cW
Lchx;cW:I
-
-
Constructor Details
-
BeeEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbvj;<init>(Lbvq;Ldhh;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classPassiveEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbvj;a(Lalg$a;)V
-
getPathfindingFavor
- Overrides:
getPathfindingFavor
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named getPathfindingFavor
Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
intermediary method_6144
Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
official a
Lbwn;a(Ljh;Ldhk;)F
-
initGoals
protected void initGoals() -
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)V
-
tryAttack
- Overrides:
tryAttack
in classMobEntity
- Mappings:
Namespace Name Mixin selector named tryAttack
Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Z
intermediary method_6121
Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Z
official c
Lbwf;c(Lash;Lbvj;)Z
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classMobEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
MobEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
addParticle
private void addParticle(World world, double lastX, double x, double lastZ, double z, double y, ParticleEffect effect) - Mappings:
Namespace Name Mixin selector named addParticle
Lnet/minecraft/entity/passive/BeeEntity;addParticle(Lnet/minecraft/world/World;DDDDDLnet/minecraft/particle/ParticleEffect;)V
intermediary method_21769
Lnet/minecraft/class_4466;method_21769(Lnet/minecraft/class_1937;DDDDDLnet/minecraft/class_2394;)V
official a
Lchx;a(Ldhh;DDDDDLlq;)V
-
startMovingTo
- Mappings:
Namespace Name Mixin selector named startMovingTo
Lnet/minecraft/entity/passive/BeeEntity;startMovingTo(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_23987
Lnet/minecraft/class_4466;method_23987(Lnet/minecraft/class_2338;)V
official j
Lchx;j(Ljh;)V
-
getFlowerPos
- Mappings:
Namespace Name Mixin selector named getFlowerPos
Lnet/minecraft/entity/passive/BeeEntity;getFlowerPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_21778
Lnet/minecraft/class_4466;method_21778()Lnet/minecraft/class_2338;
official p
Lchx;p()Ljh;
-
hasFlower
public boolean hasFlower()- Mappings:
Namespace Name Mixin selector named hasFlower
Lnet/minecraft/entity/passive/BeeEntity;hasFlower()Z
intermediary method_21779
Lnet/minecraft/class_4466;method_21779()Z
official t
Lchx;t()Z
-
setFlowerPos
- Mappings:
Namespace Name Mixin selector named setFlowerPos
Lnet/minecraft/entity/passive/BeeEntity;setFlowerPos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_21797
Lnet/minecraft/class_4466;method_21797(Lnet/minecraft/class_2338;)V
official h
Lchx;h(Ljh;)V
-
getMoveGoalTicks
public int getMoveGoalTicks()- Mappings:
Namespace Name Mixin selector named getMoveGoalTicks
Lnet/minecraft/entity/passive/BeeEntity;getMoveGoalTicks()I
intermediary method_35161
Lnet/minecraft/class_4466;method_35161()I
official x
Lchx;x()I
-
getPossibleHives
- Mappings:
Namespace Name Mixin selector named getPossibleHives
Lnet/minecraft/entity/passive/BeeEntity;getPossibleHives()Ljava/util/List;
intermediary method_35162
Lnet/minecraft/class_4466;method_35162()Ljava/util/List;
official go
Lchx;go()Ljava/util/List;
-
failedPollinatingTooLong
private boolean failedPollinatingTooLong()- Mappings:
Namespace Name Mixin selector named failedPollinatingTooLong
Lnet/minecraft/entity/passive/BeeEntity;failedPollinatingTooLong()Z
intermediary method_23983
Lnet/minecraft/class_4466;method_23983()Z
official gF
Lchx;gF()Z
-
clearHivePos
void clearHivePos()- Mappings:
Namespace Name Mixin selector named clearHivePos
Lnet/minecraft/entity/passive/BeeEntity;clearHivePos()V
intermediary method_61463
Lnet/minecraft/class_4466;method_61463()V
official gG
Lchx;gG()V
-
clearFlowerPos
void clearFlowerPos()- Mappings:
Namespace Name Mixin selector named clearFlowerPos
Lnet/minecraft/entity/passive/BeeEntity;clearFlowerPos()V
intermediary method_61464
Lnet/minecraft/class_4466;method_61464()V
official gH
Lchx;gH()V
-
canEnterHive
boolean canEnterHive()- Mappings:
Namespace Name Mixin selector named canEnterHive
Lnet/minecraft/entity/passive/BeeEntity;canEnterHive()Z
intermediary method_21789
Lnet/minecraft/class_4466;method_21789()Z
official gI
Lchx;gI()Z
-
isNightOrRaining
- Mappings:
Namespace Name Mixin selector named isNightOrRaining
Lnet/minecraft/entity/passive/BeeEntity;isNightOrRaining(Lnet/minecraft/world/World;)Z
intermediary method_63007
Lnet/minecraft/class_4466;method_63007(Lnet/minecraft/class_1937;)Z
official c
Lchx;c(Ldhh;)Z
-
setCannotEnterHiveTicks
public void setCannotEnterHiveTicks(int cannotEnterHiveTicks) - Mappings:
Namespace Name Mixin selector named setCannotEnterHiveTicks
Lnet/minecraft/entity/passive/BeeEntity;setCannotEnterHiveTicks(I)V
intermediary method_21807
Lnet/minecraft/class_4466;method_21807(I)V
official s
Lchx;s(I)V
-
getBodyPitch
public float getBodyPitch(float tickDelta) - Mappings:
Namespace Name Mixin selector named getBodyPitch
Lnet/minecraft/entity/passive/BeeEntity;getBodyPitch(F)F
intermediary method_21811
Lnet/minecraft/class_4466;method_21811(F)F
official J
Lchx;J(F)F
-
updateBodyPitch
private void updateBodyPitch()- Mappings:
Namespace Name Mixin selector named updateBodyPitch
Lnet/minecraft/entity/passive/BeeEntity;updateBodyPitch()V
intermediary method_21790
Lnet/minecraft/class_4466;method_21790()V
official gJ
Lchx;gJ()V
-
mobTick
- Overrides:
mobTick
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named mobTick
Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_5958
Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
official a
Lbwh;a(Lash;)V
-
resetPollinationTicks
public void resetPollinationTicks()- Mappings:
Namespace Name Mixin selector named resetPollinationTicks
Lnet/minecraft/entity/passive/BeeEntity;resetPollinationTicks()V
intermediary method_21780
Lnet/minecraft/class_4466;method_21780()V
official gp
Lchx;gp()V
-
isHiveNearFire
private boolean isHiveNearFire()- Mappings:
Namespace Name Mixin selector named isHiveNearFire
Lnet/minecraft/entity/passive/BeeEntity;isHiveNearFire()Z
intermediary method_23984
Lnet/minecraft/class_4466;method_23984()Z
official gK
Lchx;gK()Z
-
getAngerTime
public int getAngerTime()- Specified by:
getAngerTime
in interfaceAngerable
- Mappings:
Namespace Name Mixin selector named getAngerTime
Lnet/minecraft/entity/mob/Angerable;getAngerTime()I
intermediary method_29507
Lnet/minecraft/class_5354;method_29507()I
official a
Lbwk;a()I
-
setAngerTime
public void setAngerTime(int angerTime) - Specified by:
setAngerTime
in interfaceAngerable
- Mappings:
Namespace Name Mixin selector named setAngerTime
Lnet/minecraft/entity/mob/Angerable;setAngerTime(I)V
intermediary method_29514
Lnet/minecraft/class_5354;method_29514(I)V
official a
Lbwk;a(I)V
-
getAngryAt
- Specified by:
getAngryAt
in interfaceAngerable
- Mappings:
Namespace Name Mixin selector named getAngryAt
Lnet/minecraft/entity/mob/Angerable;getAngryAt()Ljava/util/UUID;
intermediary method_29508
Lnet/minecraft/class_5354;method_29508()Ljava/util/UUID;
official b
Lbwk;b()Ljava/util/UUID;
-
setAngryAt
- Specified by:
setAngryAt
in interfaceAngerable
- Mappings:
Namespace Name Mixin selector named setAngryAt
Lnet/minecraft/entity/mob/Angerable;setAngryAt(Ljava/util/UUID;)V
intermediary method_29513
Lnet/minecraft/class_5354;method_29513(Ljava/util/UUID;)V
official a
Lbwk;a(Ljava/util/UUID;)V
-
chooseRandomAngerTime
public void chooseRandomAngerTime()- Specified by:
chooseRandomAngerTime
in interfaceAngerable
- Mappings:
Namespace Name Mixin selector named chooseRandomAngerTime
Lnet/minecraft/entity/mob/Angerable;chooseRandomAngerTime()V
intermediary method_29509
Lnet/minecraft/class_5354;method_29509()V
official c
Lbwk;c()V
-
doesHiveHaveSpace
- Mappings:
Namespace Name Mixin selector named doesHiveHaveSpace
Lnet/minecraft/entity/passive/BeeEntity;doesHiveHaveSpace(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_23988
Lnet/minecraft/class_4466;method_23988(Lnet/minecraft/class_2338;)Z
official k
Lchx;k(Ljh;)Z
-
hasHivePos
public boolean hasHivePos()- Mappings:
Namespace Name Mixin selector named hasHivePos
Lnet/minecraft/entity/passive/BeeEntity;hasHivePos()Z
intermediary method_21791
Lnet/minecraft/class_4466;method_21791()Z
official gq
Lchx;gq()Z
-
getHivePos
- Mappings:
Namespace Name Mixin selector named getHivePos
Lnet/minecraft/entity/passive/BeeEntity;getHivePos()Lnet/minecraft/util/math/BlockPos;
intermediary method_23884
Lnet/minecraft/class_4466;method_23884()Lnet/minecraft/class_2338;
official gr
Lchx;gr()Ljh;
-
getGoalSelector
- Mappings:
Namespace Name Mixin selector named getGoalSelector
Lnet/minecraft/entity/passive/BeeEntity;getGoalSelector()Lnet/minecraft/entity/ai/goal/GoalSelector;
intermediary method_35163
Lnet/minecraft/class_4466;method_35163()Lnet/minecraft/class_1355;
official gs
Lchx;gs()Lcde;
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official Y
Lbwh;Y()V
-
getCropsGrownSincePollination
int getCropsGrownSincePollination()- Mappings:
Namespace Name Mixin selector named getCropsGrownSincePollination
Lnet/minecraft/entity/passive/BeeEntity;getCropsGrownSincePollination()I
intermediary method_21792
Lnet/minecraft/class_4466;method_21792()I
official gL
Lchx;gL()I
-
resetCropCounter
private void resetCropCounter()- Mappings:
Namespace Name Mixin selector named resetCropCounter
Lnet/minecraft/entity/passive/BeeEntity;resetCropCounter()V
intermediary method_21783
Lnet/minecraft/class_4466;method_21783()V
official gM
Lchx;gM()V
-
addCropCounter
void addCropCounter()- Mappings:
Namespace Name Mixin selector named addCropCounter
Lnet/minecraft/entity/passive/BeeEntity;addCropCounter()V
intermediary method_21793
Lnet/minecraft/class_4466;method_21793()V
official gN
Lchx;gN()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official d_
Lbwf;d_()V
-
getHive
- Mappings:
Namespace Name Mixin selector named getHive
Lnet/minecraft/entity/passive/BeeEntity;getHive()Lnet/minecraft/block/entity/BeehiveBlockEntity;
intermediary method_65073
Lnet/minecraft/class_4466;method_65073()Lnet/minecraft/class_4482;
official gO
Lchx;gO()Ldut;
-
hasValidHive
boolean hasValidHive()- Mappings:
Namespace Name Mixin selector named hasValidHive
Lnet/minecraft/entity/passive/BeeEntity;hasValidHive()Z
intermediary method_21794
Lnet/minecraft/class_4466;method_21794()Z
official gP
Lchx;gP()Z
-
hasNectar
public boolean hasNectar()- Mappings:
Namespace Name Mixin selector named hasNectar
Lnet/minecraft/entity/passive/BeeEntity;hasNectar()Z
intermediary method_21784
Lnet/minecraft/class_4466;method_21784()Z
official gA
Lchx;gA()Z
-
setHasNectar
void setHasNectar(boolean hasNectar) - Mappings:
Namespace Name Mixin selector named setHasNectar
Lnet/minecraft/entity/passive/BeeEntity;setHasNectar(Z)V
intermediary method_21805
Lnet/minecraft/class_4466;method_21805(Z)V
official x
Lchx;x(Z)V
-
hasStung
public boolean hasStung()- Mappings:
Namespace Name Mixin selector named hasStung
Lnet/minecraft/entity/passive/BeeEntity;hasStung()Z
intermediary method_21785
Lnet/minecraft/class_4466;method_21785()Z
official gB
Lchx;gB()Z
-
setHasStung
private void setHasStung(boolean hasStung) - Mappings:
Namespace Name Mixin selector named setHasStung
Lnet/minecraft/entity/passive/BeeEntity;setHasStung(Z)V
intermediary method_21806
Lnet/minecraft/class_4466;method_21806(Z)V
official y
Lchx;y(Z)V
-
isNearTarget
private boolean isNearTarget()- Mappings:
Namespace Name Mixin selector named isNearTarget
Lnet/minecraft/entity/passive/BeeEntity;isNearTarget()Z
intermediary method_21786
Lnet/minecraft/class_4466;method_21786()Z
official gQ
Lchx;gQ()Z
-
setNearTarget
private void setNearTarget(boolean nearTarget) - Mappings:
Namespace Name Mixin selector named setNearTarget
Lnet/minecraft/entity/passive/BeeEntity;setNearTarget(Z)V
intermediary method_21808
Lnet/minecraft/class_4466;method_21808(Z)V
official z
Lchx;z(Z)V
-
isTooFar
- Mappings:
Namespace Name Mixin selector named isTooFar
Lnet/minecraft/entity/passive/BeeEntity;isTooFar(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_23990
Lnet/minecraft/class_4466;method_23990(Lnet/minecraft/class_2338;)Z
official l
Lchx;l(Ljh;)Z
-
setBeeFlag
private void setBeeFlag(int bit, boolean value) - Mappings:
Namespace Name Mixin selector named setBeeFlag
Lnet/minecraft/entity/passive/BeeEntity;setBeeFlag(IZ)V
intermediary method_21775
Lnet/minecraft/class_4466;method_21775(IZ)V
official d
Lchx;d(IZ)V
-
getBeeFlag
private boolean getBeeFlag(int location) - Mappings:
Namespace Name Mixin selector named getBeeFlag
Lnet/minecraft/entity/passive/BeeEntity;getBeeFlag(I)Z
intermediary method_21812
Lnet/minecraft/class_4466;method_21812(I)Z
official t
Lchx;t(I)Z
-
createBeeAttributes
- Mappings:
Namespace Name Mixin selector named createBeeAttributes
Lnet/minecraft/entity/passive/BeeEntity;createBeeAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26880
Lnet/minecraft/class_4466;method_26880()Lnet/minecraft/class_5132$class_5133;
official gC
Lchx;gC()Lbxm$a;
-
isBreedingItem
- Specified by:
isBreedingItem
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named isBreedingItem
Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_6481
Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
official j
Lchw;j(Lcxo;)Z
-
playStepSound
- Overrides:
playStepSound
in classEntity
- Mappings:
Namespace Name Mixin selector named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official b
Lbvj;b(Ljh;Ldxu;)V
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official u
Lbwh;u()Laxe;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official e
Lbwf;e(Lbtz;)Laxe;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official o_
Lbwf;o_()Laxe;
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getSoundVolume
Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
intermediary method_6107
Lnet/minecraft/class_1309;method_6107()F
official fg
Lbwf;fg()F
-
createChild
@Nullable public @Nullable BeeEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/BeeEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/BeeEntity;
intermediary method_21771
Lnet/minecraft/class_4466;method_21771(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_4466;
official b
Lchx;b(Lash;Lbva;)Lchx;
-
fall
protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls. Flying mobs should override this to do nothing.- Overrides:
fall
in classLivingEntity
- Implementation Note:
- If on ground, this calls
Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float)
, which can add or reduce fall damage, emitsGameEvent.HIT_GROUND
, then callsEntity.onLanding()
. Otherwise, ifheightDifference
is negative, it subtracts that value fromEntity.fallDistance
. - Mappings:
Namespace Name Mixin selector named fall
Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_5623
Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
official a
Lbvj;a(DZLdxu;Ljh;)V
-
isFlappingWings
public boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
Entity.addFlapEffects()
insideEntity.addAirTravelEffects()
.- Overrides:
isFlappingWings
in classEntity
- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWings
Lnet/minecraft/entity/Entity;isFlappingWings()Z
intermediary method_5776
Lnet/minecraft/class_1297;method_5776()Z
official ba
Lbvj;ba()Z
-
isInAir
public boolean isInAir() -
onHoneyDelivered
public void onHoneyDelivered()- Mappings:
Namespace Name Mixin selector named onHoneyDelivered
Lnet/minecraft/entity/passive/BeeEntity;onHoneyDelivered()V
intermediary method_21788
Lnet/minecraft/class_4466;method_21788()V
official gE
Lchx;gE()V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntity
also have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity
, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)
and return early.- Overrides:
damage
in classLivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64397
Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
official a
Lbvj;a(Lash;Lbtz;F)Z
-
swimUpward
- Overrides:
swimUpward
in classMobEntity
- Mappings:
Namespace Name Mixin selector named swimUpward
Lnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
intermediary method_6010
Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)V
official c
Lbwf;c(Layk;)V
-
getLeashOffset
Returns the offset from the entity's position where the leash is attached to.This is different from
Entity.getLeashPos(float)
; this method is called on the entity which a leash is attached to.- Overrides:
getLeashOffset
in classEntity
- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
intermediary method_29919
Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
official cT
Lbvj;cT()Lfbx;
-
isWithinDistance
- Mappings:
Namespace Name Mixin selector named isWithinDistance
Lnet/minecraft/entity/passive/BeeEntity;isWithinDistance(Lnet/minecraft/util/math/BlockPos;I)Z
intermediary method_23979
Lnet/minecraft/class_4466;method_23979(Lnet/minecraft/class_2338;I)Z
official b
Lchx;b(Ljh;I)Z
-
setHivePos
- Mappings:
Namespace Name Mixin selector named setHivePos
Lnet/minecraft/entity/passive/BeeEntity;setHivePos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_57301
Lnet/minecraft/class_4466;method_57301(Lnet/minecraft/class_2338;)V
official i
Lchx;i(Ljh;)V
-