Package com.ticxo.modelengine.api.entity
Class Dummy<T>
java.lang.Object
com.ticxo.modelengine.api.entity.Dummy<T>
- All Implemented Interfaces:
BaseEntity<T>
,DataIO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BodyRotationController
protected final DummyEntityData<T>
protected boolean
protected final int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected final LookController
protected final MoveController
protected final T
protected final UUID
protected float
protected float
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
double
int
getUUID()
float
float
float
float
getYRot()
boolean
interact
(org.bukkit.entity.HumanEntity player, org.bukkit.inventory.EquipmentSlot slot) boolean
isAlive()
boolean
boolean
isFlying()
boolean
boolean
boolean
boolean
boolean
boolean
void
setCollidableWith
(org.bukkit.entity.Entity entity, boolean flag) void
setDetectingPlayers
(boolean detectingPlayers) void
setFlying
(boolean isFlying) void
setForcedAlive
(boolean flag) void
setForceHidden
(org.bukkit.entity.Player player, boolean flag) void
setForceViewing
(org.bukkit.entity.Player player, boolean flag) void
setJumping
(boolean isJumping) void
setLocation
(org.bukkit.Location location) void
setMaxStepHeight
(double stepHeight) void
setRemoved
(boolean isRemoved) void
setRenderRadius
(int radius) void
setStrafing
(boolean isStrafing) void
setVisible
(boolean flag) void
setWalking
(boolean isWalking) void
setXHeadRot
(float xHeadRot) void
setYBodyRot
(float yBodyRot) void
setYHeadRot
(float yHeadRot) void
syncLocation
(org.bukkit.Location location) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ticxo.modelengine.api.entity.BaseEntity
getLocation, getPassengers, load, save
-
Field Details
-
entityId
protected final int entityId -
uuid
-
original
-
data
-
bodyRotationController
-
moveController
-
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
-
Dummy
-
Dummy
-
-
Method Details
-
isAlive
public boolean isAlive()- Specified by:
isAlive
in interfaceBaseEntity<T>
-
getUUID
- Specified by:
getUUID
in interfaceBaseEntity<T>
-
getRenderRadius
public int getRenderRadius()- Specified by:
getRenderRadius
in interfaceBaseEntity<T>
-
setRenderRadius
public void setRenderRadius(int radius) - Specified by:
setRenderRadius
in interfaceBaseEntity<T>
-
getYRot
public float getYRot()- Specified by:
getYRot
in interfaceBaseEntity<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 interfaceBaseEntity<T>
-
setVisible
public void setVisible(boolean flag) - Specified by:
setVisible
in interfaceBaseEntity<T>
-
isForcedAlive
public boolean isForcedAlive()- Specified by:
isForcedAlive
in interfaceBaseEntity<T>
-
setForcedAlive
public void setForcedAlive(boolean flag) - Specified by:
setForcedAlive
in interfaceBaseEntity<T>
-
getMaxStepHeight
public double getMaxStepHeight()- Specified by:
getMaxStepHeight
in interfaceBaseEntity<T>
-
setMaxStepHeight
public void setMaxStepHeight(double stepHeight) - Specified by:
setMaxStepHeight
in interfaceBaseEntity<T>
-
setCollidableWith
public void setCollidableWith(org.bukkit.entity.Entity entity, boolean flag) - Specified by:
setCollidableWith
in interfaceBaseEntity<T>
-
hurt
public boolean hurt(@Nullable @Nullable org.bukkit.entity.HumanEntity player, Object nmsDamageCause, float damage) - Specified by:
hurt
in interfaceBaseEntity<T>
-
interact
public EntityHandler.InteractionResult interact(org.bukkit.entity.HumanEntity player, org.bukkit.inventory.EquipmentSlot slot) - Specified by:
interact
in interfaceBaseEntity<T>
-
getEntityId
public int getEntityId()- Specified by:
getEntityId
in interfaceBaseEntity<T>
-
getOriginal
- Specified by:
getOriginal
in interfaceBaseEntity<T>
-
getData
- Specified by:
getData
in interfaceBaseEntity<T>
-
getBodyRotationController
- Specified by:
getBodyRotationController
in interfaceBaseEntity<T>
-
getMoveController
- Specified by:
getMoveController
in interfaceBaseEntity<T>
-
getLookController
- Specified by:
getLookController
in interfaceBaseEntity<T>
-
isDetectingPlayers
public boolean isDetectingPlayers() -
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceBaseEntity<T>
-
isWalking
public boolean isWalking()- Specified by:
isWalking
in interfaceBaseEntity<T>
-
isStrafing
public boolean isStrafing()- Specified by:
isStrafing
in interfaceBaseEntity<T>
-
isJumping
public boolean isJumping()- Specified by:
isJumping
in interfaceBaseEntity<T>
-
isFlying
public boolean isFlying()- Specified by:
isFlying
in interfaceBaseEntity<T>
-
getYHeadRot
public float getYHeadRot()- Specified by:
getYHeadRot
in interfaceBaseEntity<T>
-
getXHeadRot
public float getXHeadRot()- Specified by:
getXHeadRot
in interfaceBaseEntity<T>
-
getYBodyRot
public float getYBodyRot()- Specified by:
getYBodyRot
in interfaceBaseEntity<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)
-