Class EntityAPIManager

java.lang.Object
me.ulrich.clans.api.EntityAPIManager
All Implemented Interfaces:
EntityAPI

public class EntityAPIManager extends Object implements EntityAPI
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    animateEntity(int entityID, me.ulrich.entitywizard.packetevents.wrapper.play.server.WrapperPlayServerEntityAnimation.EntityAnimationType animation)
     
    me.ulrich.entitywizard.packetevents.util.Vector3d
    calculateVelocity(me.ulrich.entitywizard.packetevents.util.Vector3d from, me.ulrich.entitywizard.packetevents.util.Vector3d to, int heightGain)
     
    Optional<me.ulrich.entitywizard.entitylib.wrapper.WrapperEntity>
    createCustomMetaEntity(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType type, EntityOptionsData optionsData, me.ulrich.entitywizard.packetevents.protocol.world.Location spawnLocation)
     
    createEntity(org.bukkit.entity.Player player, org.bukkit.Location location, me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType, EntityOptionsData optionsData, List<me.ulrich.entitywizard.packetevents.protocol.player.Equipment> equipament, List<org.bukkit.entity.Player> viewers)
     
    void
    createEntityMeta(me.ulrich.entitywizard.entitylib.wrapper.WrapperEntity entity, me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType, EntityOptionsData optionsData)
     
    void
    destroyEntity(int entityID)
     
    void
    entityAddView(int entityID, UUID playerUUID)
     
    void
    entityAddView(int entityID, org.bukkit.entity.Player player)
     
    void
    entityRelativeMove(int entityID, me.ulrich.entitywizard.packetevents.protocol.world.Location location, boolean ground)
     
    void
    entityRemoveView(int entityID, UUID playerUUID)
     
    void
    entityRemoveView(int entityID, org.bukkit.entity.Player player)
     
    void
    entityRename(int entityID, Optional<String> name)
     
    void
    entityRotation(int entityID, float yaw, float pitch)
     
    void
    entitySetGlowing(int entityID, boolean glowing)
     
    void
    entitySetInvisible(int entityID, boolean invisible)
     
    void
    entitySetViewDistance(int entityID, int distance)
     
    void
    entitySetViews(int entityID, List<org.bukkit.entity.Player> viewers)
     
    void
    entitySetViewsUUID(int entityID, List<UUID> viewers)
     
    void
    entityTeleport(int entityID, me.ulrich.entitywizard.packetevents.protocol.world.Location location, boolean ground)
     
    void
    entityTeleport(int entityID, me.ulrich.entitywizard.packetevents.util.Vector3d newPosition, float yaw, float pitch, boolean ground)
     
    void
    equipEntity(int entityID, List<me.ulrich.entitywizard.packetevents.protocol.player.Equipment> equipaments)
     
    me.ulrich.entitywizard.packetevents.util.Vector3d
    genVec(me.ulrich.entitywizard.packetevents.protocol.world.Location a, me.ulrich.entitywizard.packetevents.protocol.world.Location b)
     
     
    boolean
    isAbstractEntity(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
     
    boolean
    isAnimal(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
     
    boolean
    isItem(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
     
    boolean
    isMob(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
     
    boolean
    isMonster(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
     
    void
    passegerEntity(int entityID, int[] passegers)
     
    void
    velocityEntity(int entityID, me.ulrich.entitywizard.packetevents.util.Vector3d velocityVector)
     
    void
    WalkTo(Clans plugin, UUID playerSender, int entityID, double velocity, Object targetLocation, boolean run, boolean returns)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntityAPIManager

      public EntityAPIManager(Clans clans)
  • Method Details

    • getPlugin

      public Clans getPlugin()
    • WalkTo

      public void WalkTo(Clans plugin, UUID playerSender, int entityID, double velocity, Object targetLocation, boolean run, boolean returns)
      Specified by:
      WalkTo in interface EntityAPI
    • isAnimal

      public boolean isAnimal(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
      Specified by:
      isAnimal in interface EntityAPI
    • isMonster

      public boolean isMonster(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
      Specified by:
      isMonster in interface EntityAPI
    • isMob

      public boolean isMob(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
      Specified by:
      isMob in interface EntityAPI
    • isAbstractEntity

      public boolean isAbstractEntity(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
      Specified by:
      isAbstractEntity in interface EntityAPI
    • isItem

      public boolean isItem(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType)
      Specified by:
      isItem in interface EntityAPI
    • createEntityMeta

      public void createEntityMeta(me.ulrich.entitywizard.entitylib.wrapper.WrapperEntity entity, me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType, EntityOptionsData optionsData)
      Specified by:
      createEntityMeta in interface EntityAPI
    • createEntity

      public Optional<SpawnedEntityData> createEntity(org.bukkit.entity.Player player, org.bukkit.Location location, me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType entityType, EntityOptionsData optionsData, List<me.ulrich.entitywizard.packetevents.protocol.player.Equipment> equipament, List<org.bukkit.entity.Player> viewers)
      Specified by:
      createEntity in interface EntityAPI
    • createCustomMetaEntity

      public Optional<me.ulrich.entitywizard.entitylib.wrapper.WrapperEntity> createCustomMetaEntity(me.ulrich.entitywizard.packetevents.protocol.entity.type.EntityType type, EntityOptionsData optionsData, me.ulrich.entitywizard.packetevents.protocol.world.Location spawnLocation)
      Specified by:
      createCustomMetaEntity in interface EntityAPI
    • entitySetViews

      public void entitySetViews(int entityID, List<org.bukkit.entity.Player> viewers)
      Specified by:
      entitySetViews in interface EntityAPI
    • entitySetViewsUUID

      public void entitySetViewsUUID(int entityID, List<UUID> viewers)
      Specified by:
      entitySetViewsUUID in interface EntityAPI
    • entitySetViewDistance

      public void entitySetViewDistance(int entityID, int distance)
      Specified by:
      entitySetViewDistance in interface EntityAPI
    • entitySetInvisible

      public void entitySetInvisible(int entityID, boolean invisible)
      Specified by:
      entitySetInvisible in interface EntityAPI
    • entitySetGlowing

      public void entitySetGlowing(int entityID, boolean glowing)
      Specified by:
      entitySetGlowing in interface EntityAPI
    • entityRename

      public void entityRename(int entityID, Optional<String> name)
      Specified by:
      entityRename in interface EntityAPI
    • entityTeleport

      public void entityTeleport(int entityID, me.ulrich.entitywizard.packetevents.protocol.world.Location location, boolean ground)
      Specified by:
      entityTeleport in interface EntityAPI
    • entityTeleport

      public void entityTeleport(int entityID, me.ulrich.entitywizard.packetevents.util.Vector3d newPosition, float yaw, float pitch, boolean ground)
      Specified by:
      entityTeleport in interface EntityAPI
    • entityRelativeMove

      public void entityRelativeMove(int entityID, me.ulrich.entitywizard.packetevents.protocol.world.Location location, boolean ground)
      Specified by:
      entityRelativeMove in interface EntityAPI
    • entityRotation

      public void entityRotation(int entityID, float yaw, float pitch)
      Specified by:
      entityRotation in interface EntityAPI
    • equipEntity

      public void equipEntity(int entityID, List<me.ulrich.entitywizard.packetevents.protocol.player.Equipment> equipaments)
      Specified by:
      equipEntity in interface EntityAPI
    • velocityEntity

      public void velocityEntity(int entityID, me.ulrich.entitywizard.packetevents.util.Vector3d velocityVector)
      Specified by:
      velocityEntity in interface EntityAPI
    • passegerEntity

      public void passegerEntity(int entityID, int[] passegers)
      Specified by:
      passegerEntity in interface EntityAPI
    • animateEntity

      public void animateEntity(int entityID, me.ulrich.entitywizard.packetevents.wrapper.play.server.WrapperPlayServerEntityAnimation.EntityAnimationType animation)
      Specified by:
      animateEntity in interface EntityAPI
    • destroyEntity

      public void destroyEntity(int entityID)
      Specified by:
      destroyEntity in interface EntityAPI
    • genVec

      public me.ulrich.entitywizard.packetevents.util.Vector3d genVec(me.ulrich.entitywizard.packetevents.protocol.world.Location a, me.ulrich.entitywizard.packetevents.protocol.world.Location b)
      Specified by:
      genVec in interface EntityAPI
    • calculateVelocity

      public me.ulrich.entitywizard.packetevents.util.Vector3d calculateVelocity(me.ulrich.entitywizard.packetevents.util.Vector3d from, me.ulrich.entitywizard.packetevents.util.Vector3d to, int heightGain)
      Specified by:
      calculateVelocity in interface EntityAPI
    • entityAddView

      public void entityAddView(int entityID, org.bukkit.entity.Player player)
      Specified by:
      entityAddView in interface EntityAPI
    • entityAddView

      public void entityAddView(int entityID, UUID playerUUID)
      Specified by:
      entityAddView in interface EntityAPI
    • entityRemoveView

      public void entityRemoveView(int entityID, org.bukkit.entity.Player player)
      Specified by:
      entityRemoveView in interface EntityAPI
    • entityRemoveView

      public void entityRemoveView(int entityID, UUID playerUUID)
      Specified by:
      entityRemoveView in interface EntityAPI