Package net.minecraft.entity.passive
Class SheepEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider
- Mappings:
Namespace Name official tvintermediary net/minecraft/class_949named net/minecraft/entity/passive/SheepEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EatGrassGoalprivate intprivate final CraftingInventoryFields inherited from class net.minecraft.entity.passive.AnimalEntity
field_11973Fields inherited from class net.minecraft.entity.passive.PassiveEntity
field_11896, field_11898, forcedAgeFields inherited from class net.minecraft.entity.PathAwareEntity
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_6748, field_6749, field_6750, field_6752, field_6753, field_6771, field_6776, field_6777, field_6778, field_6782, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, 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, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_3223, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, netherPortalTime, 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, updateNeeded, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreed(PassiveEntity passiveEntity) booleancanBeLeashedBy(PlayerEntity player) protected voiddropLoot(boolean allowDrops, int lootingMultiplier) static DyeColorgenerateDefaultColor(Random random) protected Stringprivate DyeColorgetChildColor(AnimalEntity animalEntity, AnimalEntity animalEntity2) getColor()protected Stringprotected Itemstatic float[]getDyedColor(DyeColor color) floatprotected StringvoidhandleStatus(byte status) protected voidinitialize(LocalDifficulty difficulty, EntityData data) protected voidbooleanfloatmethod_2864(float float2) floatmethod_2865(float float2) protected voidmobTick()voidprotected voidplayStepSound(BlockPos pos, Block block) voidvoidvoidsetSheared(boolean bool) voidvoidMethods inherited from class net.minecraft.entity.passive.AnimalEntity
canBreedWith, canImmediatelyDespawn, canSpawn, damage, eat, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, isBreedingItem, isInLove, lovePlayer, resetLoveTicksMethods inherited from class net.minecraft.entity.passive.PassiveEntity
age, isBaby, method_10925, method_10926, method_5377, method_5378, method_6095, setAge, setBoundsMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, createNavigation, detachLeash, equip, getArmorStacks, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getTarget, getVisibilityCache, hasNoAi, initEquipment, isLeashed, isPersistent, isTameable, lookAtEntity, loot, method_2469, method_2638, method_4470, method_4472, method_4485, method_5388, method_6162, method_8374, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, tick, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getEffectInstance, getFallSound, getGroup, getHandSwingProgress, getHeadRotation, getHealth, getJumpVelocity, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotation, getRotationVector, getScoreboardTeam, getSoundPitch, getSoundVolume, getStatusEffectInstances, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isClimbing, isInSameTeam, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_2582, method_2607, method_2610, method_2634, method_2649, method_2658, method_4473, method_6108, method_6109, method_6111, method_6117, method_6149, method_6150, method_6152, onKilled, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldAlwaysDropXp, shouldDropXp, shouldRenderName, startRiding, swingHand, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, travel, tryAttack, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, equals, extinguish, fromClientNbt, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMountedHeightOffset, getParts, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTargetingMargin, 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, isSwimming, isTouchingLava, isTouchingWater, method_10948, method_10965, method_6097, method_6344, method_8364, move, onKilledOther, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInLava, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setStat, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportToDimension, tickFire, toListNbt, toListNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateVelocity, updateWaterState, writePlayerData
-
Field Details
-
COLORS
- Mappings:
Namespace Name Mixin selector official boLtv;bo:Ljava/util/Map;intermediary field_12006Lnet/minecraft/class_949;field_12006:Ljava/util/Map;named COLORSLnet/minecraft/entity/passive/SheepEntity;COLORS:Ljava/util/Map;
-
field_5369
- Mappings:
Namespace Name Mixin selector official bmLtv;bm:Lxp;intermediary field_5369Lnet/minecraft/class_949;field_5369:Lnet/minecraft/class_1011;named field_5369Lnet/minecraft/entity/passive/SheepEntity;field_5369:Lnet/minecraft/inventory/CraftingInventory;
-
eatGrassTimer
private int eatGrassTimer- Mappings:
Namespace Name Mixin selector official bpLtv;bp:Iintermediary field_3707Lnet/minecraft/class_949;field_3707:Inamed eatGrassTimerLnet/minecraft/entity/passive/SheepEntity;eatGrassTimer:I
-
eatGrassGoal
- Mappings:
Namespace Name Mixin selector official bqLtv;bq:Lqy;intermediary field_3708Lnet/minecraft/class_949;field_3708:Lnet/minecraft/class_891;named eatGrassGoalLnet/minecraft/entity/passive/SheepEntity;eatGrassGoal:Lnet/minecraft/entity/ai/goal/EatGrassGoal;
-
-
Constructor Details
-
SheepEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
getDyedColor
- Mappings:
Namespace Name Mixin selector official aLtv;a(Lzd;)[Fintermediary method_11101Lnet/minecraft/class_949;method_11101(Lnet/minecraft/class_2674;)[Fnamed getDyedColorLnet/minecraft/entity/passive/SheepEntity;getDyedColor(Lnet/minecraft/util/DyeColor;)[F
-
mobTick
protected void mobTick()- Overrides:
mobTickin classAnimalEntity- Mappings:
Namespace Name Mixin selector official ELps;E()Vintermediary method_2633Lnet/minecraft/class_871;method_2633()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_2651Lnet/minecraft/class_1699;method_2651()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributesin classMobEntity- Mappings:
Namespace Name Mixin selector official aXLpr;aX()Vintermediary method_6129Lnet/minecraft/class_1699;method_6129()Vnamed initializeAttributesLnet/minecraft/entity/LivingEntity;initializeAttributes()V
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classPassiveEntity- Mappings:
Namespace Name Mixin selector official hLpk;h()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
dropLoot
protected void dropLoot(boolean allowDrops, int lootingMultiplier) -
getDefaultDrop
- Overrides:
getDefaultDropin classMobEntity- Mappings:
Namespace Name Mixin selector official ALps;A()Lzw;intermediary method_8375Lnet/minecraft/class_871;method_8375()Lnet/minecraft/class_1069;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_2485Lnet/minecraft/class_864;method_2485(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
method_2864
- Mappings:
Namespace Name Mixin selector official pLtv;p(F)Fintermediary method_2864Lnet/minecraft/class_949;method_2864(F)Fnamed method_2864Lnet/minecraft/entity/passive/SheepEntity;method_2864(F)F
-
method_2865
- Mappings:
Namespace Name Mixin selector official qLtv;q(F)Fintermediary method_2865Lnet/minecraft/class_949;method_2865(F)Fnamed method_2865Lnet/minecraft/entity/passive/SheepEntity;method_2865(F)F
-
canBeLeashedBy
- Overrides:
canBeLeashedByin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLps;a(Lwn;)Zintermediary method_2537Lnet/minecraft/class_871;method_2537(Lnet/minecraft/class_988;)Znamed canBeLeashedByLnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAnimalEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classAnimalEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official zLps;z()Ljava/lang/String;intermediary method_2603Lnet/minecraft/class_871;method_2603()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_2604Lnet/minecraft/class_1699;method_2604()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_2605Lnet/minecraft/class_1699;method_2605()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_10936Lnet/minecraft/class_864;method_10936(Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)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_11103Lnet/minecraft/class_949;method_11103()Lnet/minecraft/class_2674;named getColorLnet/minecraft/entity/passive/SheepEntity;getColor()Lnet/minecraft/util/DyeColor;
-
setColor
- Mappings:
Namespace Name Mixin selector official bLtv;b(Lzd;)Vintermediary method_11102Lnet/minecraft/class_949;method_11102(Lnet/minecraft/class_2674;)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_2867Lnet/minecraft/class_949;method_2867()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_2863Lnet/minecraft/class_949;method_2863(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_11100Lnet/minecraft/class_949;method_11100(Ljava/util/Random;)Lnet/minecraft/class_2674;named generateDefaultColorLnet/minecraft/entity/passive/SheepEntity;generateDefaultColor(Ljava/util/Random;)Lnet/minecraft/util/DyeColor;
-
breed
- Specified by:
breedin classPassiveEntity- Mappings:
Namespace Name Mixin selector official bLtv;b(Lph;)Ltv;intermediary method_4525Lnet/minecraft/class_949;method_4525(Lnet/minecraft/class_862;)Lnet/minecraft/class_949;named breedLnet/minecraft/entity/passive/SheepEntity;breed(Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/SheepEntity;
-
onEatingGrass
public void onEatingGrass()- Overrides:
onEatingGrassin classMobEntity- Mappings:
Namespace Name Mixin selector official vLps;v()Vintermediary method_2588Lnet/minecraft/class_871;method_2588()Vnamed onEatingGrassLnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
-
initialize
- Overrides:
initializein classMobEntity- Mappings:
Namespace Name Mixin selector official aLps;a(Lok;Lpu;)Lpu;intermediary method_6156Lnet/minecraft/class_871;method_6156(Lnet/minecraft/class_2607;Lnet/minecraft/class_1700;)Lnet/minecraft/class_1700;named initializeLnet/minecraft/entity/mob/MobEntity;initialize(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_4524Lnet/minecraft/class_949;method_4524(Lnet/minecraft/class_942;Lnet/minecraft/class_942;)Lnet/minecraft/class_2674;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_2544Lnet/minecraft/class_864;method_2544()Fnamed getEyeHeightLnet/minecraft/entity/Entity;getEyeHeight()F
-