public class BukkitEntity extends Object implements AbstractEntity
Constructor and Description |
---|
BukkitEntity(org.bukkit.entity.Entity e) |
public org.bukkit.entity.Entity getBukkitEntity()
getBukkitEntity
in interface AbstractEntity
public org.bukkit.entity.Player getEntityAsPlayer()
public AbstractLocation getLocation()
getLocation
in interface AbstractEntity
public AbstractWorld getWorld()
getWorld
in interface AbstractEntity
public boolean isLiving()
isLiving
in interface AbstractEntity
public boolean isCreature()
isCreature
in interface AbstractEntity
public boolean isMonster()
isMonster
in interface AbstractEntity
public boolean isPlayer()
isPlayer
in interface AbstractEntity
public UUID getUniqueId()
getUniqueId
in interface AbstractEntity
public boolean hasLineOfSight(AbstractEntity e)
hasLineOfSight
in interface AbstractEntity
public void teleport(AbstractLocation l)
teleport
in interface AbstractEntity
public double getHealth()
getHealth
in interface AbstractEntity
public boolean isDead()
isDead
in interface AbstractEntity
public boolean isValid()
isValid
in interface AbstractEntity
public boolean remove()
remove
in interface AbstractEntity
public double getMaxHealth()
getMaxHealth
in interface AbstractEntity
public void setFireTicks(int ticks)
setFireTicks
in interface AbstractEntity
public String getCustomName()
getCustomName
in interface AbstractEntity
public void addPotionEffect(org.bukkit.potion.PotionEffect effect)
addPotionEffect
in interface AbstractEntity
public void setPassenger(org.bukkit.entity.Entity entity)
setPassenger
in interface AbstractEntity
public boolean hasGravity()
hasGravity
in interface AbstractEntity
public void setGravity(boolean bool)
setGravity
in interface AbstractEntity
public boolean hasAI()
hasAI
in interface AbstractEntity
public void setAI(boolean bool)
setAI
in interface AbstractEntity
public AbstractLocation getEyeLocation()
getEyeLocation
in interface AbstractEntity
public double getEyeHeight()
getEyeHeight
in interface AbstractEntity
public AbstractEntity getTarget()
getTarget
in interface AbstractEntity
public AbstractEntity getPassenger()
getPassenger
in interface AbstractEntity
public AbstractEntity getVehicle()
getVehicle
in interface AbstractEntity
public void eject()
eject
in interface AbstractEntity
public void setHealth(double d)
setHealth
in interface AbstractEntity
public String getName()
getName
in interface AbstractEntity
public void setMaxHealth(double health)
setMaxHealth
in interface AbstractEntity
public void damage(float damage)
damage
in interface AbstractEntity
public void setPassenger(AbstractEntity entity)
setPassenger
in interface AbstractEntity
public AbstractPlayer asPlayer()
asPlayer
in interface AbstractEntity
public void setNoDamageTicks(int ticks)
setNoDamageTicks
in interface AbstractEntity
public boolean isCitizensNPC()
isCitizensNPC
in interface AbstractEntity
public boolean isAnimal()
isAnimal
in interface AbstractEntity
public boolean isWaterMob()
isWaterMob
in interface AbstractEntity
public boolean isFlyingMob()
isFlyingMob
in interface AbstractEntity
public boolean isGliding()
isGliding
in interface AbstractEntity
public boolean hasPotionEffect(String type)
hasPotionEffect
in interface AbstractEntity
public boolean hasPotionEffect(String type, io.lumine.utils.numbers.RangedDouble level, io.lumine.utils.numbers.RangedDouble duration)
hasPotionEffect
in interface AbstractEntity
public boolean hasPotionEffect()
hasPotionEffect
in interface AbstractEntity
public boolean hasScoreboardTag(String tag)
hasScoreboardTag
in interface AbstractEntity
public void addScoreboardTag(String tag)
addScoreboardTag
in interface AbstractEntity
public void removeScoreboardTag(String tag)
removeScoreboardTag
in interface AbstractEntity
public void equipItemHead(AbstractItemStack item)
equipItemHead
in interface AbstractEntity
public void equipItemChest(AbstractItemStack item)
equipItemChest
in interface AbstractEntity
public void equipItemLegs(AbstractItemStack item)
equipItemLegs
in interface AbstractEntity
public void equipItemFeet(AbstractItemStack item)
equipItemFeet
in interface AbstractEntity
public void equipItemMainHand(AbstractItemStack item)
equipItemMainHand
in interface AbstractEntity
public void equipItemOffHand(AbstractItemStack item)
equipItemOffHand
in interface AbstractEntity
public void setDamage(double damage)
setDamage
in interface AbstractEntity
public double getDamage()
public void setMovementSpeed(double speed)
setMovementSpeed
in interface AbstractEntity
public void setAttackSpeed(double speed)
setAttackSpeed
in interface AbstractEntity
public int getLuck()
getLuck
in interface AbstractEntity
public int getEnchantmentLevel(String enchantmentName)
getEnchantmentLevel
in interface AbstractEntity
public int getEnchantmentLevelHeld(String enchantmentName)
getEnchantmentLevelHeld
in interface AbstractEntity
public void setMetadata(String key, Object value)
setMetadata
in interface AbstractEntity
public boolean hasMetadata(String key)
hasMetadata
in interface AbstractEntity
public void removeMetadata(String key)
removeMetadata
in interface AbstractEntity
public boolean isLoaded()
isLoaded
in interface AbstractEntity
public Optional<Object> getMetadata(String key)
getMetadata
in interface AbstractEntity
public AbstractVector getVelocity()
getVelocity
in interface AbstractEntity
public void setVelocity(AbstractVector velocity)
setVelocity
in interface AbstractEntity
public boolean isOnGround()
isOnGround
in interface AbstractEntity
Copyright © 2020. All rights reserved.