net.minecraft.entity.passive

public class WolfEntity

extends TameableEntity implements Angerable

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.wolf.Wolf
net.minecraft.class_1493
net.minecraft.entity.passive.WolfEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_INTERESTED_ID
field_6946
BEGGING
private static final TrackedData<Integer>
DATA_COLLAR_COLOR
field_6950
COLLAR_COLOR
private static final TrackedData<Long>
DATA_ANGER_END_TIME
field_63374
ANGER_END_TIME
private static final TrackedData<RegistryEntry<WolfVariant>>
DATA_VARIANT_ID
field_49722
VARIANT
private static final TrackedData<RegistryEntry<WolfSoundVariant>>
DATA_SOUND_VARIANT_ID
field_57075
SOUND_VARIANT
public static final TargetPredicate$EntityPredicate
PREY_SELECTOR
field_18004
FOLLOW_TAMED_PREDICATE
private static final float
START_HEALTH
field_30386
WILD_MAX_HEALTH
private static final float
TAME_HEALTH
field_30387
TAMED_MAX_HEALTH
private static final float
ARMOR_REPAIR_UNIT
field_49237
field_49237
public static final float
DEFAULT_TAIL_ANGLE
field_52477
field_52477
private static final DyeColor
DEFAULT_COLLAR_COLOR
field_56658
DEFAULT_COLLAR_COLOR
private float
interestedAngle
field_6952
begAnimationProgress
private float
interestedAngleO
field_6949
lastBegAnimationProgress
private boolean
isWet
field_6944
furWet
private boolean
isShaking
field_6951
canShakeWaterOff
private float
shakeAnim
field_6947
shakeProgress
private float
shakeAnimO
field_6945
lastShakeProgress
private static final UniformIntProvider
PERSISTENT_ANGER_TIME
field_25371
ANGER_TIME_RANGE
private LazyEntityReference<LivingEntity>
persistentAngerTarget
field_25372
angryAt

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public Identifier
getTexture()
method_58061()
getTextureId()
private RegistryEntry<WolfVariant>
getVariant()
method_58062()
getVariant()
private void
setVariant(Holder<WolfVariant> variant)
method_58063(class_6880<class_9346> arg0)
setVariant(RegistryEntry<WolfVariant> variant)
private RegistryEntry<WolfSoundVariant>
getSoundVariant()
method_68131()
getSoundVariant()
private WolfSoundVariant$Subvariant
getSoundSet()
method_1_786()
getSounds()
private void
setSoundVariant(Holder<WolfSoundVariant> soundVariant)
method_68132(class_6880<class_10823> arg0)
setSoundVariant(RegistryEntry<WolfSoundVariant> soundVariant)
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 static DefaultAttributeContainer$Builder
createAttributes()
method_26897()
createWolfAttributes()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
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)
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)
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 float
getSoundVolume()
method_6107()
getSoundVolume()
public void
aiStep()
method_6007()
tickMovement()
public void
tick()
method_5773()
tick()
private void
cancelShake()
method_31167()
resetShake()
public void
die(DamageSource source)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public float
getWetShade(float a)
method_6707(float arg0)
getFurWetBrightnessMultiplier(float tickProgress)
public float
getShakeAnim(float a)
method_61477(float arg0)
getShakeProgress(float tickProgress)
public float
getHeadRollAngle(float a)
method_6719(float arg0)
getBegAnimationProgress(float tickProgress)
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected void
actuallyHurt(ServerLevel level, DamageSource source, float damage)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
private boolean
canArmorAbsorb(DamageSource source)
method_57304(class_1282 arg0)
shouldArmorAbsorbDamage(DamageSource source)
protected void
applyTamingSideEffects()
method_56996()
updateAttributesForTamed()
protected void
hurtArmor(DamageSource damageSource, float damage)
method_6105(class_1282 arg0, float arg1)
damageArmor(DamageSource arg0, float arg1)
protected boolean
canShearEquipment(Player player)
method_71768(class_1657 arg0)
canRemoveSaddle(PlayerEntity arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
tryToTame(Player player)
method_58169(class_1657 arg0)
tryTame(PlayerEntity player)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public float
getTailAngle()
method_6714()
getTailAngle()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public int
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
public long
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
public void
setPersistentAngerEndTime(long endTime)
method_75132(long arg0)
setAngerEndTime(long arg0)
public void
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
public LazyEntityReference<LivingEntity>
getPersistentAngerTarget()
method_29508()
getAngryAt()
public void
setPersistentAngerTarget(EntityReference<LivingEntity> persistentAngerTarget)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
public DyeColor
getCollarColor()
method_6713()
getCollarColor()
private void
setCollarColor(DyeColor color)
method_6708(class_1767 arg0)
setCollarColor(DyeColor color)
public WolfEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public void
setIsInterested(boolean value)
method_6712(boolean arg0)
setBegging(boolean begging)
public boolean
canMate(Animal partner)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
public boolean
isInterested()
method_6710()
isBegging()
public boolean
wantsToAttack(LivingEntity target, LivingEntity owner)
method_6178(class_1309 arg0, class_1309 arg1)
canAttackWithOwner(LivingEntity arg0, LivingEntity arg1)
public boolean
canBeLeashed()
method_5931()
canBeLeashed()
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public static boolean
checkWolfSpawnRules(EntityType<Wolf> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_39450(class_1299<class_1493> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<WolfEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
static Random
access$000(Wolf arg0)
method_6716(class_1493 arg0)
method_6716(WolfEntity arg0)
private Optional
lambda$readAdditionalSaveData$0(ResourceKey arg0)
method_68128(class_5321 arg0)
method_68128(RegistryKey soundVariantKey)
private static void
lambda$addAdditionalSaveData$0(ValueOutput arg0, ResourceKey arg1)
method_68130(class_11372 arg0, class_5321 arg1)
method_68130(WriteView arg0, RegistryKey soundVariant)
private static boolean
lambda$static$0(LivingEntity arg0, ServerLevel arg1)
method_18444(class_1309 arg0, class_3218 arg1)
method_18444(LivingEntity entity, ServerWorld world)