Package net.minecraft.entity.passive
Class SheepEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider
public class SheepEntity extends AnimalEntity
- Mappings:
Namespace Name official tvintermediary net/minecraft/class_1865named net/minecraft/entity/passive/SheepEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
Field Summary
Fields Modifier and Type Field Description private CraftingInventoryfield_7957private static Map<DyeColor,float[]>field_7958private intfield_7959private EatGrassGoalfield_7960Fields inherited from class net.minecraft.entity.passive.AnimalEntity
field_7884Fields inherited from class net.minecraft.entity.passive.AgeableEntity
field_7327, field_7331, forcedAgeFields inherited from class net.minecraft.entity.PassivePathFindingEntity
FLEEING_SPEED_BONUS_ID, FLEEING_SPEED_MODIFIERFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, attackGoals, entityMotionHelper, experiencePoints, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_7434, field_7435, field_7436, field_7438, field_7439, field_7456, field_7457, field_7458, field_7462, field_7463, field_7472, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, headYaw, hurtTime, jumping, knockbackVelocity, lastHandSwingProgress, maxHurtTime, playerHitTimer, prevBodyYaw, prevDistanceTravelled, prevHeadYaw, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, serverPitch, serverY, serverYaw, serverZ, serxerX, sidewaysSpeed, stepBobbingAmountFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description SheepEntity(World world) -
Method Summary
Modifier and Type Method Description voiddeserialize(CompoundTag tag)static DyeColorgenerateDefaultColor(Random random)protected StringgetAmbientSound()private DyeColorgetChildColor(AnimalEntity animalEntity, AnimalEntity animalEntity2)DyeColorgetColor()protected StringgetDeathSound()protected ItemgetDefaultDrop()floatgetEyeHeight()protected StringgetHurtSound()static float[]getRgbColor(DyeColor dyeColor)voidhandleStatus(byte status)protected voidinitDataTracker()protected voidinitializeAttributes()booleanisSheared()SheepEntitymethod_6890(AgeableEntity ageableEntity)protected voidmethod_7106(boolean bool, int int2)EntityDatamethod_7191(LocalDifficulty difficulty, EntityData data)booleanmethod_7195(PlayerEntity player)floatmethod_7639(float float2)floatmethod_7640(float float2)protected voidmobTick()voidonEatingGrass()protected voidplayStepSound(BlockPos pos, Block block)voidserialize(CompoundTag tag)voidsetColor(DyeColor dyeColor)voidsetSheared(boolean bool)voidtickMovement()Methods inherited from class net.minecraft.entity.passive.AnimalEntity
canBreedWith, damage, eat, getMinAmbientSoundDelay, isBreedingItem, isInLove, lovePlayer, method_7104, method_7184, method_7202, method_7239, method_7515, resetLoveTicksMethods inherited from class net.minecraft.entity.passive.AgeableEntity
age, isBaby, method_6887, method_6888, method_6889, method_6891, method_6894, setAge, setBoundsMethods inherited from class net.minecraft.entity.PassivePathFindingEntity
method_7240, method_7241, method_7242, method_7243, method_7244, method_7245, method_7246, method_7247, method_7248, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, detachLeash, equip, getArmorStacks, getAttackTarget, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getVisibilityCache, hasNoAi, hasPositionTarget, initEquipment, isPersistent, isTameable, lookAtEntity, loot, method_7096, method_7156, method_7164, method_7177, method_7187, method_7188, method_7203, method_7204, method_7206, method_7210, method_7214, newNavigation, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setAttackTarget, setCanPickUpLoot, setForwardSpeed, setPersistent, tick, tickNewAi, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttributeContainer, getDamageEnchantmentTarget, getDamageTracker, getEffectInstance, getFallSound, getHandSwingProgress, getHeadRotation, getHealth, getLastHurtTimestamp, getMaxHealth, getRandom, getRotationVector, getScoreboardTeam, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isInSameTeam, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_6985, method_7087, method_7091, method_7092, method_7093, method_7098, method_7099, method_7100, method_7102, method_7105, method_7108, method_7109, method_7110, method_7111, method_7113, method_7114, method_7115, method_7118, method_7123, method_7124, method_7126, method_7128, method_7129, method_7130, method_7132, method_7134, method_7139, method_7142, method_7146, method_7149, method_7153, method_7154, method_7162, method_7166, method_7171, method_7176, method_7178, method_7179, onKilled, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldRenderName, startRiding, swingHand, tickRiding, tickStatusEffects, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, doesNotCollide, doesRenderOnFire, equals, extinguish, fromClientTag, fromTag, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleAttack, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setStat, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, teleportToDimension, tickFire, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePosition, updatePositionAndAngles, writePlayerData
-
Field Details
-
field_7958
- Mappings:
Namespace Name Mixin selector official boLtv;bo:Ljava/util/Map;intermediary field_7958Lnet/minecraft/class_1865;field_7958:Ljava/util/Map;named field_7958Lnet/minecraft/entity/passive/SheepEntity;field_7958:Ljava/util/Map;
-
field_7957
- Mappings:
Namespace Name Mixin selector official bmLtv;bm:Lxp;intermediary field_7957Lnet/minecraft/class_1865;field_7957:Lnet/minecraft/class_1993;named field_7957Lnet/minecraft/entity/passive/SheepEntity;field_7957:Lnet/minecraft/inventory/CraftingInventory;
-
field_7959
private int field_7959- Mappings:
Namespace Name Mixin selector official bpLtv;bp:Iintermediary field_7959Lnet/minecraft/class_1865;field_7959:Inamed field_7959Lnet/minecraft/entity/passive/SheepEntity;field_7959:I
-
field_7960
- Mappings:
Namespace Name Mixin selector official bqLtv;bq:Lqy;intermediary field_7960Lnet/minecraft/class_1865;field_7960:Lnet/minecraft/class_1783;named field_7960Lnet/minecraft/entity/passive/SheepEntity;field_7960:Lnet/minecraft/entity/ai/goal/EatGrassGoal;
-
-
Constructor Details
-
SheepEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
getRgbColor
- Mappings:
Namespace Name Mixin selector official aLtv;a(Lzd;)[Fintermediary method_7633Lnet/minecraft/class_1865;method_7633(Lnet/minecraft/class_2034;)[Fnamed getRgbColorLnet/minecraft/entity/passive/SheepEntity;getRgbColor(Lnet/minecraft/util/DyeColor;)[F
-
mobTick
protected void mobTick()- Overrides:
mobTickin classAnimalEntity- Mappings:
Namespace Name Mixin selector official ELps;E()Vintermediary method_7186Lnet/minecraft/class_1753;method_7186()Vnamed mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAnimalEntity- Mappings:
Namespace Name Mixin selector official mLpr;m()Vintermediary method_7169Lnet/minecraft/class_1752;method_7169()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributesin classMobEntity- Mappings:
Namespace Name Mixin selector official aXLpr;aX()Vintermediary method_7097Lnet/minecraft/class_1752;method_7097()Vnamed initializeAttributesLnet/minecraft/entity/LivingEntity;initializeAttributes()V
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classAgeableEntity- Mappings:
Namespace Name Mixin selector official hLpk;h()Vintermediary method_7043Lnet/minecraft/class_1745;method_7043()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
method_7106
protected void method_7106(boolean bool, int int2)- Overrides:
method_7106in classMobEntity- Mappings:
Namespace Name Mixin selector official bLpr;b(ZI)Vintermediary method_7106Lnet/minecraft/class_1752;method_7106(ZI)Vnamed method_7106Lnet/minecraft/entity/LivingEntity;method_7106(ZI)V
-
getDefaultDrop
- Overrides:
getDefaultDropin classMobEntity- Mappings:
Namespace Name Mixin selector official ALps;A()Lzw;intermediary method_7183Lnet/minecraft/class_1753;method_7183()Lnet/minecraft/class_2054;named getDefaultDropLnet/minecraft/entity/mob/MobEntity;getDefaultDrop()Lnet/minecraft/item/Item;
-
handleStatus
- Overrides:
handleStatusin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(B)Vintermediary method_6916Lnet/minecraft/class_1745;method_6916(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
method_7639
- Mappings:
Namespace Name Mixin selector official pLtv;p(F)Fintermediary method_7639Lnet/minecraft/class_1865;method_7639(F)Fnamed method_7639Lnet/minecraft/entity/passive/SheepEntity;method_7639(F)F
-
method_7640
- Mappings:
Namespace Name Mixin selector official qLtv;q(F)Fintermediary method_7640Lnet/minecraft/class_1865;method_7640(F)Fnamed method_7640Lnet/minecraft/entity/passive/SheepEntity;method_7640(F)F
-
method_7195
- Overrides:
method_7195in classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLps;a(Lwn;)Zintermediary method_7195Lnet/minecraft/class_1753;method_7195(Lnet/minecraft/class_1963;)Znamed method_7195Lnet/minecraft/entity/mob/MobEntity;method_7195(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
serialize
- Overrides:
serializein classAnimalEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_7003Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)Vnamed serializeLnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
-
deserialize
- Overrides:
deserializein classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official zLps;z()Ljava/lang/String;intermediary method_7231Lnet/minecraft/class_1753;method_7231()Ljava/lang/String;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Ljava/lang/String;
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector official boLpr;bo()Ljava/lang/String;intermediary method_7137Lnet/minecraft/class_1752;method_7137()Ljava/lang/String;named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound()Ljava/lang/String;
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector official bpLpr;bp()Ljava/lang/String;intermediary method_7138Lnet/minecraft/class_1752;method_7138()Ljava/lang/String;named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Ljava/lang/String;
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Lcj;Lafh;)Vintermediary method_6932Lnet/minecraft/class_1745;method_6932(Lnet/minecraft/class_1372;Lnet/minecraft/class_160;)Vnamed playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
getColor
- Mappings:
Namespace Name Mixin selector official clLtv;cl()Lzd;intermediary method_7636Lnet/minecraft/class_1865;method_7636()Lnet/minecraft/class_2034;named getColorLnet/minecraft/entity/passive/SheepEntity;getColor()Lnet/minecraft/util/DyeColor;
-
setColor
- Mappings:
Namespace Name Mixin selector official bLtv;b(Lzd;)Vintermediary method_7635Lnet/minecraft/class_1865;method_7635(Lnet/minecraft/class_2034;)Vnamed setColorLnet/minecraft/entity/passive/SheepEntity;setColor(Lnet/minecraft/util/DyeColor;)V
-
isSheared
public boolean isSheared()- Mappings:
Namespace Name Mixin selector official cmLtv;cm()Zintermediary method_7637Lnet/minecraft/class_1865;method_7637()Znamed isShearedLnet/minecraft/entity/passive/SheepEntity;isSheared()Z
-
setSheared
public void setSheared(boolean bool)- Mappings:
Namespace Name Mixin selector official lLtv;l(Z)Vintermediary method_7638Lnet/minecraft/class_1865;method_7638(Z)Vnamed setShearedLnet/minecraft/entity/passive/SheepEntity;setSheared(Z)V
-
generateDefaultColor
- Mappings:
Namespace Name Mixin selector official aLtv;a(Ljava/util/Random;)Lzd;intermediary method_7631Lnet/minecraft/class_1865;method_7631(Ljava/util/Random;)Lnet/minecraft/class_2034;named generateDefaultColorLnet/minecraft/entity/passive/SheepEntity;generateDefaultColor(Ljava/util/Random;)Lnet/minecraft/util/DyeColor;
-
method_6890
- Specified by:
method_6890in classAgeableEntity- Mappings:
Namespace Name Mixin selector official bLtv;b(Lph;)Ltv;intermediary method_7634Lnet/minecraft/class_1865;method_7634(Lnet/minecraft/class_1743;)Lnet/minecraft/class_1865;named method_6890Lnet/minecraft/entity/passive/SheepEntity;method_6890(Lnet/minecraft/entity/passive/AgeableEntity;)Lnet/minecraft/entity/passive/SheepEntity;
-
onEatingGrass
public void onEatingGrass()- Overrides:
onEatingGrassin classMobEntity- Mappings:
Namespace Name Mixin selector official vLps;v()Vintermediary method_7227Lnet/minecraft/class_1753;method_7227()Vnamed onEatingGrassLnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
-
method_7191
- Overrides:
method_7191in classMobEntity- Mappings:
Namespace Name Mixin selector official aLps;a(Lok;Lpu;)Lpu;intermediary method_7191Lnet/minecraft/class_1753;method_7191(Lnet/minecraft/class_1722;Lnet/minecraft/class_1756;)Lnet/minecraft/class_1756;named method_7191Lnet/minecraft/entity/mob/MobEntity;method_7191(Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
-
getChildColor
- Mappings:
Namespace Name Mixin selector official aLtv;a(Ltm;Ltm;)Lzd;intermediary method_7632Lnet/minecraft/class_1865;method_7632(Lnet/minecraft/class_1847;Lnet/minecraft/class_1847;)Lnet/minecraft/class_2034;named getChildColorLnet/minecraft/entity/passive/SheepEntity;getChildColor(Lnet/minecraft/entity/passive/AnimalEntity;Lnet/minecraft/entity/passive/AnimalEntity;)Lnet/minecraft/util/DyeColor;
-
getEyeHeight
public float getEyeHeight()- Overrides:
getEyeHeightin classEntity- Mappings:
Namespace Name Mixin selector official aSLpk;aS()Fintermediary method_6965Lnet/minecraft/class_1745;method_6965()Fnamed getEyeHeightLnet/minecraft/entity/Entity;getEyeHeight()F
-