Class Dummy<T>

java.lang.Object
com.ticxo.modelengine.api.entity.Dummy<T>
All Implemented Interfaces:
BaseEntity<T>, DataIO

public class Dummy<T> extends Object implements BaseEntity<T>
  • Field Details

    • entityId

      protected final int entityId
    • uuid

      protected final UUID uuid
    • original

      protected final T original
    • data

      protected final DummyEntityData<T> data
    • bodyRotationController

      protected final BodyRotationController bodyRotationController
    • moveController

      protected final MoveController moveController
    • lookController

      protected final LookController lookController
    • detectingPlayers

      protected boolean detectingPlayers
    • isRemoved

      protected boolean isRemoved
    • isWalking

      protected boolean isWalking
    • isStrafing

      protected boolean isStrafing
    • isJumping

      protected boolean isJumping
    • isFlying

      protected boolean isFlying
    • yHeadRot

      protected float yHeadRot
    • xHeadRot

      protected float xHeadRot
    • yBodyRot

      protected float yBodyRot
  • Constructor Details

    • Dummy

      public Dummy()
    • Dummy

      public Dummy(T original)
    • Dummy

      public Dummy(UUID uuid, T original)
    • Dummy

      public Dummy(int id, UUID uuid, T original)
  • Method Details

    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface BaseEntity<T>
    • getUUID

      public UUID getUUID()
      Specified by:
      getUUID in interface BaseEntity<T>
    • getRenderRadius

      public int getRenderRadius()
      Specified by:
      getRenderRadius in interface BaseEntity<T>
    • setRenderRadius

      public void setRenderRadius(int radius)
      Specified by:
      setRenderRadius in interface BaseEntity<T>
    • getYRot

      public float getYRot()
      Specified by:
      getYRot in interface BaseEntity<T>
    • setLocation

      public void setLocation(org.bukkit.Location location)
    • syncLocation

      public void syncLocation(org.bukkit.Location location)
    • setForceViewing

      public void setForceViewing(org.bukkit.entity.Player player, boolean flag)
    • setForceHidden

      public void setForceHidden(org.bukkit.entity.Player player, boolean flag)
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface BaseEntity<T>
    • setVisible

      public void setVisible(boolean flag)
      Specified by:
      setVisible in interface BaseEntity<T>
    • isForcedAlive

      public boolean isForcedAlive()
      Specified by:
      isForcedAlive in interface BaseEntity<T>
    • setForcedAlive

      public void setForcedAlive(boolean flag)
      Specified by:
      setForcedAlive in interface BaseEntity<T>
    • getMaxStepHeight

      public double getMaxStepHeight()
      Specified by:
      getMaxStepHeight in interface BaseEntity<T>
    • setMaxStepHeight

      public void setMaxStepHeight(double stepHeight)
      Specified by:
      setMaxStepHeight in interface BaseEntity<T>
    • setCollidableWith

      public void setCollidableWith(org.bukkit.entity.Entity entity, boolean flag)
      Specified by:
      setCollidableWith in interface BaseEntity<T>
    • hurt

      public boolean hurt(@Nullable @Nullable org.bukkit.entity.HumanEntity player, Object nmsDamageCause, float damage)
      Specified by:
      hurt in interface BaseEntity<T>
    • interact

      public EntityHandler.InteractionResult interact(org.bukkit.entity.HumanEntity player, org.bukkit.inventory.EquipmentSlot slot)
      Specified by:
      interact in interface BaseEntity<T>
    • getEntityId

      public int getEntityId()
      Specified by:
      getEntityId in interface BaseEntity<T>
    • getOriginal

      public T getOriginal()
      Specified by:
      getOriginal in interface BaseEntity<T>
    • getData

      public DummyEntityData<T> getData()
      Specified by:
      getData in interface BaseEntity<T>
    • getBodyRotationController

      public BodyRotationController getBodyRotationController()
      Specified by:
      getBodyRotationController in interface BaseEntity<T>
    • getMoveController

      public MoveController getMoveController()
      Specified by:
      getMoveController in interface BaseEntity<T>
    • getLookController

      public LookController getLookController()
      Specified by:
      getLookController in interface BaseEntity<T>
    • isDetectingPlayers

      public boolean isDetectingPlayers()
    • isRemoved

      public boolean isRemoved()
      Specified by:
      isRemoved in interface BaseEntity<T>
    • isWalking

      public boolean isWalking()
      Specified by:
      isWalking in interface BaseEntity<T>
    • isStrafing

      public boolean isStrafing()
      Specified by:
      isStrafing in interface BaseEntity<T>
    • isJumping

      public boolean isJumping()
      Specified by:
      isJumping in interface BaseEntity<T>
    • isFlying

      public boolean isFlying()
      Specified by:
      isFlying in interface BaseEntity<T>
    • getYHeadRot

      public float getYHeadRot()
      Specified by:
      getYHeadRot in interface BaseEntity<T>
    • getXHeadRot

      public float getXHeadRot()
      Specified by:
      getXHeadRot in interface BaseEntity<T>
    • getYBodyRot

      public float getYBodyRot()
      Specified by:
      getYBodyRot in interface BaseEntity<T>
    • setDetectingPlayers

      public void setDetectingPlayers(boolean detectingPlayers)
    • setRemoved

      public void setRemoved(boolean isRemoved)
    • setWalking

      public void setWalking(boolean isWalking)
    • setStrafing

      public void setStrafing(boolean isStrafing)
    • setJumping

      public void setJumping(boolean isJumping)
    • setFlying

      public void setFlying(boolean isFlying)
    • setYHeadRot

      public void setYHeadRot(float yHeadRot)
    • setXHeadRot

      public void setXHeadRot(float xHeadRot)
    • setYBodyRot

      public void setYBodyRot(float yBodyRot)