java.lang.Object
com.shanebeestudios.nms.api.world.entity.McEntity
Direct Known Subclasses:
McPlayer

public class McEntity extends Object
Wrapper for Minecraft Entity
  • Method Details

    • wrap

      public static McEntity wrap(net.minecraft.world.entity.Entity nmsEntity)
      Wrap a Minecraft Entity
      Parameters:
      nmsEntity - Minecraft Entity to wrap
      Returns:
      Wrapped Entity
    • wrap

      public static McEntity wrap(Entity bukkitEntity)
      Wrap a Bukkit Entity
      Parameters:
      bukkitEntity - Bukkit Entity to wrap
      Returns:
      Wrapped Entity
    • getBukkitEntity

      public Entity getBukkitEntity()
      Get the Bukkit version of this Entity
      Returns:
      Bukkit Entity
    • getMCLevel

      public McLevel 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