Package net.minecraft.world.entity
Interface NeutralMob
public interface NeutralMob
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addPersistentAngerSaveData(CompoundTag p_21679_)
boolean
canAttack(LivingEntity p_181126_)
default void
int
default boolean
isAngry()
default boolean
isAngryAt(LivingEntity p_21675_)
default boolean
isAngryAtAllPlayers(Level p_21671_)
default void
playerDied(Player p_21677_)
default void
readPersistentAngerSaveData(Level p_147286_, CompoundTag p_147287_)
void
setLastHurtByMob(LivingEntity p_21669_)
void
setLastHurtByPlayer(Player p_21680_)
void
setPersistentAngerTarget(UUID p_21672_)
void
setRemainingPersistentAngerTime(int p_21673_)
void
setTarget(LivingEntity p_21681_)
void
default void
default void
updatePersistentAnger(ServerLevel p_21667_, boolean p_21668_)
-
Field Details
-
TAG_ANGER_TIME
- See Also:
- Constant Field Values
-
TAG_ANGRY_AT
- See Also:
- Constant Field Values
-
-
Method Details
-
getRemainingPersistentAngerTime
int getRemainingPersistentAngerTime() -
setRemainingPersistentAngerTime
void setRemainingPersistentAngerTime(int p_21673_) -
getPersistentAngerTarget
-
setPersistentAngerTarget
-
startPersistentAngerTimer
void startPersistentAngerTimer() -
addPersistentAngerSaveData
-
readPersistentAngerSaveData
-
updatePersistentAnger
-
isAngryAt
-
isAngryAtAllPlayers
-
isAngry
default boolean isAngry() -
playerDied
-
forgetCurrentTargetAndRefreshUniversalAnger
default void forgetCurrentTargetAndRefreshUniversalAnger() -
stopBeingAngry
default void stopBeingAngry() -
getLastHurtByMob
-
setLastHurtByMob
-
setLastHurtByPlayer
-
setTarget
-
canAttack
-
getTarget
-