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.Fallsounds

    Nested 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.RemovalReason

    Nested 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.OffsetFromOwner

    Nested classes/interfaces inherited from interface net.minecraft.world.entity.Leashable

    net.minecraft.world.entity.Leashable.LeashData, net.minecraft.world.entity.Leashable.Wrench

    Nested classes/interfaces inherited from interface net.minecraft.world.waypoints.Waypoint

    net.minecraft.world.waypoints.Waypoint.Icon

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    int
     
    float
     
    float
     
    float
     
    org.joml.Quaternionf
     
    org.joml.Quaternionf
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     

    Fields inherited from class net.minecraft.world.entity.PathfinderMob

    DEFAULT_WALK_TARGET_VALUE

    Fields 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, xpReward

    Fields 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, zza

    Fields 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, zOld

    Fields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    NBT_ATTACHMENT_KEY

    Fields 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_SMALL

    Fields 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_ELASTICITY

    Fields inherited from interface net.minecraft.world.scores.ScoreHolder

    WILDCARD, WILDCARD_NAME

    Fields inherited from interface net.minecraft.world.waypoints.Waypoint

    MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIER

    Fields inherited from interface net.minecraft.world.waypoints.WaypointTransmitter

    REALLY_FAR_DISTANCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractFlyingBookEntity(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.monster.Monster> entityType, net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addAdditionalSaveData(net.minecraft.world.level.storage.ValueOutput output)
     
    void
    attachSpellField(johnsmith.enchantmentcore.api.enchantment.spellfield.SpellFieldComponent spellField, AiSpellField.AnchorPayload anchorData, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity owner)
     
    boolean
    canAttack(@NotNull net.minecraft.world.entity.LivingEntity target)
     
    boolean
    canBeAffected(net.minecraft.world.effect.MobEffectInstance effectInstance)
     
    boolean
     
    boolean
    causeFallDamage(double distance, float multiplier, net.minecraft.world.damagesource.DamageSource source)
     
    protected void
    checkFallDamage(double y, boolean onGround, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
     
    boolean
    considersEntityAsAlly(@NotNull net.minecraft.world.entity.Entity entity)
     
    boolean
     
    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)
     
    protected net.minecraft.world.entity.ai.navigation.PathNavigation
    createNavigation(net.minecraft.world.level.Level level)
     
    net.minecraft.world.item.ItemStack
    createShedPageStack(net.minecraft.server.level.ServerLevel level)
     
    protected void
    defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder)
     
    protected void
    dropCustomDeathLoot(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource damageSource, boolean hitByPlayer)
     
    void
     
    @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 net.minecraft.world.entity.SpawnGroupData spawnGroupData)
     
    int
     
    protected @Nullable net.minecraft.sounds.SoundEvent
     
    int
     
    int
     
    @Nullable UUID
     
     
    net.minecraft.world.item.ItemStack
     
    int
     
    net.minecraft.world.item.ItemStack
     
    protected abstract int
     
    int
     
    Optional<net.minecraft.resources.ResourceKey<MagicSchool>>
     
    net.minecraft.world.phys.Vec3
     
    net.minecraft.world.phys.Vec3
     
    int
     
    protected net.minecraft.sounds.SoundEvent
     
    int
     
    protected abstract net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>
     
    protected net.minecraft.sounds.SoundEvent
    getHurtSound(net.minecraft.world.damagesource.DamageSource damageSource)
     
    protected float
     
    int
     
    @NotNull net.minecraft.network.chat.Component
     
    @Nullable net.minecraft.core.BlockPos
     
     
    int
     
    net.minecraft.resources.ResourceKey<MagicSchool>
     
    int
     
    protected float
     
     
    int
     
    net.minecraft.resources.ResourceKey<EnchantmentTheme>
     
    float
     
    boolean
    hurtServer(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, float amount)
     
    void
    initializeBookIdentityAndStack(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random)
     
    void
    initializeWithThemeAndSchool(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.util.RandomSource random, @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey, @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey)
     
    boolean
     
    boolean
    isAngryAt(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    isAvoidCollateralEntity(@Nullable net.minecraft.world.entity.Entity entity)
     
    boolean
    isBookAlly(@Nullable net.minecraft.world.entity.Entity entity)
     
    boolean
     
    boolean
     
    boolean
    isNeutralEntity(@Nullable net.minecraft.world.entity.Entity entity)
     
    boolean
    isPlayerPacified(net.minecraft.world.entity.player.Player player)
     
    static boolean
    isPlayerWearingEnchantedArmor(net.minecraft.world.entity.player.Player player)
     
    boolean
     
    abstract boolean
    isValidNPCTarget(net.minecraft.world.entity.LivingEntity entity)
     
    abstract boolean
    isValidPlayerTarget(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
     
    protected @NotNull net.minecraft.world.InteractionResult
    mobInteract(net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     
    void
     
    void
    provoke(@Nullable net.minecraft.world.entity.LivingEntity attacker, int angerTicks)
     
    protected void
    readAdditionalSaveData(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)
     
    void
    setAngerTime(int ticks)
     
    void
    setAngryAt(@Nullable UUID uuid)
     
    void
     
    void
    setBarterCatalyst(net.minecraft.world.item.ItemStack stack)
     
    void
    setBarterCooldown(int ticks)
     
    void
    setBarterFuel(net.minecraft.world.item.ItemStack stack)
     
    void
    setCastSchoolKey(@Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey)
     
    void
     
    void
    setRoostPos(@Nullable net.minecraft.core.BlockPos pos)
     
    void
    setSchoolKey(@Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey)
     
    void
    setTarget(@Nullable net.minecraft.world.entity.LivingEntity target)
     
    void
    setThemeKey(@Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey)
     
    void
     

    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, updateNoActionTime

    Methods inherited from class net.minecraft.world.entity.PathfinderMob

    checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, whenLeashedTo

    Methods 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, wantsToPickUp

    Methods 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, wouldNotSuffocateAtTargetPose

    Methods 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, waterSwimSound

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, onAttachedSet, removeAttached, setAttached

    Methods inherited from interface net.minecraft.core.component.DataComponentGetter

    getOrDefault, getTyped

    Methods inherited from interface net.minecraft.world.entity.EquipmentUser

    equip, equip, equip, getItemBySlot, resolveSlot, setItemSlot

    Methods 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, writeLeashData

    Methods inherited from interface net.minecraft.world.Nameable

    getPlainTextName

    Methods inherited from interface net.minecraft.world.scores.ScoreHolder

    getFeedbackDisplayName

    Methods 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:
      defineSynchedData in class net.minecraft.world.entity.Mob
    • getMaxHeadXRot

      public int getMaxHeadXRot()
      Overrides:
      getMaxHeadXRot in class net.minecraft.world.entity.Mob
    • getAnimationState

      public BookAnimationState getAnimationState()
    • setAnimationState

      public void setAnimationState(BookAnimationState state)
    • 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

      public net.minecraft.resources.ResourceKey<EnchantmentTheme> getThemeKey()
    • setThemeKey

      public void setThemeKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<EnchantmentTheme> themeKey)
    • getSchoolKey

      public net.minecraft.resources.ResourceKey<MagicSchool> getSchoolKey()
    • setSchoolKey

      public void setSchoolKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey)
    • getCastSchoolKey

      public Optional<net.minecraft.resources.ResourceKey<MagicSchool>> getCastSchoolKey()
    • setCastSchoolKey

      public void setCastSchoolKey(@Nullable @Nullable net.minecraft.resources.ResourceKey<MagicSchool> schoolKey)
    • getTheme

      public Optional<EnchantmentTheme> getTheme()
    • getSchool

      public MagicSchool 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:
      mobInteract in class net.minecraft.world.entity.Mob
    • getAngerTime

      public int getAngerTime()
    • setAngerTime

      public void setAngerTime(int ticks)
    • getAngryAt

      @Nullable public @Nullable UUID getAngryAt()
    • setAngryAt

      public void setAngryAt(@Nullable @Nullable UUID uuid)
    • 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:
      considersEntityAsAlly in class net.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:
      finalizeSpawn in class net.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:
      getName in interface net.minecraft.world.Nameable
      Overrides:
      getName in class net.minecraft.world.entity.Entity
    • createNavigation

      protected net.minecraft.world.entity.ai.navigation.PathNavigation createNavigation(net.minecraft.world.level.Level level)
      Overrides:
      createNavigation in class net.minecraft.world.entity.Mob
    • addAdditionalSaveData

      protected void addAdditionalSaveData(net.minecraft.world.level.storage.ValueOutput output)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.Mob
    • readAdditionalSaveData

      protected void readAdditionalSaveData(net.minecraft.world.level.storage.ValueInput input)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.Mob
    • hurtServer

      public boolean hurtServer(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurtServer in class net.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:
      dropCustomDeathLoot in class net.minecraft.world.entity.Mob
    • tick

      public void tick()
      Overrides:
      tick in class net.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:
      canBeAffected in class net.minecraft.world.entity.LivingEntity
    • canFreeze

      public boolean canFreeze()
      Overrides:
      canFreeze in class net.minecraft.world.entity.LivingEntity
    • causeFallDamage

      public boolean causeFallDamage(double distance, float multiplier, net.minecraft.world.damagesource.DamageSource source)
      Overrides:
      causeFallDamage in class net.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:
      checkFallDamage in class net.minecraft.world.entity.LivingEntity
    • getAmbientSoundInterval

      public int getAmbientSoundInterval()
      Overrides:
      getAmbientSoundInterval in class net.minecraft.world.entity.Mob
    • playAmbientSound

      public void playAmbientSound()
      Overrides:
      playAmbientSound in class net.minecraft.world.entity.Mob
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class net.minecraft.world.entity.LivingEntity
    • getVoicePitch

      public float getVoicePitch()
      Overrides:
      getVoicePitch in class net.minecraft.world.entity.LivingEntity
    • getAmbientSound

      @Nullable protected @Nullable net.minecraft.sounds.SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class net.minecraft.world.entity.Mob
    • getHurtSound

      protected net.minecraft.sounds.SoundEvent getHurtSound(net.minecraft.world.damagesource.DamageSource damageSource)
      Overrides:
      getHurtSound in class net.minecraft.world.entity.monster.Monster
    • getDeathSound

      protected net.minecraft.sounds.SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class net.minecraft.world.entity.monster.Monster
    • canAttack

      public boolean canAttack(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target)
      Overrides:
      canAttack in class net.minecraft.world.entity.LivingEntity
    • setTarget

      public void setTarget(@Nullable @Nullable net.minecraft.world.entity.LivingEntity target)
      Overrides:
      setTarget in class net.minecraft.world.entity.Mob
    • getHurtLootTable

      protected abstract net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> getHurtLootTable()
    • getBaseDeathPageCount

      protected abstract int getBaseDeathPageCount()