Class AbstractFlyingBookEntity
java.lang.Object
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.monster.Monster
johnsmith.enchantingoverhauled.entity.AbstractFlyingBookEntity
- All Implemented Interfaces:
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget,net.minecraft.core.component.DataComponentGetter,net.minecraft.network.syncher.SyncedDataHolder,net.minecraft.util.debug.DebugValueSource,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.EquipmentUser,net.minecraft.world.entity.ItemOwner,net.minecraft.world.entity.Leashable,net.minecraft.world.entity.monster.Enemy,net.minecraft.world.entity.SlotProvider,net.minecraft.world.entity.Targeting,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.level.entity.UniquelyIdentifyable,net.minecraft.world.Nameable,net.minecraft.world.scores.ScoreHolder,net.minecraft.world.waypoints.Waypoint,net.minecraft.world.waypoints.WaypointTransmitter
- Direct Known Subclasses:
EnchantedBookEntity,EnchantedTomeEntity
public abstract class AbstractFlyingBookEntity
extends net.minecraft.world.entity.monster.Monster
Base class for flying arcane book entities (
EnchantedTomeEntity and EnchantedBookEntity).
Optimized to bound 3D A* node evaluation via setMaxVisitedNodesMultiplier(0.25F)
and guard altar-vigil player lookups so they only run when the entity is in BookAnimationState.ALTAR_VIGIL.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.LivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReasonNested classes/interfaces inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget.OnAttachedSet<A>Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T>Nested classes/interfaces inherited from interface net.minecraft.world.entity.ItemOwner
net.minecraft.world.entity.ItemOwner.OffsetFromOwnerNested classes/interfaces inherited from interface net.minecraft.world.entity.Leashable
net.minecraft.world.entity.Leashable.LeashData, net.minecraft.world.entity.Leashable.WrenchNested classes/interfaces inherited from interface net.minecraft.world.waypoints.Waypoint
net.minecraft.world.waypoints.Waypoint.IconNested classes/interfaces inherited from interface net.minecraft.world.waypoints.WaypointTransmitter
net.minecraft.world.waypoints.WaypointTransmitter.BlockConnection, net.minecraft.world.waypoints.WaypointTransmitter.ChunkConnection, net.minecraft.world.waypoints.WaypointTransmitter.Connection, net.minecraft.world.waypoints.WaypointTransmitter.EntityAzimuthConnection, net.minecraft.world.waypoints.WaypointTransmitter.EntityBlockConnection, net.minecraft.world.waypoints.WaypointTransmitter.EntityChunkConnection -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloatfloatfloatfloatintfloatfloatfloatorg.joml.Quaternionforg.joml.QuaternionffloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatFields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, goalSelector, jumpControl, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, RANDOM_SPAWN_BONUS_ID, TAG_CAN_PICK_UP_LOOT, TAG_DROP_CHANCES, TAG_LEFT_HANDED, TAG_NO_AI, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, WEARING_ARMOR_UPGRADE_MATERIAL_ATTEMPTS, WEARING_ARMOR_UPGRADE_MATERIAL_CHANCE, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, DEFAULT_KNOCKBACK, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, INVULNERABLE_DURATION, itemSwapTicker, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerMemoryTime, lerpHeadSteps, lerpYHeadRot, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, recentKineticEnemies, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, TAG_ATTRIBUTES, TAG_BRAIN, TAG_DEATH_TIME, TAG_EQUIPMENT, TAG_FALL_FLYING, TAG_HEALTH, TAG_HURT_BY_TIMESTAMP, TAG_HURT_TIME, TAG_SLEEPING_POS, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, FREEZE_HURT_FREQUENCY, horizontalCollision, hurtMarked, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, needsSync, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_CUSTOM_NAME, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
NBT_ATTACHMENT_KEYFields inherited from interface net.minecraft.world.entity.monster.Enemy
XP_REWARD_BOSS, XP_REWARD_HUGE, XP_REWARD_LARGE, XP_REWARD_MEDIUM, XP_REWARD_NONE, XP_REWARD_SMALLFields inherited from interface net.minecraft.world.entity.Leashable
AXIS_SPECIFIC_ELASTICITY, ENTITY_ATTACHMENT_POINT, LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST, LEASHER_ATTACHMENT_POINT, MAXIMUM_ALLOWED_LEASHED_DIST, SHARED_QUAD_ATTACHMENT_POINTS, SPRING_DAMPENING, STIFFNESS, TORSIONAL_ELASTICITYFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoints.Waypoint
MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIERFields inherited from interface net.minecraft.world.waypoints.WaypointTransmitter
REALLY_FAR_DISTANCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFlyingBookEntity(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.monster.Monster> entityType, net.minecraft.world.level.Level level) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(net.minecraft.world.level.storage.ValueOutput output) voidattachSpellField(johnsmith.enchantmentcore.api.enchantment.spellfield.SpellFieldComponent spellField, AiSpellField.AnchorPayload anchorData, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity owner) booleancanAttack(@NotNull net.minecraft.world.entity.LivingEntity target) booleancanBeAffected(net.minecraft.world.effect.MobEffectInstance effectInstance) booleanbooleancauseFallDamage(double distance, float multiplier, net.minecraft.world.damagesource.DamageSource source) protected voidcheckFallDamage(double y, boolean onGround, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos) booleanconsidersEntityAsAlly(@NotNull net.minecraft.world.entity.Entity entity) booleanprotected abstract net.minecraft.world.item.ItemStackcreateInitialBookStack(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey, net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) protected net.minecraft.world.entity.ai.navigation.PathNavigationcreateNavigation(net.minecraft.world.level.Level level) net.minecraft.world.item.ItemStackcreateShedPageStack(net.minecraft.server.level.ServerLevel level) protected voiddefineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) protected voiddropCustomDeathLoot(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource damageSource, boolean hitByPlayer) void@Nullable net.minecraft.world.entity.SpawnGroupDatafinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor level, net.minecraft.world.DifficultyInstance difficulty, net.minecraft.world.entity.EntitySpawnReason entitySpawnReason, @Nullable net.minecraft.world.entity.SpawnGroupData spawnGroupData) intprotected @Nullable net.minecraft.sounds.SoundEventintint@Nullable UUIDnet.minecraft.world.item.ItemStackintnet.minecraft.world.item.ItemStackprotected abstract intintOptional<net.minecraft.resources.ResourceKey<MagicSchool>> net.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3intprotected net.minecraft.sounds.SoundEventintprotected abstract net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> protected net.minecraft.sounds.SoundEventgetHurtSound(net.minecraft.world.damagesource.DamageSource damageSource) protected floatint@NotNull net.minecraft.network.chat.ComponentgetName()@Nullable net.minecraft.core.BlockPosintnet.minecraft.resources.ResourceKey<MagicSchool> intprotected floatgetTheme()intnet.minecraft.resources.ResourceKey<EnchantmentTheme> floatbooleanhurtServer(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, float amount) voidinitializeBookIdentityAndStack(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) voidinitializeWithThemeAndSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey, @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) booleanisAngry()booleanisAngryAt(net.minecraft.world.entity.LivingEntity entity) booleanisAvoidCollateralEntity(@Nullable net.minecraft.world.entity.Entity entity) booleanisBookAlly(@Nullable net.minecraft.world.entity.Entity entity) booleanbooleanbooleanisNeutralEntity(@Nullable net.minecraft.world.entity.Entity entity) booleanisPlayerPacified(net.minecraft.world.entity.player.Player player) static booleanisPlayerWearingEnchantedArmor(net.minecraft.world.entity.player.Player player) booleanabstract booleanisValidNPCTarget(net.minecraft.world.entity.LivingEntity entity) abstract booleanisValidPlayerTarget(net.minecraft.world.entity.LivingEntity entity) booleanprotected @NotNull net.minecraft.world.InteractionResultmobInteract(net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) voidvoidprovoke(@Nullable net.minecraft.world.entity.LivingEntity attacker, int angerTicks) protected voidreadAdditionalSaveData(net.minecraft.world.level.storage.ValueInput input) static net.minecraft.resources.ResourceKey<MagicSchool> rollPreferredCycleSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable net.minecraft.resources.ResourceKey<MagicSchool> referenceSchool) static net.minecraft.resources.ResourceKey<EnchantmentTheme> rollPreferredTheme(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> preferredTheme) static net.minecraft.resources.ResourceKey<MagicSchool> rollRandomSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) static net.minecraft.resources.ResourceKey<EnchantmentTheme> rollRandomTheme(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) voidsetAngerTime(int ticks) voidsetAngryAt(@Nullable UUID uuid) voidvoidsetBarterCatalyst(net.minecraft.world.item.ItemStack stack) voidsetBarterCooldown(int ticks) voidsetBarterFuel(net.minecraft.world.item.ItemStack stack) voidsetCastSchoolKey(@Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) voidsetHurtDashCooldown(int ticks) voidsetRoostPos(@Nullable net.minecraft.core.BlockPos pos) voidsetSchoolKey(@Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) voidsetTarget(@Nullable net.minecraft.world.entity.LivingEntity target) voidsetThemeKey(@Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey) voidtick()Methods inherited from class net.minecraft.world.entity.monster.Monster
aiStep, checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, checkSurfaceMonstersSpawnRules, createMonsterAttributes, getFallSounds, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDropExperience, shouldDropLoot, updateNoActionTimeMethods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, whenLeashedToMethods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canDispenserEquipIntoSlot, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canShearEquipment, canUseNonMeleeWeapon, chargeSpeedModifier, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearHome, convertTo, convertTo, createBodyControl, createEquipmentSlotContainer, createMobAttributes, customServerAiStep, doHurtTarget, dropFromLootTable, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getAttackBoundingBox, getBaseExperienceReward, getBodyArmorItem, getControllingPassenger, getDropChances, getEquipmentForSlot, getHeadRotSpeed, getHomePosition, getHomeRadius, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getPreferredWeaponType, getSensing, getTarget, getTargetFromBrain, handleEntityEvent, hasHome, interact, isAggressive, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSaddled, isWearingBodyArmor, isWithinHome, isWithinHome, isWithinHome, isWithinMeleeAttackRange, jumpInLiquid, leashTooFarBehaviour, lookAt, onAttributeUpdated, onLeashRemoved, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerDebugValues, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, removeWhenFarAway, requiresCustomPersistence, serverAiStep, setAggressive, setBaby, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setHomeTo, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, sunProtectionSlot, tickHeadTurn, updateControlFlags, usePlayerItem, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, animateHurt, applyInput, applyItemBlocking, areAllEffectsAmbient, asLivingEntity, attackable, blockedByItem, blockUsingItem, brainProvider, calculateEntityAnimation, calculateFallDamage, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canEquipWithDispenser, canGlide, canGlideUsing, canStandOnFluid, canUsePortal, canUseSlot, causeExtraKnockback, checkAutoSpinAttack, clearSleepingPos, completeUsingItem, createEquipment, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doPush, drop, dropAllDeathLoot, dropEquipment, dropExperience, dropFromEntityInteractLootTable, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, entityAttackRange, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getActiveItem, getAgeScale, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultDimensions, getDefaultGravity, getDimensions, getDismountPoses, getEffect, getEffectBlendFactor, getEffectiveGravity, getEquipmentSlotForItem, getEquipSound, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getInterpolation, getItemBlockingWith, getItemBySlot, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayer, getLastHurtByPlayerMemoryTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLuck, getMainHandItem, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSlot, getSpeed, getStingerCount, getSwimAmount, getTicksSinceLastKineticHitFeedback, getTicksUsingItem, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, hurtArmor, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isJumping, isLookingAtMe, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lookAt, lungeForwardMaybe, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, maxUpStep, onAttack, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onRemoval, onSyncedDataUpdated, playAttackSound, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, rememberStabbedEntity, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldShowName, shouldTakeDrowningDamage, shouldTravelInFluid, skipDropExperience, spawnItemParticles, stabAttack, stabbedEntities, startSleeping, startUsingItem, stopFallFlying, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, travelFlying, travelFlying, travelInWater, triggerOnDeathMobEffects, tryAddFrost, updateDataBeforeSync, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, wasExperienceConsumed, wasRecentlyStabbed, waypointIcon, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canInteractWithLevel, canRide, canSimulateMovement, canSpawnSprintParticle, canSprint, canTeleport, castComponentValue, checkBelowWorld, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collectAllColliders, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, computeSpeed, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, dropAllLeashConnections, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getAvailableSpaceBelow, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGravity, getHandHoldingItemAngle, getHeadLookAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getKnownSpeed, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasMovedHorizontallyRecently, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interactAt, is, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isClientAuthoritative, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInLava, isInLiquid, isInShallowWater, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrRain, isLocalClientAuthoritative, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lavaIgnite, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAboveBubbleColumn, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onPassengerTurned, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, problemPath, processFlappingMovement, processPortalCooldown, propagateFallToPassengers, push, push, reapplyPosition, refreshDimensions, registryAccess, removeLatestMovementRecording, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shearOffAllLeashConnections, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, snapTo, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportSetPosition, teleportSpectators, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, onAttachedSet, removeAttached, setAttachedMethods inherited from interface net.minecraft.core.component.DataComponentGetter
getOrDefault, getTypedMethods inherited from interface net.minecraft.world.entity.EquipmentUser
equip, equip, equip, getItemBySlot, resolveSlot, setItemSlotMethods inherited from interface net.minecraft.world.entity.Leashable
canHaveALeashAttachedTo, checkElasticInteractions, dropLeash, getLeashHolder, getLeashOffset, getLeashOffset, getQuadLeashOffsets, isLeashed, leashDistanceTo, leashElasticDistance, leashSnapDistance, mayBeLeashed, onElasticLeashPull, readLeashData, removeLeash, setDelayedLeashHolderId, setLeashedTo, supportQuadLeash, writeLeashDataMethods inherited from interface net.minecraft.world.Nameable
getPlainTextNameMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayNameMethods inherited from interface net.minecraft.world.entity.SlotProvider
getSlotsFromRange
-
Field Details
-
animX
public float animX -
animXO
public float animXO -
animY
public float animY -
animYO
public float animYO -
animZ
public float animZ -
animZO
public float animZO -
animOpenness
public float animOpenness -
animOpennessO
public float animOpennessO -
flutterPhase
public float flutterPhase -
pageFlip
public float pageFlip -
oPageFlip
public float oPageFlip -
pageFlipT
public float pageFlipT -
pageFlipA
public float pageFlipA -
altarTime
public int altarTime -
altarFlip
public float altarFlip -
altarOFlip
public float altarOFlip -
altarFlipT
public float altarFlipT -
altarFlipA
public float altarFlipA -
altarOpen
public float altarOpen -
altarOOpen
public float altarOOpen -
altarRot
public float altarRot -
altarORot
public float altarORot -
altarTRot
public float altarTRot -
animRotation
public org.joml.Quaternionf animRotation -
animRotationO
public org.joml.Quaternionf animRotationO
-
-
Constructor Details
-
AbstractFlyingBookEntity
protected AbstractFlyingBookEntity(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.monster.Monster> entityType, net.minecraft.world.level.Level level)
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) - Overrides:
defineSynchedDatain classnet.minecraft.world.entity.Mob
-
getMaxHeadXRot
public int getMaxHeadXRot()- Overrides:
getMaxHeadXRotin classnet.minecraft.world.entity.Mob
-
getAnimationState
-
setAnimationState
-
isRoosting
public boolean isRoosting() -
getServerStateTicks
public int getServerStateTicks() -
getClientStateTicks
public int getClientStateTicks() -
getRoostPos
@Nullable public @Nullable net.minecraft.core.BlockPos getRoostPos() -
setRoostPos
public void setRoostPos(@Nullable @Nullable net.minecraft.core.BlockPos pos) -
getThemeKey
-
setThemeKey
public void setThemeKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey) -
getSchoolKey
-
setSchoolKey
public void setSchoolKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) -
getCastSchoolKey
-
setCastSchoolKey
public void setCastSchoolKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) -
getTheme
-
getSchool
-
getSchoolColor
public int getSchoolColor() -
getCastSchoolColor
public int getCastSchoolColor() -
getActiveParticleColor
public int getActiveParticleColor() -
getThemeColor
public int getThemeColor() -
getBarterFuel
public net.minecraft.world.item.ItemStack getBarterFuel() -
setBarterFuel
public void setBarterFuel(net.minecraft.world.item.ItemStack stack) -
getBarterCatalyst
public net.minecraft.world.item.ItemStack getBarterCatalyst() -
setBarterCatalyst
public void setBarterCatalyst(net.minecraft.world.item.ItemStack stack) -
getBarterCooldown
public int getBarterCooldown() -
setBarterCooldown
public void setBarterCooldown(int ticks) -
attachSpellField
public void attachSpellField(johnsmith.enchantmentcore.api.enchantment.spellfield.SpellFieldComponent spellField, AiSpellField.AnchorPayload anchorData, net.minecraft.world.item.ItemStack weapon, @Nullable @Nullable net.minecraft.world.entity.LivingEntity owner) -
ejectBarterItems
public void ejectBarterItems() -
mobInteract
@NotNull protected @NotNull net.minecraft.world.InteractionResult mobInteract(net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand) - Overrides:
mobInteractin classnet.minecraft.world.entity.Mob
-
getAngerTime
public int getAngerTime() -
setAngerTime
public void setAngerTime(int ticks) -
getAngryAt
-
setAngryAt
-
isAngry
public boolean isAngry() -
isAngryAt
public boolean isAngryAt(net.minecraft.world.entity.LivingEntity entity) -
isPlayerWearingEnchantedArmor
public static boolean isPlayerWearingEnchantedArmor(net.minecraft.world.entity.player.Player player) -
isPlayerPacified
public boolean isPlayerPacified(net.minecraft.world.entity.player.Player player) -
isBookAlly
public boolean isBookAlly(@Nullable @Nullable net.minecraft.world.entity.Entity entity) -
isAvoidCollateralEntity
public boolean isAvoidCollateralEntity(@Nullable @Nullable net.minecraft.world.entity.Entity entity) -
isNeutralEntity
public boolean isNeutralEntity(@Nullable @Nullable net.minecraft.world.entity.Entity entity) -
considersEntityAsAlly
public boolean considersEntityAsAlly(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
considersEntityAsAllyin classnet.minecraft.world.entity.Entity
-
isValidNPCTarget
public abstract boolean isValidNPCTarget(net.minecraft.world.entity.LivingEntity entity) -
isValidPlayerTarget
public abstract boolean isValidPlayerTarget(net.minecraft.world.entity.LivingEntity entity) -
provoke
public void provoke(@Nullable @Nullable net.minecraft.world.entity.LivingEntity attacker, int angerTicks) -
isCoverClosed
public boolean isCoverClosed() -
isWideOpen
public boolean isWideOpen() -
isInitialized
public boolean isInitialized() -
getHurtDashCooldown
public int getHurtDashCooldown() -
setHurtDashCooldown
public void setHurtDashCooldown(int ticks) -
consumePendingHurtDash
public boolean consumePendingHurtDash() -
getMainHandDropChance
protected float getMainHandDropChance() -
finalizeSpawn
@Nullable public @Nullable net.minecraft.world.entity.SpawnGroupData finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor level, net.minecraft.world.DifficultyInstance difficulty, net.minecraft.world.entity.EntitySpawnReason entitySpawnReason, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData spawnGroupData) - Overrides:
finalizeSpawnin classnet.minecraft.world.entity.Mob
-
initializeWithThemeAndSchool
public void initializeWithThemeAndSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey, @Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) -
initializeBookIdentityAndStack
public void initializeBookIdentityAndStack(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) -
rollRandomTheme
public static net.minecraft.resources.ResourceKey<EnchantmentTheme> rollRandomTheme(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) -
rollPreferredTheme
public static net.minecraft.resources.ResourceKey<EnchantmentTheme> rollPreferredTheme(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> preferredTheme) -
rollRandomSchool
public static net.minecraft.resources.ResourceKey<MagicSchool> rollRandomSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random) -
rollPreferredCycleSchool
public static net.minecraft.resources.ResourceKey<MagicSchool> rollPreferredCycleSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> referenceSchool) -
createInitialBookStack
protected abstract net.minecraft.world.item.ItemStack createInitialBookStack(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey, net.minecraft.resources.ResourceKey<MagicSchool> schoolKey) -
getName
@NotNull public @NotNull net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable- Overrides:
getNamein classnet.minecraft.world.entity.Entity
-
addAdditionalSaveData
protected void addAdditionalSaveData(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
readAdditionalSaveData
protected void readAdditionalSaveData(net.minecraft.world.level.storage.ValueInput input) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
hurtServer
public boolean hurtServer(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtServerin classnet.minecraft.world.entity.LivingEntity
-
createShedPageStack
public net.minecraft.world.item.ItemStack createShedPageStack(net.minecraft.server.level.ServerLevel level) -
dropCustomDeathLoot
protected void dropCustomDeathLoot(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource damageSource, boolean hitByPlayer) - Overrides:
dropCustomDeathLootin classnet.minecraft.world.entity.Mob
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.Mob
-
getChantingDirection
public net.minecraft.world.phys.Vec3 getChantingDirection() -
getChantingFocalPoint
public net.minecraft.world.phys.Vec3 getChantingFocalPoint() -
canBeAffected
public boolean canBeAffected(net.minecraft.world.effect.MobEffectInstance effectInstance) - Overrides:
canBeAffectedin classnet.minecraft.world.entity.LivingEntity
-
canFreeze
public boolean canFreeze()- Overrides:
canFreezein classnet.minecraft.world.entity.LivingEntity
-
causeFallDamage
public boolean causeFallDamage(double distance, float multiplier, net.minecraft.world.damagesource.DamageSource source) - Overrides:
causeFallDamagein classnet.minecraft.world.entity.LivingEntity
-
checkFallDamage
protected void checkFallDamage(double y, boolean onGround, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos) - Overrides:
checkFallDamagein classnet.minecraft.world.entity.LivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval()- Overrides:
getAmbientSoundIntervalin classnet.minecraft.world.entity.Mob
-
playAmbientSound
public void playAmbientSound()- Overrides:
playAmbientSoundin classnet.minecraft.world.entity.Mob
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolumein classnet.minecraft.world.entity.LivingEntity
-
getVoicePitch
public float getVoicePitch()- Overrides:
getVoicePitchin classnet.minecraft.world.entity.LivingEntity
-
getAmbientSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
getHurtSound
protected net.minecraft.sounds.SoundEvent getHurtSound(net.minecraft.world.damagesource.DamageSource damageSource) - Overrides:
getHurtSoundin classnet.minecraft.world.entity.monster.Monster
-
getDeathSound
protected net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSoundin classnet.minecraft.world.entity.monster.Monster
-
canAttack
public boolean canAttack(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target) - Overrides:
canAttackin classnet.minecraft.world.entity.LivingEntity
-
setTarget
public void setTarget(@Nullable @Nullable net.minecraft.world.entity.LivingEntity target) - Overrides:
setTargetin classnet.minecraft.world.entity.Mob
-
getHurtLootTable
protected abstract net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> getHurtLootTable() -
getBaseDeathPageCount
protected abstract int getBaseDeathPageCount()
-