Package net.minecraft.entity
Interface IAngerable
- All Known Implementing Classes:
BeeEntity
,EndermanEntity
,IronGolemEntity
,PolarBearEntity
,WolfEntity
,ZombifiedPiglinEntity
public interface IAngerable
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addPersistentAngerSaveData
(CompoundNBT p_233682_1_) default void
int
default boolean
isAngry()
default boolean
isAngryAt
(LivingEntity p_233680_1_) default boolean
isAngryAtAllPlayers
(World p_241357_1_) default void
playerDied
(PlayerEntity p_233681_1_) default void
readPersistentAngerSaveData
(ServerWorld p_241358_1_, CompoundNBT p_241358_2_) void
setLastHurtByMob
(LivingEntity p_70604_1_) void
setLastHurtByPlayer
(PlayerEntity p_230246_1_) void
setPersistentAngerTarget
(UUID p_230259_1_) void
setRemainingPersistentAngerTime
(int p_230260_1_) void
setTarget
(LivingEntity p_70624_1_) void
default void
default void
updatePersistentAnger
(ServerWorld p_241359_1_, boolean p_241359_2_)
-
Method Details
-
getRemainingPersistentAngerTime
int getRemainingPersistentAngerTime() -
setRemainingPersistentAngerTime
void setRemainingPersistentAngerTime(int p_230260_1_) -
getPersistentAngerTarget
-
setPersistentAngerTarget
-
startPersistentAngerTimer
void startPersistentAngerTimer() -
addPersistentAngerSaveData
-
readPersistentAngerSaveData
-
updatePersistentAnger
-
isAngryAt
-
isAngryAtAllPlayers
-
isAngry
default boolean isAngry() -
playerDied
-
forgetCurrentTargetAndRefreshUniversalAnger
default void forgetCurrentTargetAndRefreshUniversalAnger() -
stopBeingAngry
default void stopBeingAngry() -
setLastHurtByMob
-
setLastHurtByPlayer
-
setTarget
-
getTarget
-