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 intprotected booleanprotected intprotected booleanprotected floatprotected booleanprotected booleanprotected intprotected 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 TypeMethodDescriptionintintfloatintorg.cloudburstmc.math.vector.Vector3ibooleanbooleanbooleanvoidsetAbsorption(int absorption) voidsetActiveHand(EquipmentSlot activeHand) voidsetArrowsInEntity(int arrowsInEntity) voidsetHandActive(boolean handActive) voidsetHealth(float health) voidsetInRiptideSpinAttack(boolean inRiptideSpinAttack) voidsetPotionEffectAmbient(boolean potionEffectAmbient) voidsetPotionEffectColor(int potionEffectColor) voidsetSleepingLocation(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)
-