net.minecraft.world.entity.animal

public class Sheep

extends Animal implements Shearable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Shearable

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

Field summary

Modifier and TypeField
private static final int
bF
EAT_ANIMATION_TICKS
field_30371
MAX_GRASS_TIMER
private static final EntityDataAccessor<Byte>
bG
DATA_WOOL_ID
field_6870
COLOR
private static final Map<DyeColor, Integer>
bH
COLOR_BY_DYE
field_6867
COLORS
private int
bJ
eatAnimationTick
field_6865
eatGrassTimer
private EatBlockGoal
bK
eatBlockGoal
field_6869
eatGrassGoal

Constructor summary

ModifierConstructor
public (EntityType<? extends Sheep> arg0, Level arg1)

Method summary

Modifier and TypeMethod
private static int
c(cxq arg0)
createSheepColor(DyeColor arg0)
method_6630(class_1767 arg0)
getDyedColor(DyeColor color)
public static int
a(cxq arg0)
getColor(DyeColor arg0)
method_6634(class_1767 arg0)
getRgbColor(DyeColor dyeColor)
protected void
D()
registerGoals()
method_5959()
initGoals()
public boolean
k(cys arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
a(aro arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
k_()
aiStep()
method_6007()
tickMovement()
public static AttributeSupplier$Builder
q()
createAttributes()
method_26893()
createSheepAttributes()
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public float
J(float arg0)
getHeadEatPositionScale(float arg0)
method_6628(float arg0)
getNeckAngle(float delta)
public float
K(float arg0)
getHeadEatAngleScale(float arg0)
method_6641(float arg0)
getHeadAngle(float delta)
public InteractionResult
b(cqs arg0, btx arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
a(aro arg0, awm arg1, cys arg2)
shear(ServerLevel arg0, SoundSource arg1, ItemStack arg2)
method_6636(class_3218 arg0, class_3419 arg1, class_1799 arg2)
sheared(ServerWorld arg0, SoundCategory arg1, ItemStack arg2)
public boolean
a()
readyForShearing()
method_27072()
isShearable()
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(iu arg0, dzo arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public DyeColor
t()
getColor()
method_6633()
getColor()
public void
b(cxq arg0)
setColor(DyeColor arg0)
method_6631(class_1767 arg0)
setColor(DyeColor color)
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public boolean
x()
isSheared()
method_6629()
isSheared()
public void
w(boolean arg0)
setSheared(boolean arg0)
method_6635(boolean arg0)
setSheared(boolean sheared)
public static DyeColor
a(azt arg0)
getRandomSheepColor(RandomSource arg0)
method_6632(class_5819 arg0)
generateDefaultColor(Random random)
public Sheep
b(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6640(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public void
R()
ate()
method_5983()
onEatingGrass()
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)