JavaScript is disabled on your browser.
Field Summary
Fields
private static 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 , targetSelector , 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 , entityData , fallDistance , firstTick , FLAG_FALL_FLYING , FLAG_GLOWING , FLAG_ONFIRE , fluidHeight , fluidOnEyes , flyDist , FREEZE_HURT_FREQUENCY , hasImpulse , horizontalCollision , hurtMarked , ID_TAG , invulnerableTime , isInPowderSnow , isInsidePortal , level , LOGGER , MAX_ENTITY_TAG_COUNT , maxUpStep , moveDist , noCulling , noPhysics , onGround , PASSENGERS_TAG , portalEntrancePos , portalTime , random , stringUUID , stuckSpeedMultiplier , tickCount , TOTAL_AIR_SUPPLY , uuid , UUID_TAG , verticalCollision , 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 , isFood , isInLove , removeWhenFarAway , resetLove , setInLove , setInLoveTime , spawnChildFromBreeding , usePlayerItem
Methods inherited from class net.minecraft.world.entity.Mob
baseTick , canAttackType , canBeControlledByRider , 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 , getPickResult , getRestrictCenter , getRestrictRadius , getSensing , getTarget , hasRestriction , interact , isAggressive , isControlledByLocalInstance , isEffectiveAi , isLeashed , isLeftHanded , isMaxGroupSizeReached , isNoAi , isPersistenceRequired , isSunBurnTick , isWithinRestriction , isWithinRestriction , jumpInLiquid , lookAt , onOffspringSpawnedFromEgg , pickUpItem , playAmbientSound , playHurtSound , populateDefaultEquipmentEnchantments , populateDefaultEquipmentSlots , removeAfterChangingDimensions , 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 , canFreeze , canSpawnSoulSpeedParticle , canStandOnFluid , causeFallDamage , checkAutoSpinAttack , checkFallDamage , clearSleepingPos , completeUsingItem , createLivingAttributes , createWitherRose , curePotionEffects , decreaseAirSupply , die , doAutoAttackOnTouch , doPush , dropAllDeathLoot , dropEquipment , dropExperience , eat , equipEventAndSound , forceAddEffect , getAbsorptionAmount , getActiveEffects , getActiveEffectsMap , getAddEntityPacket , getArmorCoverPercentage , getArmorValue , getArrowCount , getAttackAnim , getAttribute , getAttributeBaseValue , getAttributes , getAttributeValue , getBedOrientation , getBlockSpeedFactor , getBoundingBoxForCulling , getBrain , getCapability , getCombatTracker , getDamageAfterArmorAbsorb , getDamageAfterMagicAbsorb , getDimensions , getDismountPoses , getDrinkingSound , getEatingSound , getEffect , getEquipmentSlotForItem , getEyeHeight , getFallDamageSound , getFallFlyingTicks , getFluidFallingAdjustedMovement , getHealth , getItemInHand , getJumpBoostPower , getJumpPower , getKillCredit , getLastClimbablePos , getLastDamageSource , getLastHurtByMob , getLastHurtByMobTimestamp , getLastHurtMob , getLastHurtMobTimestamp , getLocalBoundsForPose , getMainHandItem , getMaxHealth , getMobType , getNoActionTime , getOffhandItem , getProjectile , getRandom , getRelativePortalPosition , getScale , getSleepingPos , getSlot , getSoundVolume , getSpeed , getStingerCount , getSwimAmount , getTicksUsingItem , getUsedItemHand , getUseItem , getUseItemRemainingTicks , getViewYRot , getVisibilityPercent , 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 , markHurt , onChangedBlock , onClimbable , onEffectAdded , onEffectRemoved , onEffectUpdated , onEnterCombat , onItemPickup , onLeaveCombat , onSoulSpeedBlock , outOfWorld , playBlockFallSound , 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 , spawnSoulSpeedParticle , startAutoSpinAttack , startSleeping , startUsingItem , stopRiding , stopSleeping , stopUsingItem , swing , swing , take , tickDeath , tickEffects , travel , triggerItemUseEffects , tryAddFrost , tryAddSoulSpeed , updateEffectVisibility , updateInvisibilityStatus , updateSwingTime , updateUsingItem , verifyEquippedItem
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo , absMoveTo , acceptsFailure , acceptsSuccess , addPassenger , addTag , awardKillScore , blockPosition , broadcastToPlayer , calculateUpVector , calculateViewVector , canAddPassenger , canBeCollidedWith , canChangeDimensions , canCollideWith , canEnterPose , canRide , canSpawnSprintParticle , canTrample , canUpdate , canUpdate , captureDrops , captureDrops , changeDimension , changeDimension , checkInsideBlocks , checkOutOfWorld , chunkPosition , clearFire , closerThan , collideBoundingBox , collideBoundingBoxHeuristically , collideBoundingBoxLegacy , copyPosition , createCommandSourceStack , createHoverEvent , discard , dismountTo , displayFireAnimation , distanceTo , distanceToSqr , distanceToSqr , distanceToSqr , doEnchantDamageEffects , doWaterSplashEffect , ejectPassengers , equals , eyeBlockPosition , fillCrashReportCategory , findDimensionEntryPoint , fireImmune , gameEvent , gameEvent , gameEvent , gameEvent , getAirSupply , getAllSlots , getBbHeight , getBbWidth , getBlockExplosionResistance , getBlockJumpFactor , getBlockPosBelowThatAffectsMyMovement , getBlockStateOn , getBlockX , getBlockY , getBlockZ , getBoundingBox , getBoundingBoxForPose , getBrightness , getCollisionHorizontalEscapeVector , getCommandSenderWorld , getControllingPassenger , getCustomName , getDeltaMovement , getDimensionChangingDelay , getDirection , getDismountLocationForPassenger , getDisplayName , getEncodeId , getEntityData , getExitPortal , getEyeHeight , getEyeHeight , getEyeHeightAccess , getEyePosition , getEyePosition , getEyeY , getFeetBlockState , getFireImmuneTicks , getFirstPassenger , getFluidHeight , getFluidJumpThreshold , getForward , getGameEventListenerRegistrar , getId , getIndirectPassengers , getLeashOffset , getLightProbePosition , getLookAngle , getMaxAirSupply , getMotionDirection , getMovementEmission , getName , getOnPos , getPacketCoordinates , getPassengers , getPassengersAndSelf , getPassengersRidingOffset , getPercentFrozen , getPermissionLevel , getPersistentData , getPickRadius , getPistonPushReaction , getPortalWaitTime , getPose , getPosition , 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 , hasCustomName , hasExactlyOnePlayerPassenger , hasGlowingTag , hashCode , hasIndirectPassenger , hasPassenger , hasPassenger , hasPermissions , ignoreExplosion , interactAt , is , isAddedToWorld , isAlliedTo , isAlliedTo , isAlwaysTicking , isAttackable , isColliding , isCrouching , isCustomNameVisible , isDescending , isDiscrete , isEyeInFluid , isFlapping , isFree , isFullyFrozen , isIgnoringBlockTriggers , 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 , killed , lavaHurt , lerpMotion , limitPistonMovement , load , makeBoundingBox , makeStuckInBlock , maybeBackOffFromEdge , mayInteract , mirror , move , moveRelative , moveTo , moveTo , moveTo , moveTo , moveTowardsClosestSpace , newDoubleList , newFloatList , nextStep , occludesVibrations , onAboveBubbleCol , onAddedToWorld , onClientRemoval , onFlap , onInsideBlock , onInsideBubbleColumn , onlyOpCanSetNbt , onPassengerTurned , onRemovedFromWorld , pick , playEntityOnFireExtinguishedSound , playerTouch , playSound , playSwimSound , position , positionRider , processFlappingMovement , processPortalCooldown , push , reapplyPosition , recreateFromPacket , refreshDimensions , remove , removePassenger , removeTag , removeVehicle , repositionEntityAfterLoad , restoreFrom , revive , rotate , save , saveAsPassenger , saveWithoutId , sendMessage , setAirSupply , setBoundingBox , setCustomName , setCustomNameVisible , setDeltaMovement , setDeltaMovement , setGlowingTag , setId , setInvisible , setInvulnerable , setIsInPowderSnow , setLevelCallback , setNoGravity , setOldPosAndRot , setPacketCoordinates , setPacketCoordinates , 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 , teleportTo , teleportToWithTicket , thunderHit , toString , touchingUnloadedChunk , tryCheckInsideBlocks , turn , unRide , unsetRemoved , updateFluidHeightAndDoFluidPushing , updateInWaterStateAndDoFluidPushing , updateSwimming
Field Details
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_)
setColor
public void setColor
(DyeColor p_29856_)
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 world.
pos
- Block's position in world.
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 world.
pos
- If this is a block, the block's position in world.
fortune
- The fortune level of the shears being used.
Returns:
A List containing all items from this shearing. May be empty.