Class McEntity
java.lang.Object
com.shanebeestudios.nms.api.world.entity.McEntity
- Direct Known Subclasses:
McPlayer
Wrapper for Minecraft Entity
-
Method Summary
Modifier and TypeMethodDescriptionGet the Bukkit version of this Entitydouble
Get the gravity of this entityint
getId()
Get the Entity ID of this entityGet the wrapped level of this entitystatic McEntity
wrap
(net.minecraft.world.entity.Entity nmsEntity) Wrap a Minecraft Entitystatic McEntity
Wrap a Bukkit Entity
-
Method Details
-
wrap
Wrap a Minecraft Entity- Parameters:
nmsEntity
- Minecraft Entity to wrap- Returns:
- Wrapped Entity
-
wrap
Wrap a Bukkit Entity- Parameters:
bukkitEntity
- Bukkit Entity to wrap- Returns:
- Wrapped Entity
-
getBukkitEntity
Get the Bukkit version of this Entity- Returns:
- Bukkit Entity
-
getMCLevel
Get the wrapped level of this entity- Returns:
- Wrapped level of entity
-
getId
public int getId()Get the Entity ID of this entity- Returns:
- ID of entity
-
getGravity
public double getGravity()Get the gravity of this entity- Returns:
- Gravity of entity
-