Package com.loohp.limbo.entity
Class LivingEntity
java.lang.Object
com.loohp.limbo.entity.Entity
com.loohp.limbo.entity.LivingEntity
- All Implemented Interfaces:
net.kyori.adventure.sound.Sound.Emitter
- Direct Known Subclasses:
ArmorStand
,Player
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected boolean
protected int
protected boolean
protected float
protected boolean
protected boolean
protected int
protected org.cloudburstmc.math.vector.Vector3i
-
Constructor Summary
ConstructorsConstructorDescriptionLivingEntity
(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, int entityId, UUID uuid, World world, double x, double y, double z, float yaw, float pitch) LivingEntity
(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, Location location) LivingEntity
(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, World world, double x, double y, double z, float yaw, float pitch) LivingEntity
(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, UUID uuid, Location location) LivingEntity
(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, UUID uuid, World world, double x, double y, double z, float yaw, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionint
int
float
int
org.cloudburstmc.math.vector.Vector3i
boolean
boolean
boolean
void
setAbsorption
(int absorption) void
setActiveHand
(EquipmentSlot activeHand) void
setArrowsInEntity
(int arrowsInEntity) void
setHandActive
(boolean handActive) void
setHealth
(float health) void
setInRiptideSpinAttack
(boolean inRiptideSpinAttack) void
setPotionEffectAmbient
(boolean potionEffectAmbient) void
setPotionEffectColor
(int potionEffectColor) void
setSleepingLocation
(org.cloudburstmc.math.vector.Vector3i sleepingLocation) Methods inherited from class com.loohp.limbo.entity.Entity
getAir, getCustomName, getDataWatcher, getEntityId, getLocation, getPitch, getPose, getType, getUniqueId, getWorld, getX, getY, getYaw, getZ, hasGravity, isCrouching, isCustomNameVisible, isElytraFlying, isGlowing, isInvisible, isOnFire, isSilent, isSprinting, isSwimming, isValid, remove, setAir, setCrouching, setCustomName, setCustomName, setCustomNameVisible, setElytraFlying, setGlowing, setGravity, setInvisible, setOnFire, setPitch, setPose, setSilent, setSprinting, setSwimming, setWorld, setX, setY, setYaw, setZ, teleport
-
Field Details
-
handActive
protected boolean handActive -
activeHand
protected boolean activeHand -
inRiptideSpinAttack
protected boolean inRiptideSpinAttack -
health
protected float health -
potionEffectColor
protected int potionEffectColor -
potionEffectAmbient
protected boolean potionEffectAmbient -
arrowsInEntity
protected int arrowsInEntity -
absorption
protected int absorption -
sleepingLocation
protected org.cloudburstmc.math.vector.Vector3i sleepingLocation
-
-
Constructor Details
-
LivingEntity
-
LivingEntity
-
LivingEntity
public LivingEntity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, World world, double x, double y, double z, float yaw, float pitch) -
LivingEntity
-
LivingEntity
public LivingEntity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, Location location)
-
-
Method Details
-
isHandActive
public boolean isHandActive() -
setHandActive
public void setHandActive(boolean handActive) -
getActiveHand
-
setActiveHand
-
isInRiptideSpinAttack
public boolean isInRiptideSpinAttack() -
setInRiptideSpinAttack
public void setInRiptideSpinAttack(boolean inRiptideSpinAttack) -
getHealth
public float getHealth() -
setHealth
public void setHealth(float health) -
getPotionEffectColor
public int getPotionEffectColor() -
setPotionEffectColor
public void setPotionEffectColor(int potionEffectColor) -
isPotionEffectAmbient
public boolean isPotionEffectAmbient() -
setPotionEffectAmbient
public void setPotionEffectAmbient(boolean potionEffectAmbient) -
getArrowsInEntity
public int getArrowsInEntity() -
setArrowsInEntity
public void setArrowsInEntity(int arrowsInEntity) -
getAbsorption
public int getAbsorption() -
setAbsorption
public void setAbsorption(int absorption) -
getSleepingLocation
public org.cloudburstmc.math.vector.Vector3i getSleepingLocation() -
setSleepingLocation
public void setSleepingLocation(org.cloudburstmc.math.vector.Vector3i sleepingLocation)
-