Class Bee
- All Implemented Interfaces:
CommandSource
,FlyingAnimal
,NeutralMob
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) static class
(package private) class
class
class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
AgeableMob.AgeableMobGroupData
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescription(package private) Bee.BeePollinateGoal
private static int
private static int
private static EntityDataAccessor<Byte>
private static EntityDataAccessor<Integer>
private static int
private static int
private static int
static float
(package private) Bee.BeeGoToHiveGoal
private Bee.BeeGoToKnownFlowerGoal
private static int
private static int
(package private) BlockPos
private static int
private static int
private int
private static int
private static UniformInt
private UUID
private static int
private static int
(package private) int
(package private) int
private float
private float
(package private) BlockPos
private int
private static int
static String
static String
static String
static String
static String
static String
static String
private static int
static int
private static int
(package private) int
private int
private static int
private int
Fields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDING
Fields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, targetSelector, xpReward
Fields inherited from class net.minecraft.world.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, fluidOnEyes, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, LOGGER, MAX_ENTITY_TAG_COUNT, maxUpStep, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
Fields inherited from interface net.minecraft.world.entity.NeutralMob
TAG_ANGER_TIME, TAG_ANGRY_AT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData(CompoundTag p_27823_)
void
aiStep()
boolean
causeFallDamage(float p_148750_, float p_148751_, DamageSource p_148752_)
protected void
checkFallDamage(double p_27754_, boolean p_27755_, BlockState p_27756_, BlockPos p_27757_)
(package private) boolean
closerThan(BlockPos p_27817_, int p_27818_)
static AttributeSupplier.Builder
protected PathNavigation
createNavigation(Level p_27815_)
protected void
protected void
private boolean
doesHiveHaveSpace(BlockPos p_27885_)
boolean
doHurtTarget(Entity p_27722_)
void
protected SoundEvent
getBreedOffspring(ServerLevel p_148760_, AgeableMob p_148761_)
(package private) int
protected SoundEvent
private boolean
getFlag(int p_27922_)
protected SoundEvent
getHurtSound(DamageSource p_27845_)
int
float
getRollAmount(float p_27936_)
protected float
protected float
getStandingEyeHeight(Pose p_27804_, EntityDimensions p_27805_)
int
float
getWalkTargetValue(BlockPos p_27788_, LevelReader p_27789_)
boolean
hasHive()
boolean
boolean
boolean
hasStung()
boolean
hurt(DamageSource p_27762_, float p_27763_)
(package private) void
boolean
(package private) boolean
isFlowerValid(BlockPos p_27897_)
boolean
isFlying()
boolean
private boolean
(package private) boolean
private boolean
private boolean
(package private) boolean
isTooFarAway(BlockPos p_27890_)
protected void
jumpInLiquid(Tag<Fluid> p_27825_)
(package private) void
pathfindRandomlyTowards(BlockPos p_27881_)
protected void
playStepSound(BlockPos p_27820_, BlockState p_27821_)
void
readAdditionalSaveData(CompoundTag p_27793_)
protected void
private void
void
protected void
private void
setFlag(int p_27833_, boolean p_27834_)
(package private) void
setHasNectar(boolean p_27920_)
private void
setHasStung(boolean p_27926_)
void
setPersistentAngerTarget(UUID p_27791_)
void
setRemainingPersistentAngerTime(int p_27795_)
private void
setRolling(boolean p_27930_)
void
setSavedFlowerPos(BlockPos p_27877_)
void
setStayOutOfHiveCountdown(int p_27916_)
private void
spawnFluidParticle(Level p_27780_, double p_27781_, double p_27782_, double p_27783_, double p_27784_, double p_27785_, ParticleOptions p_27786_)
void
void
tick()
private void
(package private) boolean
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, canMate, checkAnimalSpawnRules, getAmbientSoundInterval, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, handleEntityEvent, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
Methods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, finalizeSpawn, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createLootContext, createMobAttributes, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinRestriction, isWithinRestriction, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeFreeWill, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
Methods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipEventAndSound, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSlot, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, eyeBlockPosition, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGameEventListenerRegistrar, getId, getIndirectPassengers, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isFullyFrozen, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, occludesVibrations, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, refreshDimensions, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
Methods inherited from interface net.minecraft.world.entity.NeutralMob
addPersistentAngerSaveData, canAttack, forgetCurrentTargetAndRefreshUniversalAnger, getLastHurtByMob, getTarget, isAngry, isAngryAt, isAngryAtAllPlayers, playerDied, readPersistentAngerSaveData, setLastHurtByMob, setLastHurtByPlayer, setTarget, stopBeingAngry, updatePersistentAnger
-
Field Details
-
FLAP_DEGREES_PER_TICK
public static final float FLAP_DEGREES_PER_TICK- See Also:
- Constant Field Values
-
TICKS_PER_FLAP
public static final int TICKS_PER_FLAP -
DATA_FLAGS_ID
-
DATA_REMAINING_ANGER_TIME
-
FLAG_ROLL
private static final int FLAG_ROLL- See Also:
- Constant Field Values
-
FLAG_HAS_STUNG
private static final int FLAG_HAS_STUNG- See Also:
- Constant Field Values
-
FLAG_HAS_NECTAR
private static final int FLAG_HAS_NECTAR- See Also:
- Constant Field Values
-
STING_DEATH_COUNTDOWN
private static final int STING_DEATH_COUNTDOWN- See Also:
- Constant Field Values
-
TICKS_BEFORE_GOING_TO_KNOWN_FLOWER
private static final int TICKS_BEFORE_GOING_TO_KNOWN_FLOWER- See Also:
- Constant Field Values
-
TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME
private static final int TICKS_WITHOUT_NECTAR_BEFORE_GOING_HOME- See Also:
- Constant Field Values
-
MIN_ATTACK_DIST
private static final int MIN_ATTACK_DIST- See Also:
- Constant Field Values
-
MAX_CROPS_GROWABLE
private static final int MAX_CROPS_GROWABLE- See Also:
- Constant Field Values
-
POISON_SECONDS_NORMAL
private static final int POISON_SECONDS_NORMAL- See Also:
- Constant Field Values
-
POISON_SECONDS_HARD
private static final int POISON_SECONDS_HARD- See Also:
- Constant Field Values
-
TOO_FAR_DISTANCE
private static final int TOO_FAR_DISTANCE- See Also:
- Constant Field Values
-
HIVE_CLOSE_ENOUGH_DISTANCE
private static final int HIVE_CLOSE_ENOUGH_DISTANCE- See Also:
- Constant Field Values
-
PATHFIND_TO_HIVE_WHEN_CLOSER_THAN
private static final int PATHFIND_TO_HIVE_WHEN_CLOSER_THAN- See Also:
- Constant Field Values
-
HIVE_SEARCH_DISTANCE
private static final int HIVE_SEARCH_DISTANCE- See Also:
- Constant Field Values
-
TAG_CROPS_GROWN_SINCE_POLLINATION
- See Also:
- Constant Field Values
-
TAG_CANNOT_ENTER_HIVE_TICKS
- See Also:
- Constant Field Values
-
TAG_TICKS_SINCE_POLLINATION
- See Also:
- Constant Field Values
-
TAG_HAS_STUNG
- See Also:
- Constant Field Values
-
TAG_HAS_NECTAR
- See Also:
- Constant Field Values
-
TAG_FLOWER_POS
- See Also:
- Constant Field Values
-
TAG_HIVE_POS
- See Also:
- Constant Field Values
-
PERSISTENT_ANGER_TIME
-
persistentAngerTarget
-
rollAmount
private float rollAmount -
rollAmountO
private float rollAmountO -
timeSinceSting
private int timeSinceSting -
ticksWithoutNectarSinceExitingHive
int ticksWithoutNectarSinceExitingHive -
stayOutOfHiveCountdown
private int stayOutOfHiveCountdown -
numCropsGrownSincePollination
private int numCropsGrownSincePollination -
COOLDOWN_BEFORE_LOCATING_NEW_HIVE
private static final int COOLDOWN_BEFORE_LOCATING_NEW_HIVE- See Also:
- Constant Field Values
-
remainingCooldownBeforeLocatingNewHive
int remainingCooldownBeforeLocatingNewHive -
COOLDOWN_BEFORE_LOCATING_NEW_FLOWER
private static final int COOLDOWN_BEFORE_LOCATING_NEW_FLOWER- See Also:
- Constant Field Values
-
remainingCooldownBeforeLocatingNewFlower
int remainingCooldownBeforeLocatingNewFlower -
savedFlowerPos
-
hivePos
-
beePollinateGoal
Bee.BeePollinateGoal beePollinateGoal -
goToHiveGoal
Bee.BeeGoToHiveGoal goToHiveGoal -
goToKnownFlowerGoal
-
underWaterTicks
private int underWaterTicks
-
-
Constructor Details
-
Bee
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAgeableMob
-
getWalkTargetValue
- Overrides:
getWalkTargetValue
in classAnimal
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classMob
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAnimal
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classAnimal
-
doHurtTarget
- Overrides:
doHurtTarget
in classMob
-
tick
public void tick() -
spawnFluidParticle
private void spawnFluidParticle(Level p_27780_, double p_27781_, double p_27782_, double p_27783_, double p_27784_, double p_27785_, ParticleOptions p_27786_) -
pathfindRandomlyTowards
-
getSavedFlowerPos
-
hasSavedFlowerPos
public boolean hasSavedFlowerPos() -
setSavedFlowerPos
-
getTravellingTicks
public int getTravellingTicks() -
getBlacklistedHives
-
isTiredOfLookingForNectar
private boolean isTiredOfLookingForNectar() -
wantsToEnterHive
boolean wantsToEnterHive() -
setStayOutOfHiveCountdown
public void setStayOutOfHiveCountdown(int p_27916_) -
getRollAmount
public float getRollAmount(float p_27936_) -
updateRollAmount
private void updateRollAmount() -
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStep
in classAnimal
-
resetTicksWithoutNectarSinceExitingHive
public void resetTicksWithoutNectarSinceExitingHive() -
isHiveNearFire
private boolean isHiveNearFire() -
getRemainingPersistentAngerTime
public int getRemainingPersistentAngerTime()- Specified by:
getRemainingPersistentAngerTime
in interfaceNeutralMob
-
setRemainingPersistentAngerTime
public void setRemainingPersistentAngerTime(int p_27795_)- Specified by:
setRemainingPersistentAngerTime
in interfaceNeutralMob
-
getPersistentAngerTarget
- Specified by:
getPersistentAngerTarget
in interfaceNeutralMob
-
setPersistentAngerTarget
- Specified by:
setPersistentAngerTarget
in interfaceNeutralMob
-
startPersistentAngerTimer
public void startPersistentAngerTimer()- Specified by:
startPersistentAngerTimer
in interfaceNeutralMob
-
doesHiveHaveSpace
-
hasHive
public boolean hasHive() -
getHivePos
-
getGoalSelector
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPackets
in classMob
-
getCropsGrownSincePollination
int getCropsGrownSincePollination() -
resetNumCropsGrownSincePollination
private void resetNumCropsGrownSincePollination() -
incrementNumCropsGrownSincePollination
void incrementNumCropsGrownSincePollination() -
aiStep
public void aiStep() -
isHiveValid
boolean isHiveValid() -
hasNectar
public boolean hasNectar() -
setHasNectar
void setHasNectar(boolean p_27920_) -
hasStung
public boolean hasStung() -
setHasStung
private void setHasStung(boolean p_27926_) -
isRolling
private boolean isRolling() -
setRolling
private void setRolling(boolean p_27930_) -
isTooFarAway
-
setFlag
private void setFlag(int p_27833_, boolean p_27834_) -
getFlag
private boolean getFlag(int p_27922_) -
createAttributes
-
isFood
-
isFlowerValid
-
playStepSound
- Overrides:
playStepSound
in classEntity
-
getAmbientSound
- Overrides:
getAmbientSound
in classMob
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
-
getBreedOffspring
- Specified by:
getBreedOffspring
in classAgeableMob
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
causeFallDamage
- Overrides:
causeFallDamage
in classLivingEntity
-
checkFallDamage
protected void checkFallDamage(double p_27754_, boolean p_27755_, BlockState p_27756_, BlockPos p_27757_)- Overrides:
checkFallDamage
in classLivingEntity
-
isFlapping
public boolean isFlapping()- Overrides:
isFlapping
in classEntity
-
isFlying
public boolean isFlying()- Specified by:
isFlying
in interfaceFlyingAnimal
-
dropOffNectar
public void dropOffNectar() -
hurt
-
getMobType
- Overrides:
getMobType
in classLivingEntity
-
jumpInLiquid
- Overrides:
jumpInLiquid
in classMob
-
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
-
closerThan
-