net.minecraft.entity.mob

public class WitchEntity

extends RaiderEntity implements RangedAttackMob

All mapped superinterfaces:

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

net.minecraft.world.entity.monster.Witch
net.minecraft.class_1640
net.minecraft.entity.mob.WitchEntity

Field summary

Modifier and TypeField
private static final Identifier
SPEED_MODIFIER_DRINKING_ID
field_7418
DRINKING_SPEED_PENALTY_MODIFIER_ID
private static final EntityAttributeModifier
SPEED_MODIFIER_DRINKING
field_7416
DRINKING_SPEED_PENALTY_MODIFIER
private static final TrackedData<Boolean>
DATA_USING_ITEM
field_7419
DRINKING
private int
usingTime
field_7417
drinkTimeLeft
private RaidGoal<RaiderEntity>
healRaidersGoal
field_17283
raidGoal
private DisableableFollowTargetGoal<PlayerEntity>
attackPlayersGoal
field_17284
attackPlayerGoal

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder 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()
public void
setUsingItem(boolean using)
method_7192(boolean arg0)
setDrinking(boolean drinking)
public boolean
isDrinkingPotion()
method_7193()
isDrinking()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26927()
createWitchAttributes()
public void
aiStep()
method_6007()
tickMovement()
public SoundEvent
getCelebrateSound()
method_20033()
getCelebratingSound()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
protected float
getDamageAfterMagicAbsorb(DamageSource damageSource, float damage)
method_6036(class_1282 arg0, float arg1)
modifyAppliedDamage(DamageSource arg0, float arg1)
public void
performRangedAttack(LivingEntity target, float power)
method_7105(class_1309 arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
public float
rangedAttackUncertainty(Level level)
method_1_7455(class_1937 arg0)
getShotDivergence(World arg0)
public void
applyRaidBuffs(ServerLevel level, int wave, boolean isCaptain)
method_16484(class_3218 arg0, int arg1, boolean arg2)
addBonusForWave(ServerWorld arg0, int arg1, boolean arg2)
public boolean
canBeLeader()
method_16485()
canLead()
private boolean
lambda$registerGoals$0(LivingEntity arg0, ServerLevel arg1)
method_16474(class_1309 arg0, class_3218 arg1)
method_16474(LivingEntity target, ServerWorld world)