JavaScript is disabled on your browser.
All Implemented Interfaces:
CommandSource
, Shearable
, EntityAccess
, Nameable
, ICapabilityProvider
, ICapabilityProviderImpl <Entity >
, ICapabilitySerializable <CompoundTag >
, IForgeEntity
, IForgeLivingEntity
, IForgeShearable
, INBTSerializable <CompoundTag >
Field Summary
Fields
private static final int
private int
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
animationPosition , animationSpeed , animationSpeedOld , animStep , animStepO , ARMOR_SLOT_OFFSET , ARMOR_SLOTS , attackAnim , attackStrengthTicker , autoSpinAttackTicks , brain , DATA_LIVING_ENTITY_FLAGS , dead , DEATH_DURATION , deathScore , deathTime , DEFAULT_BASE_GRAVITY , DEFAULT_EYE_HEIGHT , EQUIPMENT_SLOT_OFFSET , EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT , fallFlyTicks , flyingSpeed , HAND_SLOTS , hurtDir , hurtDuration , hurtTime , invulnerableDuration , jumping , lastHurt , lastHurtByPlayer , lastHurtByPlayerTime , lerpHeadSteps , lerpSteps , lerpX , lerpXRot , lerpY , lerpYRot , lerpZ , LIVING_ENTITY_FLAG_IS_USING , LIVING_ENTITY_FLAG_OFF_HAND , LIVING_ENTITY_FLAG_SPIN_ATTACK , lyHeadRot , MIN_MOVEMENT_DISTANCE , noActionTime , oAttackAnim , oRun , PLAYER_HURT_EXPERIENCE_TIME , removeArrowTime , removeStingerTime , rotA , rotOffs , run , SLEEPING_DIMENSIONS , SWING_DURATION , swinging , swingingArm , swingTime , timeOffs , USE_ITEM_INTERVAL , useItem , useItemRemaining , xxa , yBodyRot , yBodyRotO , yHeadRot , yHeadRotO , yya , zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE , blocksBuilding , BOARDING_COOLDOWN , boardingCooldown , BREATHING_DISTANCE_BELOW_EYES , DATA_POSE , DATA_SHARED_FLAGS_ID , DEFAULT_BB_HEIGHT , DEFAULT_BB_WIDTH , DELTA_AFFECTED_BY_BLOCKS_BELOW , ENTITY_COUNTER , entityData , fallDistance , firstTick , FLAG_FALL_FLYING , FLAG_GLOWING , FLAG_ONFIRE , fluidHeight , flyDist , forgeFluidTypeHeight , FREEZE_HURT_FREQUENCY , hasImpulse , horizontalCollision , hurtMarked , ID_TAG , invulnerableTime , isInPowderSnow , isInsidePortal , level , MAX_ENTITY_TAG_COUNT , maxUpStep , minorHorizontalCollision , moveDist , noCulling , noPhysics , onGround , 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
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
void
void
void
private static float[]
protected void
protected void
static float[]
float
float
protected float
void
boolean
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
boolean
Performs the shear function on this object.
protected void
void
boolean
protected void
void
void
void
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove , canMate , checkAnimalSpawnRules , getAmbientSoundInterval , getExperienceReward , getInLoveTime , getLoveCause , getMyRidingOffset , getWalkTargetValue , hurt , isBrightEnoughToSpawn , isFood , isInLove , removeWhenFarAway , resetLove , setInLove , setInLoveTime , spawnChildFromBreeding , usePlayerItem
Methods inherited from class net.minecraft.world.entity.Mob
baseTick , canAttackType , canBeLeashed , canCutCorner , canFireProjectileWeapon , canHoldItem , canPickUpLoot , canReplaceCurrentItem , canReplaceEqualItem , canTakeItem , checkDespawn , checkMobSpawnRules , checkSpawnObstruction , clearRestriction , convertTo , createBodyControl , createLootContext , createMobAttributes , createNavigation , doHurtTarget , dropCustomDeathLoot , dropFromLootTable , dropLeash , enchantSpawnedArmor , enchantSpawnedWeapon , equipItemIfPossible , getArmorSlots , getEquipmentDropChance , getEquipmentForSlot , getHandSlots , getHeadRotSpeed , getItemBySlot , getJumpControl , getLeashHolder , getLookControl , getLootTable , getMainArm , getMaxFallDistance , getMaxHeadXRot , getMaxHeadYRot , getMaxSpawnClusterSize , getMeleeAttackRangeSqr , getMoveControl , getNavigation , getPathfindingMalus , getPerceivedTargetDistanceSquareForMeleeAttack , getPickResult , getPickupReach , getRestrictCenter , getRestrictRadius , getSensing , getTarget , hasRestriction , interact , isAggressive , isControlledByLocalInstance , isEffectiveAi , isLeashed , isLeftHanded , isMaxGroupSizeReached , isNoAi , isPersistenceRequired , isSunBurnTick , isWithinMeleeAttackRange , isWithinRestriction , isWithinRestriction , jumpInFluid , jumpInLiquid , lookAt , onOffspringSpawnedFromEgg , pickUpItem , playAmbientSound , playHurtSound , populateDefaultEquipmentEnchantments , populateDefaultEquipmentSlots , removeAfterChangingDimensions , removeAllGoals , removeFreeWill , requiresCustomPersistence , restrictTo , sendDebugPackets , serverAiStep , setAggressive , setCanPickUpLoot , setDelayedLeashHolderId , setDropChance , setGuaranteedDrop , setItemSlot , setItemSlotAndDropWhenKilled , setLeashedTo , setLeftHanded , setNoAi , setPathfindingMalus , setPersistenceRequired , setSpeed , setTarget , setXxa , setYya , setZza , shouldDespawnInPeaceful , shouldPassengersInheritMalus , spawnAnim , startRiding , tick , tickHeadTurn , updateControlFlags , wantsToPickUp
Methods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt , addEffect , addEffect , animateHurt , areAllEffectsAmbient , attackable , blockedByShield , blockUsingShield , brainProvider , broadcastBreakEvent , broadcastBreakEvent , calculateEntityAnimation , calculateFallDamage , canAttack , canAttack , canBeAffected , canBeSeenAsEnemy , canBeSeenByAnyone , canBreatheUnderwater , canDisableShield , canFreeze , canSpawnSoulSpeedParticle , canStandOnFluid , causeFallDamage , checkAutoSpinAttack , checkFallDamage , clearSleepingPos , completeUsingItem , createLivingAttributes , createWitherRose , curePotionEffects , decreaseAirSupply , die , doAutoAttackOnTouch , doesEmitEquipEvent , doPush , dropAllDeathLoot , dropEquipment , dropExperience , eat , equipmentHasChanged , forceAddEffect , getAbsorptionAmount , getActiveEffects , getActiveEffectsMap , getArmorCoverPercentage , getArmorValue , getArrowCount , getAttackAnim , getAttribute , getAttributeBaseValue , getAttributeBaseValue , getAttributes , getAttributeValue , getAttributeValue , getBedOrientation , getBlockSpeedFactor , getBoundingBoxForCulling , getBrain , getCapability , getCombatTracker , getDamageAfterArmorAbsorb , getDamageAfterMagicAbsorb , getDimensions , getDismountPoses , getDrinkingSound , getEatingSound , getEffect , getEquipmentSlotForItem , getEyeHeight , getFallFlyingTicks , getFallSounds , getFluidFallingAdjustedMovement , getHealth , getItemInHand , getJumpBoostPower , getJumpPower , getKillCredit , getLastClimbablePos , getLastDamageSource , getLastHurtByMob , getLastHurtByMobTimestamp , getLastHurtMob , getLastHurtMobTimestamp , getLocalBoundsForPose , getMainHandItem , getMaxHealth , getMeleeAttackReferencePosition , getMobType , getNoActionTime , getOffhandItem , getProjectile , getRandom , getRelativePortalPosition , getScale , getSleepingPos , getSlot , getSoundVolume , getSpeed , getStingerCount , getSwimAmount , getTicksUsingItem , getUsedItemHand , getUseItem , getUseItemRemainingTicks , getViewYRot , getVisibilityPercent , getVisualRotationYInDegrees , getVoicePitch , getWaterSlowDown , getYHeadRot , goDownInWater , handleRelativeFrictionAndCalculateMovement , hasEffect , hasItemInSlot , hasLineOfSight , heal , hurtArmor , hurtCurrentlyUsedShield , hurtHelmet , increaseAirSupply , invalidateCaps , isAffectedByFluids , isAffectedByPotions , isAlive , isAlwaysExperienceDropper , isAutoSpinAttack , isBlocking , isCurrentlyGlowing , isDamageSourceBlocked , isDeadOrDying , isFallFlying , isHolding , isHolding , isImmobile , isInvertedHealAndHarm , isInWall , isPickable , isPushable , isSensitiveToWater , isSleeping , isSuppressingSlidingDownLadder , isUsingItem , isVisuallySwimming , jumpFromGround , kill , knockback , lerpHeadTo , lerpTo , lookAt , makeBrain , onChangedBlock , onClimbable , onEffectAdded , onEffectRemoved , onEffectUpdated , onEnterCombat , onEquipItem , onItemPickup , onLeaveCombat , onSoulSpeedBlock , outOfWorld , playBlockFallSound , playEquipSound , push , pushEntities , randomTeleport , recreateFromPacket , releaseUsingItem , removeAllEffects , removeEffect , removeEffectNoUpdate , removeEffectParticles , removeFrost , removeSoulSpeed , resetForwardDirectionOfRelativePortalPosition , reviveCaps , rideableUnderWater , rideTick , setAbsorptionAmount , setArrowCount , setDiscardFriction , setHealth , setItemInHand , setJumping , setLastHurtByMob , setLastHurtByPlayer , setLastHurtMob , setLivingEntityFlag , setNoActionTime , setOnGround , setRecordPlayingNearby , setSleepingPos , setSprinting , setStingerCount , setYBodyRot , setYHeadRot , shouldDiscardFriction , shouldDropExperience , shouldDropLoot , shouldRemoveSoulSpeed , shouldRiderFaceForward , shouldShowName , skipDropExperience , spawnSoulSpeedParticle , startSleeping , startUsingItem , stopRiding , stopSleeping , stopUsingItem , swing , 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 , allowsDismounting , awardKillScore , blockPosition , broadcastToPlayer , calculateUpVector , calculateViewVector , canAddPassenger , canBeCollidedWith , canChangeDimensions , canCollideWith , canEnterPose , canRide , canSpawnSprintParticle , canTrample , canUpdate , canUpdate , captureDrops , captureDrops , changeDimension , changeDimension , checkInsideBlocks , checkOutOfWorld , checkSlowFallDistance , chunkPosition , clearFire , closerThan , closerThan , collideBoundingBox , copyPosition , createCommandSourceStack , createHoverEvent , dampensVibrations , discard , 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 , getControllingPassenger , getCustomName , getDeltaMovement , getDimensionChangingDelay , getDirection , getDismountLocationForPassenger , getDisplayName , getEncodeId , getEntityData , getExitPortal , getEyeHeight , getEyeHeight , getEyeHeightAccess , getEyeInFluidType , getEyePosition , getEyePosition , getEyeY , getFeetBlockState , getFireImmuneTicks , getFirstPassenger , getFluidHeight , getFluidJumpThreshold , getFluidTypeHeight , getForward , getHandHoldingItemAngle , getId , getIndirectPassengers , getLeashOffset , getLeashOffset , getLevel , getLightLevelDependentMagicValue , getLightProbePosition , getLookAngle , getMaxAirSupply , getMaxHeightFluidType , getMotionDirection , getMovementEmission , getName , getOnPos , getOnPosLegacy , getPassengers , getPassengersAndSelf , getPassengersRidingOffset , getPercentFrozen , getPermissionLevel , getPersistentData , getPickRadius , getPistonPushReaction , getPortalWaitTime , getPose , getPosition , getPositionCodec , 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 , isAddedToWorld , isAlliedTo , isAlliedTo , isAlwaysTicking , isAttackable , isColliding , isCrouching , isCustomNameVisible , isDescending , isDiscrete , isEyeInFluid , isFlapping , isFree , isFreezing , isFullyFrozen , isHorizontalCollisionMinor , isIgnoringBlockTriggers , isInFluidType , isInFluidType , isInLava , isInvisible , isInvisibleTo , isInvulnerable , isInvulnerableTo , isInWater , isInWaterOrBubble , isInWaterOrRain , isInWaterRainOrBubble , isNoGravity , isOnFire , isOnGround , isOnPortalCooldown , isPassenger , isPassengerOfSameVehicle , isPushedByFluid , isRemoved , isShiftKeyDown , isSilent , isSpectator , isSprinting , isSteppingCarefully , isSuppressingBounce , isSwimming , isUnderWater , isVehicle , isVisuallyCrawling , lavaHurt , lerpMotion , limitPistonMovement , load , makeBoundingBox , makeStuckInBlock , markHurt , maybeBackOffFromEdge , mayInteract , mirror , move , moveRelative , moveTo , moveTo , moveTo , moveTo , moveTowardsClosestSpace , newDoubleList , newFloatList , nextStep , onAboveBubbleCol , onAddedToWorld , onClientRemoval , onFlap , onInsideBlock , onInsideBubbleColumn , onlyOpCanSetNbt , onPassengerTurned , onRemovedFromWorld , pick , playEntityOnFireExtinguishedSound , playerTouch , playSound , playSound , playSwimSound , position , positionRider , processFlappingMovement , processPortalCooldown , push , reapplyPosition , refreshDimensions , remove , removePassenger , removeTag , removeVehicle , repositionEntityAfterLoad , resetFallDistance , restoreFrom , revive , rotate , save , saveAsPassenger , saveWithoutId , sendSystemMessage , setAirSupply , setBoundingBox , setCustomName , setCustomNameVisible , setDeltaMovement , setDeltaMovement , setFluidTypeHeight , setGlowingTag , setId , setInvisible , setInvulnerable , setIsInPowderSnow , setLevelCallback , setNoGravity , setOldPosAndRot , 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 , teleportToWithTicket , thunderHit , toString , touchingUnloadedChunk , trackingPosition , tryCheckInsideBlocks , turn , unRide , unsetRemoved , updateDynamicGameEventListener , updateFluidHeightAndDoFluidPushing , updateFluidHeightAndDoFluidPushing , updateInWaterStateAndDoFluidPushing , updateSwimming , wasKilled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType , canFluidExtinguish , canHydrateInFluidType , canRiderInteract , canStartSwimming , canTrample , canUpdate , canUpdate , captureDrops , captureDrops , deserializeNBT , getClassification , getEyeInFluidType , getFluidFallDistanceModifier , getFluidMotionScale , getFluidTypeHeight , getMaxHeightFluidType , getParts , getPersistentData , getPickedResult , getSoundFromFluidType , getStepHeight , hasCustomOutlineRendering , isAddedToWorld , isEyeInFluidType , isInFluidType , isInFluidType , isInFluidType , isInFluidType , isInFluidType , isMultipartEntity , isPushedByFluid , onAddedToWorld , onRemovedFromWorld , revive , serializeNBT , shouldRiderSit
Field Details
EAT_ANIMATION_TICKS
private static final int EAT_ANIMATION_TICKS
See Also:
COLORARRAY_BY_COLOR
private static final Map <DyeColor ,float[]> COLORARRAY_BY_COLOR
eatAnimationTick
private int eatAnimationTick
Method Details
createSheepColor
private static float[] createSheepColor (DyeColor p_29866_)
getColorArray
public static float[] getColorArray (DyeColor p_29830_)
registerGoals
protected void registerGoals ()
Overrides:
registerGoals
in class Mob
aiStep
public void aiStep ()
Overrides:
aiStep
in class Animal
getHeadEatPositionScale
public float getHeadEatPositionScale (float p_29881_)
getHeadEatAngleScale
public float getHeadEatAngleScale (float p_29883_)
isSheared
public boolean isSheared ()
setSheared
public void setSheared (boolean p_29879_)
ate
public void ate ()
Overrides:
ate
in class Mob
isShearable
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
Specified by:
isShearable
in interface IForgeShearable
Parameters:
item
- The ItemStack that is being used, may be empty.
world
- The current level.
pos
- Block's position in level.
Returns:
If this is shearable, and onSheared should be called.
onSheared
Performs the shear function on this object.
This is called for both client, and server.
The object should perform all actions related to being sheared,
except for dropping of the items, and removal of the block.
As those are handled by ItemShears itself.
Returns a list of items that resulted from the shearing process.
For entities, they should trust there internal location information
over the values passed into this function.
Specified by:
onSheared
in interface IForgeShearable
item
- The ItemStack that is being used, may be empty.
world
- The current level.
pos
- If this is a block, the block's position in level.
fortune
- The fortune level of the shears being used.
Returns:
A List containing all items from this shearing. May be empty.