net.minecraft.entity.passive

public class SheepEntity

extends AnimalEntity implements Shearable

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Shearable

net.minecraft.world.entity.animal.sheep.Sheep
net.minecraft.class_1472
net.minecraft.entity.passive.SheepEntity

Field summary

Modifier and TypeField
private static final int
EAT_ANIMATION_TICKS
field_30371
MAX_GRASS_TIMER
private static final TrackedData<Byte>
DATA_WOOL_ID
field_6870
COLOR
private static final DyeColor
DEFAULT_COLOR
field_57639
DEFAULT_COLOR
private static final boolean
DEFAULT_SHEARED
field_57640
DEFAULT_SHEARED
private int
eatAnimationTick
field_6865
eatGrassTimer
private EatGrassGoal
eatBlockGoal
field_6869
eatGrassGoal

Constructor summary

ModifierConstructor
public (EntityType<? extends SheepEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
aiStep()
method_6007()
tickMovement()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26893()
createSheepAttributes()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public float
getHeadEatPositionScale(float a)
method_6628(float arg0)
getNeckAngle(float tickProgress)
public float
getHeadEatAngleScale(float a)
method_6641(float arg0)
getHeadAngle(float tickProgress)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
shear(ServerLevel level, SoundSource soundSource, ItemStack tool)
method_6636(class_3218 arg0, class_3419 arg1, class_1799 arg2)
sheared(ServerWorld arg0, SoundCategory arg1, ItemStack arg2)
public boolean
readyForShearing()
method_27072()
isShearable()
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public DyeColor
getColor()
method_6633()
getColor()
public void
setColor(DyeColor color)
method_6631(class_1767 arg0)
setColor(DyeColor color)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public boolean
isSheared()
method_6629()
isSheared()
public void
setSheared(boolean value)
method_6635(boolean arg0)
setSheared(boolean sheared)
public static DyeColor
getRandomSheepColor(ServerLevelAccessor level, BlockPos pos)
method_6632(class_5425 arg0, class_2338 arg1)
selectSpawnColor(ServerWorldAccess world, BlockPos pos)
public SheepEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public void
ate()
method_5983()
onEatingGrass()
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private void
lambda$shear$0(ServerLevel arg0, ItemStack arg1)
method_61475(class_3218 arg0, class_1799 arg1)
method_61475(ServerWorld world, ItemStack stack)
private static boolean
lambda$registerGoals$0(ItemStack arg0)
method_58375(class_1799 arg0)
method_58375(ItemStack stack)