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.AgeableMobGroupDataNested 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.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final net.minecraft.world.entity.ai.attributes.AttributeModifierstatic final floatstatic final doublestatic final doublestatic final UUIDbooleanstatic final net.minecraft.network.syncher.EntityDataAccessor<Integer> static final intstatic final intstatic final intstatic final intbooleanstatic final doublestatic final net.minecraft.network.syncher.EntityDataAccessor<Boolean> static final UUIDstatic final floatstatic 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.IngredientFields 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, temperFields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDINGFields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimerFields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields 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, xpRewardFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactuallyHurt(@NotNull net.minecraft.world.damagesource.DamageSource damageSource, float damageAmount) voidaddAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) net.minecraft.world.entity.ai.Brain.Provider<Ostrich> voidcancelAttack(boolean successful) booleanbooleancanGetHeadStuckInState(@NotNull net.minecraft.world.level.block.state.BlockState blockState) booleancanJump()booleancanMate(@NotNull net.minecraft.world.entity.animal.Animal otherAnimal) booleanprotected booleanbooleanbooleancanTargetEntity(@Nullable net.minecraft.world.entity.Entity entity) booleancauseFallDamage(float fallDistance, float multiplier, @NotNull net.minecraft.world.damagesource.DamageSource source) static booleancheckOstrichSpawnRules(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.AABBcreateAttackBox(float tickDelta) static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder@NotNull net.minecraft.world.entity.ai.control.BodyRotationControlvoidprotected voidbooleandoHurtOnEntity(@Nullable net.minecraft.world.entity.Entity commander, @NotNull net.minecraft.world.entity.Entity entity) voiddoPlayerRide(net.minecraft.world.entity.player.Player player) voidvoidexecuteRidersJump(float playerJumpPendingScale, @NotNull net.minecraft.world.phys.Vec3 travelVector) float@Nullable net.minecraft.sounds.SoundEventint@Nullable net.minecraft.sounds.SoundEventfloatgetBeakAnimProgress(float delta) floatnet.minecraft.world.phys.BlockHitResultgetBeakHitResult(boolean backwards) @NotNull net.minecraft.world.phys.Vec3getBeakPos(float tickDelta) @NotNull net.minecraft.world.level.block.state.BlockState@NotNull net.minecraft.world.entity.ai.Brain<Ostrich> getBrain()@Nullable OstrichgetBreedOffspring(@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.SoundEventgetHurtSound(@NotNull net.minecraft.world.damagesource.DamageSource damageSource) int@Nullable net.minecraft.world.entity.Entity@NotNull net.minecraft.world.phys.Vec3intdoublegetMeleeAttackRangeSqr(@NotNull net.minecraft.world.entity.LivingEntity entity) double@NotNull net.minecraft.world.phys.Vec3getRiddenInput(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.phys.Vec3 travelVector) @NotNull net.minecraft.world.phys.Vec2getRiddenRotation(@NotNull net.minecraft.world.entity.LivingEntity entity) floatgetRiddenSpeed(@NotNull net.minecraft.world.entity.player.Player player) @NotNull net.minecraft.sounds.SoundEventprotected floatgetStandingEyeHeight(@NotNull net.minecraft.world.entity.Pose pose, @NotNull net.minecraft.world.entity.EntityDimensions dimensions) floatgetTargetStraightProgress(float delta) floatbooleanhandleEating(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack stack) voidhandleStartJump(int jumpPower) voidbooleanbooleanhurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount) booleanisBeakTouchingCollidingBlock(boolean canGetStuck) booleanbooleanbooleanisFood(@NotNull net.minecraft.world.item.ItemStack stack) booleanbooleanisInbred()booleanbooleanbooleanbooleanisStuck()@NotNull net.minecraft.world.entity.ai.Brain<Ostrich> makeBrain(@NotNull com.mojang.serialization.Dynamic<?> dynamic) @NotNull net.minecraft.world.InteractionResultmobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) floatnextStep()voidonLeashDistance(float distance) voidonPlayerJump(int jumpPower) voidperformAttack(float power, @Nullable net.minecraft.world.entity.Entity commander) voidplayStepSound(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) voidreadAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) booleanvoidbooleanremoveWhenFarAway(double distanceToClosestPlayer) booleanvoidvoidvoidsetLastAttackCommander(@Nullable net.minecraft.world.entity.Entity entity) voidsetTargetBeakAnimProgress(float progress) voidsetTargetStraightProgress(float progress) voidspawnBlockParticles(boolean beakBury, boolean backwards) voidspawnChildFromBreeding(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.animal.Animal mate) voidswing(@NotNull net.minecraft.world.InteractionHand hand, boolean updateSelf) voidtick()voidtickRidden(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.phys.Vec3 travelVector) protected voidupdateWalkAnimation(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, updateContainerEquipmentMethods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, resetLove, setInLove, setInLoveTime, usePlayerItemMethods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBabyMethods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, shouldStayCloseToLeashHolder, tickLeashMethods 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, wantsToPickUpMethods 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, wasExperienceConsumedMethods 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, waterSwimSoundMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraft.world.entity.OwnableEntity
getOwner, levelMethods 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
-
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
-
BEAK_COOLDOWN
-
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:
defineSynchedDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
registerGoals
public void registerGoals()- Overrides:
registerGoalsin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
brainProvider
- Overrides:
brainProviderin classnet.minecraft.world.entity.LivingEntity
-
getBrain
- Overrides:
getBrainin classnet.minecraft.world.entity.LivingEntity
-
makeBrain
@NotNull public @NotNull net.minecraft.world.entity.ai.Brain<Ostrich> makeBrain(@NotNull @NotNull com.mojang.serialization.Dynamic<?> dynamic) - Overrides:
makeBrainin classnet.minecraft.world.entity.LivingEntity
-
updateWalkAnimation
protected void updateWalkAnimation(float limbDistance) - Overrides:
updateWalkAnimationin classnet.minecraft.world.entity.LivingEntity
-
customServerAiStep
public void customServerAiStep()- Overrides:
customServerAiStepin classnet.minecraft.world.entity.animal.Animal
-
tick
public void tick()- Overrides:
tickin classnet.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:
swingin classnet.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:
getMeleeAttackRangeSqrin classnet.minecraft.world.entity.Mob
-
isImmobile
public boolean isImmobile()- Overrides:
isImmobilein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getWaterSlowDown
public float getWaterSlowDown()- Overrides:
getWaterSlowDownin classnet.minecraft.world.entity.LivingEntity
-
canSprint
public boolean canSprint()- Overrides:
canSprintin classnet.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:
tickRiddenin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
executeRidersJump
public void executeRidersJump(float playerJumpPendingScale, @NotNull @NotNull net.minecraft.world.phys.Vec3 travelVector) - Overrides:
executeRidersJumpin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
handleStartJump
public void handleStartJump(int jumpPower) - Specified by:
handleStartJumpin interfacenet.minecraft.world.entity.PlayerRideableJumping- Overrides:
handleStartJumpin classnet.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:
handleStopJumpin interfacenet.minecraft.world.entity.PlayerRideableJumping- Overrides:
handleStopJumpin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getJumpCooldown
public int getJumpCooldown()- Specified by:
getJumpCooldownin interfacenet.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:
getRiddenSpeedin classnet.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:
getRiddenRotationin classnet.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:
getRiddenInputin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canJump
public boolean canJump()- Specified by:
canJumpin interfacenet.minecraft.world.entity.PlayerRideableJumping- Overrides:
canJumpin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
onPlayerJump
public void onPlayerJump(int jumpPower) - Specified by:
onPlayerJumpin interfacenet.minecraft.world.entity.PlayerRideableJumping- Overrides:
onPlayerJumpin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isPushedByFluid
public boolean isPushedByFluid()- Overrides:
isPushedByFluidin classnet.minecraft.world.entity.Entity
-
isFood
public boolean isFood(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
isFoodin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
onLeashDistance
public void onLeashDistance(float distance) - Overrides:
onLeashDistancein classnet.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:
mobInteractin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
doPlayerRide
public void doPlayerRide(net.minecraft.world.entity.player.Player player) - Overrides:
doPlayerRidein classnet.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:
handleEatingin classnet.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:
causeFallDamagein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
hurt
public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classnet.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:
getMaxTemperin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canPerformRearing
protected boolean canPerformRearing()- Overrides:
canPerformRearingin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canEatGrass
public boolean canEatGrass()- Overrides:
canEatGrassin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canMate
public boolean canMate(@NotNull @NotNull net.minecraft.world.entity.animal.Animal otherAnimal) - Overrides:
canMatein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canParent
public boolean canParent()- Overrides:
canParentin classnet.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:
spawnChildFromBreedingin classnet.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:
getBreedOffspringin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
actuallyHurt
public void actuallyHurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource, float damageAmount) - Overrides:
actuallyHurtin classnet.minecraft.world.entity.LivingEntity
-
getLeashOffset
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getLeashOffset()- Overrides:
getLeashOffsetin classnet.minecraft.world.entity.Entity
-
sendDebugPackets
public void sendDebugPackets()- Overrides:
sendDebugPacketsin classnet.minecraft.world.entity.Mob
-
createBodyControl
@NotNull public @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl createBodyControl()- Overrides:
createBodyControlin classnet.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:
getEatingSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getSaddleSoundEvent
@NotNull public @NotNull net.minecraft.sounds.SoundEvent getSaddleSoundEvent()- Specified by:
getSaddleSoundEventin interfacenet.minecraft.world.entity.Saddleable
-
getAngrySound
@Nullable public @Nullable net.minecraft.sounds.SoundEvent getAngrySound()- Overrides:
getAngrySoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAmbientSoundInterval
public int getAmbientSoundInterval()- Overrides:
getAmbientSoundIntervalin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAmbientSound
@Nullable public @Nullable net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
getHurtSound
@Nullable public @Nullable net.minecraft.sounds.SoundEvent getHurtSound(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource) - Overrides:
getHurtSoundin classnet.minecraft.world.entity.LivingEntity
-
getDeathSound
@Nullable public @Nullable net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSoundin classnet.minecraft.world.entity.LivingEntity
-
nextStep
public float nextStep()- Overrides:
nextStepin classnet.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:
playStepSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getPassengersRidingOffset
public double getPassengersRidingOffset()- Overrides:
getPassengersRidingOffsetin classnet.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:
getStandingEyeHeightin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
requiresCustomPersistence
public boolean requiresCustomPersistence()- Overrides:
requiresCustomPersistencein classnet.minecraft.world.entity.Mob
-
removeWhenFarAway
public boolean removeWhenFarAway(double distanceToClosestPlayer) - Overrides:
removeWhenFarAwayin classnet.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:
addAdditionalSaveDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
readAdditionalSaveData
public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-