Class Ostrich

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.AgeableMob
net.minecraft.world.entity.animal.Animal
net.minecraft.world.entity.animal.horse.AbstractHorse
net.frozenblock.wilderwild.entity.Ostrich
All Implemented Interfaces:
net.minecraft.commands.CommandSource, net.minecraft.world.ContainerListener, net.minecraft.world.entity.Attackable, net.minecraft.world.entity.HasCustomInventoryScreen, net.minecraft.world.entity.OwnableEntity, net.minecraft.world.entity.PlayerRideable, net.minecraft.world.entity.PlayerRideableJumping, net.minecraft.world.entity.Saddleable, net.minecraft.world.entity.Targeting, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable

public class Ostrich extends net.minecraft.world.entity.animal.horse.AbstractHorse implements net.minecraft.world.entity.PlayerRideableJumping, net.minecraft.world.entity.Saddleable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob

    net.minecraft.world.entity.AgeableMob.AgeableMobGroupData

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
    static final net.minecraft.world.entity.ai.attributes.AttributeModifier
     
    static final float
     
    static final double
     
    static final double
     
    static final UUID
     
    boolean
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    boolean
     
    static final double
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Boolean>
     
    static final UUID
     
    static final float
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Float>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Float>
     
    static final net.minecraft.world.item.crafting.Ingredient
     

    Fields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse

    allowStandSliding, BREEDING_CROSS_FACTOR, canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, INV_SLOT_ARMOR, INV_SLOT_SADDLE, inventory, INVENTORY_SLOT_OFFSET, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper

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

    DEFAULT_WALK_TARGET_VALUE

    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, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward

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

    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, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, 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, walkAnimation, 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_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, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ostrich(net.minecraft.world.entity.EntityType<? extends Ostrich> entityType, net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actuallyHurt(@NotNull net.minecraft.world.damagesource.DamageSource damageSource, float damageAmount)
     
    void
    addAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound)
     
    net.minecraft.world.entity.ai.Brain.Provider<Ostrich>
     
    void
    cancelAttack(boolean successful)
     
    boolean
     
    boolean
    canGetHeadStuckInState(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
    boolean
     
    boolean
    canMate(@NotNull net.minecraft.world.entity.animal.Animal otherAnimal)
     
    boolean
     
    protected boolean
     
    boolean
     
    boolean
    canTargetEntity(@Nullable net.minecraft.world.entity.Entity entity)
     
    boolean
    causeFallDamage(float fallDistance, float multiplier, @NotNull net.minecraft.world.damagesource.DamageSource source)
     
    static boolean
    checkOstrichSpawnRules(net.minecraft.world.entity.EntityType<? extends Ostrich> ostrich, @NotNull net.minecraft.world.level.LevelAccessor level, net.minecraft.world.entity.MobSpawnType spawnType, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random)
     
    net.minecraft.world.phys.AABB
    createAttackBox(float tickDelta)
     
    static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder
     
    @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl
     
    void
     
    protected void
     
    boolean
    doHurtOnEntity(@Nullable net.minecraft.world.entity.Entity commander, @NotNull net.minecraft.world.entity.Entity entity)
     
    void
    doPlayerRide(net.minecraft.world.entity.player.Player player)
     
    void
     
    void
    executeRidersJump(float playerJumpPendingScale, @NotNull net.minecraft.world.phys.Vec3 travelVector)
     
    float
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    int
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    float
    getBeakAnimProgress(float delta)
     
    float
     
    net.minecraft.world.phys.BlockHitResult
    getBeakHitResult(boolean backwards)
     
    @NotNull net.minecraft.world.phys.Vec3
    getBeakPos(float tickDelta)
     
    @NotNull net.minecraft.world.level.block.state.BlockState
     
    @NotNull net.minecraft.world.entity.ai.Brain<Ostrich>
     
    @Nullable Ostrich
    getBreedOffspring(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.AgeableMob otherParent)
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    @NotNull List<net.minecraft.world.phys.Vec3>
    getDebugRenderingPoses(float tickDelta)
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    @Nullable net.minecraft.sounds.SoundEvent
    getHurtSound(@NotNull net.minecraft.world.damagesource.DamageSource damageSource)
     
    int
     
    @Nullable net.minecraft.world.entity.Entity
     
    @NotNull net.minecraft.world.phys.Vec3
     
    int
     
    double
    getMeleeAttackRangeSqr(@NotNull net.minecraft.world.entity.LivingEntity entity)
     
    double
     
    @NotNull net.minecraft.world.phys.Vec3
    getRiddenInput(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.phys.Vec3 travelVector)
     
    @NotNull net.minecraft.world.phys.Vec2
    getRiddenRotation(@NotNull net.minecraft.world.entity.LivingEntity entity)
     
    float
    getRiddenSpeed(@NotNull net.minecraft.world.entity.player.Player player)
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    protected float
    getStandingEyeHeight(@NotNull net.minecraft.world.entity.Pose pose, @NotNull net.minecraft.world.entity.EntityDimensions dimensions)
     
    float
     
    float
     
    boolean
    handleEating(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    handleStartJump(int jumpPower)
     
    void
     
    boolean
     
    boolean
    hurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
     
    boolean
    isBeakTouchingCollidingBlock(boolean canGetStuck)
     
    boolean
     
    boolean
     
    boolean
    isFood(@NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    @NotNull net.minecraft.world.entity.ai.Brain<Ostrich>
    makeBrain(@NotNull com.mojang.serialization.Dynamic<?> dynamic)
     
    @NotNull net.minecraft.world.InteractionResult
    mobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     
    float
     
    void
    onLeashDistance(float distance)
     
    void
    onPlayerJump(int jumpPower)
     
    void
    performAttack(float power, @Nullable net.minecraft.world.entity.Entity commander)
     
    void
    playStepSound(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    readAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound)
     
    boolean
     
    void
     
    boolean
    removeWhenFarAway(double distanceToClosestPlayer)
     
    boolean
     
    void
     
    void
     
    void
    setLastAttackCommander(@Nullable net.minecraft.world.entity.Entity entity)
     
    void
    setTargetBeakAnimProgress(float progress)
     
    void
    setTargetStraightProgress(float progress)
     
    void
    spawnBlockParticles(boolean beakBury, boolean backwards)
     
    void
    spawnChildFromBreeding(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.animal.Animal mate)
     
    void
    swing(@NotNull net.minecraft.world.InteractionHand hand, boolean updateSelf)
     
    void
     
    void
    tickRidden(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.phys.Vec3 travelVector)
     
    protected void
    updateWalkAnimation(float limbDistance)
     

    Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse

    addBehaviourGoals, aiStep, calculateFallDamage, canWearArmor, containerChanged, createBaseHorseAttributes, createInventory, dropEquipment, equipArmor, equipSaddle, fedFood, finalizeSpawn, followMommy, generateJumpStrength, generateMaxHealth, generateSpeed, getAmbientStandInterval, getAmbientStandSound, getControllingPassenger, getCustomJump, getDismountLocationForPassenger, getEatAnim, getFlag, getInventorySize, getMaxSpawnClusterSize, getMouthAnim, getOwnerUUID, getSlot, getSoundVolume, getStandAnim, getTemper, handleEntityEvent, hasInventoryChanged, isArmor, isBred, isEating, isJumping, isSaddleable, isSaddled, isStanding, isTamed, isWearingArmor, makeMad, modifyTemper, onClimbable, openCustomInventoryScreen, playGallopSound, playJumpSound, positionRider, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setOwnerUUID, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, tameWithName, updateContainerEquipment

    Methods inherited from class net.minecraft.world.entity.animal.Animal

    canFallInLove, checkAnimalSpawnRules, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, resetLove, setInLove, setInLoveTime, usePlayerItem

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

    ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBaby

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

    checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, shouldStayCloseToLeashHolder, tickLeash

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

    ate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, 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

    addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed

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

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, 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, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, onAboveBubbleCol, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, 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, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSound

    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.minecraft.world.entity.OwnableEntity

    getOwner, level

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

    equipSaddle, isSaddleable, isSaddled
  • Field Details

    • TEMPTATION_ITEM

      public static final net.minecraft.world.item.crafting.Ingredient TEMPTATION_ITEM
    • ATTACK_MODIFIER_UUID

      public static final UUID ATTACK_MODIFIER_UUID
    • KNOCKBACK_MODIFIER_UUID

      public static final UUID KNOCKBACK_MODIFIER_UUID
    • BEAK_COOLDOWN_TICKS

      public static final int BEAK_COOLDOWN_TICKS
      See Also:
    • BEAK_COOLDOWN_TICKS_SUCCESSFUL_HIT

      public static final int BEAK_COOLDOWN_TICKS_SUCCESSFUL_HIT
      See Also:
    • BEAK_STUCK_TICKS

      public static final int BEAK_STUCK_TICKS
      See Also:
    • BEAK_STUCK_TICKS_AGGRESSIVE

      public static final int BEAK_STUCK_TICKS_AGGRESSIVE
      See Also:
    • MAX_ATTACK_DAMAGE

      public static final float MAX_ATTACK_DAMAGE
      See Also:
    • ADDITIONAL_DAMAGE_RIDER

      public static final float ADDITIONAL_DAMAGE_RIDER
      See Also:
    • ADDITIONAL_KNOCKBACK_RIDER

      public static final float ADDITIONAL_KNOCKBACK_RIDER
      See Also:
    • ATTACK_BOX_WIDTH

      public static final double ATTACK_BOX_WIDTH
      See Also:
    • ATTACK_BOX_HEIGHT

      public static final double ATTACK_BOX_HEIGHT
      See Also:
    • DIMENSION_PERCENTAGE_AT_NECK

      public static final double DIMENSION_PERCENTAGE_AT_NECK
      See Also:
    • ADDITIONAL_DAMAGE_RIDER_MODIFIER

      public static final net.minecraft.world.entity.ai.attributes.AttributeModifier ADDITIONAL_DAMAGE_RIDER_MODIFIER
    • TARGET_BEAK_ANIM_PROGRESS

      public static final net.minecraft.network.syncher.EntityDataAccessor<Float> TARGET_BEAK_ANIM_PROGRESS
    • TARGET_STRAIGHT_PROGRESS

      public static final net.minecraft.network.syncher.EntityDataAccessor<Float> TARGET_STRAIGHT_PROGRESS
    • IS_ATTACKING

      public static final net.minecraft.network.syncher.EntityDataAccessor<Boolean> IS_ATTACKING
    • BEAK_COOLDOWN

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> BEAK_COOLDOWN
    • STUCK_TICKS

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> STUCK_TICKS
    • attackHasCommander

      public boolean attackHasCommander
    • commanderWasPlayer

      public boolean commanderWasPlayer
  • Constructor Details

    • Ostrich

      public Ostrich(net.minecraft.world.entity.EntityType<? extends Ostrich> entityType, net.minecraft.world.level.Level level)
  • Method Details

    • createAttributes

      @NotNull public static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder createAttributes()
    • checkOstrichSpawnRules

      public static boolean checkOstrichSpawnRules(net.minecraft.world.entity.EntityType<? extends Ostrich> ostrich, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, net.minecraft.world.entity.MobSpawnType spawnType, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random)
    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • registerGoals

      public void registerGoals()
      Overrides:
      registerGoals in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • brainProvider

      @NotNull public net.minecraft.world.entity.ai.Brain.Provider<Ostrich> brainProvider()
      Overrides:
      brainProvider in class net.minecraft.world.entity.LivingEntity
    • getBrain

      @NotNull public @NotNull net.minecraft.world.entity.ai.Brain<Ostrich> getBrain()
      Overrides:
      getBrain in class net.minecraft.world.entity.LivingEntity
    • makeBrain

      @NotNull public @NotNull net.minecraft.world.entity.ai.Brain<Ostrich> makeBrain(@NotNull @NotNull com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      makeBrain in class net.minecraft.world.entity.LivingEntity
    • updateWalkAnimation

      protected void updateWalkAnimation(float limbDistance)
      Overrides:
      updateWalkAnimation in class net.minecraft.world.entity.LivingEntity
    • customServerAiStep

      public void customServerAiStep()
      Overrides:
      customServerAiStep in class net.minecraft.world.entity.animal.Animal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • createAttackBox

      public net.minecraft.world.phys.AABB createAttackBox(float tickDelta)
    • doHurtOnEntity

      public boolean doHurtOnEntity(@Nullable @Nullable net.minecraft.world.entity.Entity commander, @NotNull @NotNull net.minecraft.world.entity.Entity entity)
    • swing

      public void swing(@NotNull @NotNull net.minecraft.world.InteractionHand hand, boolean updateSelf)
      Overrides:
      swing in class net.minecraft.world.entity.LivingEntity
    • cancelAttack

      public void cancelAttack(boolean successful)
    • emergeBeak

      public void emergeBeak()
    • getLastAttackCommander

      @Nullable public @Nullable net.minecraft.world.entity.Entity getLastAttackCommander()
    • setLastAttackCommander

      public void setLastAttackCommander(@Nullable @Nullable net.minecraft.world.entity.Entity entity)
    • getMeleeAttackRangeSqr

      public double getMeleeAttackRangeSqr(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity)
      Overrides:
      getMeleeAttackRangeSqr in class net.minecraft.world.entity.Mob
    • isImmobile

      public boolean isImmobile()
      Overrides:
      isImmobile in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getWaterSlowDown

      public float getWaterSlowDown()
      Overrides:
      getWaterSlowDown in class net.minecraft.world.entity.LivingEntity
    • canSprint

      public boolean canSprint()
      Overrides:
      canSprint in class net.minecraft.world.entity.Entity
    • tickRidden

      public void tickRidden(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.phys.Vec3 travelVector)
      Overrides:
      tickRidden in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • executeRidersJump

      public void executeRidersJump(float playerJumpPendingScale, @NotNull @NotNull net.minecraft.world.phys.Vec3 travelVector)
      Overrides:
      executeRidersJump in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • handleStartJump

      public void handleStartJump(int jumpPower)
      Specified by:
      handleStartJump in interface net.minecraft.world.entity.PlayerRideableJumping
      Overrides:
      handleStartJump in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • performAttack

      public void performAttack(float power, @Nullable @Nullable net.minecraft.world.entity.Entity commander)
    • handleStopJump

      public void handleStopJump()
      Specified by:
      handleStopJump in interface net.minecraft.world.entity.PlayerRideableJumping
      Overrides:
      handleStopJump in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getJumpCooldown

      public int getJumpCooldown()
      Specified by:
      getJumpCooldown in interface net.minecraft.world.entity.PlayerRideableJumping
    • refuseToMove

      public boolean refuseToMove()
    • isStuck

      public boolean isStuck()
    • getRiddenSpeed

      public float getRiddenSpeed(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Overrides:
      getRiddenSpeed in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getAdditionalSpeed

      public float getAdditionalSpeed()
    • getRiddenRotation

      @NotNull public @NotNull net.minecraft.world.phys.Vec2 getRiddenRotation(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity)
      Overrides:
      getRiddenRotation in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getRiddenInput

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getRiddenInput(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.phys.Vec3 travelVector)
      Overrides:
      getRiddenInput in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canJump

      public boolean canJump()
      Specified by:
      canJump in interface net.minecraft.world.entity.PlayerRideableJumping
      Overrides:
      canJump in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • onPlayerJump

      public void onPlayerJump(int jumpPower)
      Specified by:
      onPlayerJump in interface net.minecraft.world.entity.PlayerRideableJumping
      Overrides:
      onPlayerJump in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • isPushable

      public boolean isPushable()
      Overrides:
      isPushable in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • isPushedByFluid

      public boolean isPushedByFluid()
      Overrides:
      isPushedByFluid in class net.minecraft.world.entity.Entity
    • isFood

      public boolean isFood(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      isFood in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • onLeashDistance

      public void onLeashDistance(float distance)
      Overrides:
      onLeashDistance in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • mobInteract

      @NotNull public @NotNull net.minecraft.world.InteractionResult mobInteract(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand)
      Overrides:
      mobInteract in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • doPlayerRide

      public void doPlayerRide(net.minecraft.world.entity.player.Player player)
      Overrides:
      doPlayerRide in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • handleEating

      public boolean handleEating(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      handleEating in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canTargetEntity

      @Contract("null->false") public boolean canTargetEntity(@Nullable @Nullable net.minecraft.world.entity.Entity entity)
    • causeFallDamage

      public boolean causeFallDamage(float fallDistance, float multiplier, @NotNull @NotNull net.minecraft.world.damagesource.DamageSource source)
      Overrides:
      causeFallDamage in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • hurt

      public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getDebugRenderingPoses

      @NotNull public @NotNull List<net.minecraft.world.phys.Vec3> getDebugRenderingPoses(float tickDelta)
    • getBeakPos

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getBeakPos(float tickDelta)
    • getBeakState

      @NotNull public @NotNull net.minecraft.world.level.block.state.BlockState getBeakState()
    • canGetHeadStuckInState

      public boolean canGetHeadStuckInState(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
    • isBeakTouchingFluid

      public boolean isBeakTouchingFluid()
    • isBeakTouchingCollidingBlock

      public boolean isBeakTouchingCollidingBlock(boolean canGetStuck)
    • isEyeTouchingFluid

      public boolean isEyeTouchingFluid()
    • getMaxTemper

      public int getMaxTemper()
      Overrides:
      getMaxTemper in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canPerformRearing

      protected boolean canPerformRearing()
      Overrides:
      canPerformRearing in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canEatGrass

      public boolean canEatGrass()
      Overrides:
      canEatGrass in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canMate

      public boolean canMate(@NotNull @NotNull net.minecraft.world.entity.animal.Animal otherAnimal)
      Overrides:
      canMate in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • canParent

      public boolean canParent()
      Overrides:
      canParent in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • hasAttackTarget

      public boolean hasAttackTarget()
    • spawnChildFromBreeding

      public void spawnChildFromBreeding(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.animal.Animal mate)
      Overrides:
      spawnChildFromBreeding in class net.minecraft.world.entity.animal.Animal
    • isPregnant

      public boolean isPregnant()
    • revokePregnancy

      public void revokePregnancy()
    • getBreedOffspring

      @Nullable public @Nullable Ostrich getBreedOffspring(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.AgeableMob otherParent)
      Overrides:
      getBreedOffspring in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • actuallyHurt

      public void actuallyHurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource, float damageAmount)
      Overrides:
      actuallyHurt in class net.minecraft.world.entity.LivingEntity
    • getLeashOffset

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getLeashOffset()
      Overrides:
      getLeashOffset in class net.minecraft.world.entity.Entity
    • sendDebugPackets

      public void sendDebugPackets()
      Overrides:
      sendDebugPackets in class net.minecraft.world.entity.Mob
    • createBodyControl

      @NotNull public @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl createBodyControl()
      Overrides:
      createBodyControl in class net.minecraft.world.entity.Mob
    • getBeakEaseAmount

      public float getBeakEaseAmount()
    • setTargetBeakAnimProgress

      public void setTargetBeakAnimProgress(float progress)
    • getBeakAnimProgress

      public float getBeakAnimProgress(float delta)
    • setTargetStraightProgress

      public void setTargetStraightProgress(float progress)
    • getTargetStraightProgress

      public float getTargetStraightProgress(float delta)
    • getEatingSound

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getEatingSound()
      Overrides:
      getEatingSound in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getSaddleSoundEvent

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getSaddleSoundEvent()
      Specified by:
      getSaddleSoundEvent in interface net.minecraft.world.entity.Saddleable
    • getAngrySound

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getAngrySound()
      Overrides:
      getAngrySound in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getAmbientSoundInterval

      public int getAmbientSoundInterval()
      Overrides:
      getAmbientSoundInterval in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getAmbientSound

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

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getHurtSound(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource)
      Overrides:
      getHurtSound in class net.minecraft.world.entity.LivingEntity
    • getDeathSound

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class net.minecraft.world.entity.LivingEntity
    • nextStep

      public float nextStep()
      Overrides:
      nextStep in class net.minecraft.world.entity.Entity
    • playStepSound

      public void playStepSound(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      playStepSound in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • getPassengersRidingOffset

      public double getPassengersRidingOffset()
      Overrides:
      getPassengersRidingOffset in class net.minecraft.world.entity.Entity
    • getStandingEyeHeight

      protected float getStandingEyeHeight(@NotNull @NotNull net.minecraft.world.entity.Pose pose, @NotNull @NotNull net.minecraft.world.entity.EntityDimensions dimensions)
      Overrides:
      getStandingEyeHeight in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • requiresCustomPersistence

      public boolean requiresCustomPersistence()
      Overrides:
      requiresCustomPersistence in class net.minecraft.world.entity.Mob
    • removeWhenFarAway

      public boolean removeWhenFarAway(double distanceToClosestPlayer)
      Overrides:
      removeWhenFarAway in class net.minecraft.world.entity.animal.Animal
    • isInbred

      public boolean isInbred()
    • spawnBlockParticles

      public void spawnBlockParticles(boolean beakBury, boolean backwards)
    • getBeakHitResult

      public net.minecraft.world.phys.BlockHitResult getBeakHitResult(boolean backwards)
    • addAdditionalSaveData

      public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.animal.horse.AbstractHorse
    • readAdditionalSaveData

      public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.animal.horse.AbstractHorse