Package eu.sculkpowered.server.entity
Interface LivingEntity
- All Superinterfaces:
Entity
,Sound.Emitter
,Viewable
- All Known Subinterfaces:
Animal
,ArmorStand
,Axolotl
,Bat
,Bee
,Blaze
,Camel
,Cat
,Chicken
,Cod
,Cow
,Creeper
,Dolphin
,Donkey
,Drowned
,ElderGuardian
,EnderDragon
,Enderman
,Endermite
,Evoker
,Fox
,Frog
,Ghast
,Giant
,Goat
,Guardian
,Hoglin
,Horse
,Husk
,Illusioner
,IronGolem
,Llama
,MagmaCube
,Mob
,Monster
,Mooshroom
,Mule
,Ocelot
,Panda
,Parrot
,Phantom
,Pig
,Piglin
,PiglinBrute
,Pillager
,Player
,PolarBear
,Pufferfish
,Rabbit
,Raider
,Ravager
,Salmon
,Sheep
,Shulker
,Silverfish
,Skeleton
,SkeletonHorse
,Slime
,Sniffer
,SnowGolem
,Spider
,Squid
,Stray
,Strider
,Tadpole
,TraderLlama
,TropicalFish
,Turtle
,Vex
,Villager
,Vindicator
,WanderingTrader
,Warden
,Witch
,Wither
,WitherSkeleton
,Wolf
,Zoglin
,Zombie
,ZombieHorse
,ZombieVillager
,ZombifiedPiglin
Represents a living entity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.sculkpowered.server.entity.Entity
Entity.Pose
-
Method Summary
Modifier and TypeMethodDescription@NotNull AttributeValue
Gets the attribute value by the attribute.@NotNull EntityEquipment
Gets the equipment from the entity.float
health()
Gets the health of the entity.void
health
(float health) Sets the health of the entity.boolean
Gets whether the player has a potion effect ambient.int
Gets the number of arrows in the entity.void
numberOfArrows
(int arrows) Sets the number of arrows in the entity.int
Gets the number of bee stingers in the entity.void
numberOfBeeStingers
(int beeStingers) Sets the number of bee stingers in the entity.void
potionEffectAmbient
(boolean ambient) Sets whether the player has a potion effect ambient.int
Gets the potion effect color of the entity.void
potionEffectColor
(int effectColor) Sets the potion effect color of the entity.Methods inherited from interface eu.sculkpowered.server.entity.Entity
crouching, customName, customName, customNameVisible, customNameVisible, glowing, glowing, gravity, hasGravity, id, invisible, invisible, onFire, pose, pose, position, silent, silent, sprinting, swimming, teleport, type, uniqueId, velocity, velocity, world, world
Methods inherited from interface eu.sculkpowered.server.Viewable
addViewer, removeViewer, viewers
-
Method Details
-
health
float health()Gets the health of the entity.- Returns:
- the health of this entity
- Since:
- 1.0.0
-
health
void health(float health) Sets the health of the entity.- Parameters:
health
- the health to set- Since:
- 1.0.0
-
potionEffectColor
int potionEffectColor()Gets the potion effect color of the entity.- Returns:
- the potion effect color of the entity
- Since:
- 1.0.0
-
potionEffectColor
void potionEffectColor(int effectColor) Sets the potion effect color of the entity.- Parameters:
effectColor
- the effect color to set- Since:
- 1.0.0
-
isPotionEffectAmbient
boolean isPotionEffectAmbient()Gets whether the player has a potion effect ambient.- Returns:
- whether the player has a potion effect ambient
- Since:
- 1.0.0
-
potionEffectAmbient
void potionEffectAmbient(boolean ambient) Sets whether the player has a potion effect ambient.- Parameters:
ambient
- whether the player has a potion effect ambient- Since:
- 1.0.0
-
numberOfArrows
int numberOfArrows()Gets the number of arrows in the entity.- Returns:
- the number of arrows in the entity
- Since:
- 1.0.0
-
numberOfArrows
void numberOfArrows(int arrows) Sets the number of arrows in the entity.- Parameters:
arrows
- the number of arrows- Since:
- 1.0.0
-
numberOfBeeStingers
int numberOfBeeStingers()Gets the number of bee stingers in the entity.- Returns:
- the number of bee stingers in the entity
- Since:
- 1.0.0
-
numberOfBeeStingers
void numberOfBeeStingers(int beeStingers) Sets the number of bee stingers in the entity.- Parameters:
beeStingers
- the number of bee stingers- Since:
- 1.0.0
-
attribute
Gets the attribute value by the attribute.- Parameters:
attribute
- the attribute- Returns:
- the value
- Since:
- 1.0.0
-
equipment
Gets the equipment from the entity.- Returns:
- the equipment
-