Package org.core.entity.living.human
Interface AbstractHuman<E extends Entity<?>>
- All Superinterfaces:
Entity<E>
,EntityProjectileSource
,EntitySource
,InventoryHoldingEntity<E>
,LivingEntity<E>
,Positionable<SyncExactPosition>
,ProjectileSource
,Source
,Tamer<E>
- All Known Subinterfaces:
Human<E>
,HumanSnapshot
,LiveHuman
,LivePlayer
,Player<E>
,PlayerSnapshot
public interface AbstractHuman<E extends Entity<?>>
extends LivingEntity<E>, InventoryHoldingEntity<E>, Tamer<E>, EntityProjectileSource
-
Method Summary
Modifier and TypeMethodDescriptiondouble
int
getName()
double
boolean
setExhaustionLevel(double value)
setFood(int value)
setSaturationLevel(double value)
setSneaking(boolean sneaking)
Methods inherited from interface org.core.entity.Entity
addPassengers, addPassengers, clearPassengers, createSnapshot, getAttachedTo, getCustomNameComponent, getFacingDirection, getPassengers, getPitch, getPosition, getRoll, getType, getVelocity, getYaw, hasGravity, hasPassengers, isCustomNameVisible, isOnGround, isRemoved, removePassengers, removePassengers, setCustomName, setCustomName, setCustomNameVisible, setGravity, setPitch, setPosition, setPosition, setPosition, setPosition, setRoll, setVelocity, setVelocity, setYaw
Methods inherited from interface org.core.entity.InventoryHoldingEntity
getInventory
-
Method Details
-
getFoodLevel
int getFoodLevel() -
getExhaustionLevel
double getExhaustionLevel() -
setExhaustionLevel
- Throws:
IndexOutOfBoundsException
-
getSaturationLevel
double getSaturationLevel() -
setSaturationLevel
- Throws:
IndexOutOfBoundsException
-
getName
String getName() -
isSneaking
boolean isSneaking() -
setSneaking
-
setFood
- Throws:
IndexOutOfBoundsException
-