public abstract class GlowEntity extends Object implements org.bukkit.entity.Entity
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active
A flag indicating if this entity is currently active.
|
protected double |
airDrag
Velocity reduction applied each tick in air.
|
protected boolean |
applyDragBeforeAccel
If drag is applied before appling acceleration while calculating physics.
|
protected EntityBoundingBox |
boundingBox
The entity's bounding box, or null if it has no physical presence.
|
static int |
ENTITY_ID_NOBODY
An ID to use in network messages when the protocol calls for a 32-bit entity ID, but the
relevant Object doesn't exist, isn't an Entity, or is in a different World (and thus a
different space for 32-bit entity IDs).
|
protected int |
entityId
This entity's current identifier for its world.
|
protected org.bukkit.util.Vector |
gravityAccel
Gravity acceleration applied each tick.
|
protected double |
liquidDrag
Velocity reduction applied each tick in water.
|
protected org.bukkit.Location |
location
The current position.
|
protected MetadataMap |
metadata
The entity's metadata.
|
protected boolean |
passengerChanged |
protected org.bukkit.Location |
previousLocation
The position in the last cycle.
|
protected boolean |
removed
Whether this entity was forcibly removed from the world.
|
protected GlowServer |
server
The server this entity belongs to.
|
protected double |
slipMultiplier
The slipperiness multiplier applied according to the block this entity was on.
|
protected boolean |
teleported
Whether the entity should have its position resent as if teleported.
|
protected int |
ticksLived
A counter of how long this entity has existed.
|
protected GlowEntity |
vehicle
The entity this entity is currently riding.
|
protected org.bukkit.util.Vector |
velocity
The entity's velocity, applied each tick.
|
protected boolean |
velocityChanged
Whether the entity should have its velocity resent.
|
protected GlowWorld |
world
The world this entity belongs to.
|
protected ReadWriteLock |
worldLock
Lock to prevent concurrent modifications affected by switching worlds.
|
| Constructor and Description |
|---|
GlowEntity(org.bukkit.Location location)
Creates an entity and adds it to the specified world.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.permissions.PermissionAttachment |
addAttachment(org.bukkit.plugin.Plugin plugin) |
org.bukkit.permissions.PermissionAttachment |
addAttachment(org.bukkit.plugin.Plugin plugin,
int i) |
org.bukkit.permissions.PermissionAttachment |
addAttachment(org.bukkit.plugin.Plugin plugin,
String s,
boolean b) |
org.bukkit.permissions.PermissionAttachment |
addAttachment(org.bukkit.plugin.Plugin plugin,
String s,
boolean b,
int i) |
boolean |
addPassenger(org.bukkit.entity.Entity passenger) |
boolean |
addScoreboardTag(String tag) |
void |
collide(org.bukkit.block.Block block)
Collide with the target block.
|
List<com.flowpowered.network.Message> |
createAfterSpawnMessage(GlowSession session)
Creates a List of
Message which can be sent to a client directly after the entity is
spawned. |
abstract List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
List<com.flowpowered.network.Message> |
createUpdateMessage(GlowSession session)
Creates a
Message which can be sent to a client to update this entity. |
void |
damage(double amount) |
void |
damage(double amount,
org.bukkit.entity.Entity source) |
void |
damage(double amount,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) |
void |
damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) |
boolean |
eject() |
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
boolean |
equals(Object obj) |
boolean |
fromMobSpawner() |
org.bukkit.block.BlockFace |
getCardinalFacing()
Get the direction (SOUTH, WEST, NORTH, or EAST) this entity is facing.
|
org.bukkit.Chunk |
getChunk() |
String |
getCustomName() |
List<String> |
getCustomTags()
List of custom String data for the entity.
|
org.bukkit.Location |
getDismountLocation() |
Set<org.bukkit.permissions.PermissionAttachmentInfo> |
getEffectivePermissions() |
int |
getEntityId()
This entity's current identifier for its world.
|
org.bukkit.block.BlockFace |
getFacing()
Gets the full direction (including SOUTH_SOUTH_EAST etc) this entity is facing.
|
float |
getFallDistance()
The distance the entity is currently falling without touching the ground.
|
int |
getFireTicks()
How long the entity has been on fire, or 0 if it is not.
|
org.bukkit.util.Vector |
getGravityAccel()
Returns the change in velocity per physics tick due to gravity.
|
double |
getHeight() |
org.bukkit.event.entity.EntityDamageEvent |
getLastDamageCause()
An EntityDamageEvent representing the last damage cause on this entity.
|
List<GlowEntity> |
getLeashedEntities()
All entities that currently have this entity as leash holder.
|
org.bukkit.entity.Entity |
getLeashHolder()
Gets the entity that is currently leading this entity.
|
org.bukkit.Location |
getLocation() |
org.bukkit.Location |
getLocation(org.bukkit.Location loc) |
int |
getMaxFireTicks() |
MetadataMap |
getMetadata() |
List<org.bukkit.metadata.MetadataValue> |
getMetadata(String metadataKey) |
org.bukkit.Location |
getMountLocation() |
String |
getName() |
List<org.bukkit.entity.Entity> |
getNearbyEntities(double x,
double y,
double z) |
org.bukkit.Location |
getOrigin()
The original location of this entity.
|
org.bukkit.entity.Entity |
getPassenger() |
List<org.bukkit.entity.Entity> |
getPassengers() |
org.bukkit.block.PistonMoveReaction |
getPistonMoveReaction() |
int |
getPortalCooldown()
The Nether portal cooldown for the entity.
|
Set<String> |
getScoreboardTags() |
GlowServer |
getServer()
The server this entity belongs to.
|
int |
getTicksLived()
A counter of how long this entity has existed.
|
org.bukkit.entity.EntityType |
getType() |
UUID |
getUniqueId() |
GlowEntity |
getVehicle()
The entity this entity is currently riding.
|
org.bukkit.util.Vector |
getVelocity() |
double |
getWidth() |
GlowWorld |
getWorld()
The world this entity belongs to.
|
protected boolean |
hasDefaultLandingBehavior()
If true,
setRawLocation(Location, boolean) with fall true will call
setOnGround(boolean) according to whether or not our location is inside a solid
block. |
boolean |
hasFriction() |
boolean |
hasGravity() |
int |
hashCode() |
boolean |
hasMetadata(String metadataKey) |
boolean |
hasMoved()
Checks if this entity has moved this cycle.
|
boolean |
hasPermission(org.bukkit.permissions.Permission permission) |
boolean |
hasPermission(String s) |
boolean |
hasRotated()
Checks if this entity has rotated this cycle.
|
boolean |
intersects(BoundingBox box) |
boolean |
isCustomNameVisible() |
boolean |
isDead() |
boolean |
isEmpty() |
boolean |
isGlowing() |
boolean |
isInsideVehicle() |
boolean |
isInvulnerable()
Whether this entity is invulnerable.
|
boolean |
isLeashed() |
boolean |
isOnGround()
A flag indicting if the entity is on the ground.
|
boolean |
isOp()
Whether this entity has operator permissions.
|
boolean |
isPermissionSet(org.bukkit.permissions.Permission permission) |
boolean |
isPermissionSet(String s) |
boolean |
isRemoved()
Whether this entity was forcibly removed from the world.
|
boolean |
isSilent() |
boolean |
isTeleported()
Whether the entity should have its position resent as if teleported.
|
boolean |
isTouchingMaterial(org.bukkit.Material material)
Determine if this entity is intersecting a block of the specified type.
|
boolean |
isValid() |
boolean |
isWithinDistance(GlowEntity other)
Checks if this entity is within the visible radius of another.
|
boolean |
isWithinDistance(org.bukkit.Location loc)
Checks if this entity is within the visible radius of a location.
|
boolean |
leaveVehicle() |
void |
playEffect(org.bukkit.EntityEffect type) |
void |
playEffectKnownAndSelf(org.bukkit.EntityEffect type) |
void |
pulse()
Called every game cycle.
|
protected void |
pulsePhysics() |
void |
recalculatePermissions() |
void |
remove()
Destroys this entity by removing it from the world and marking it as not being active.
|
void |
removeAttachment(org.bukkit.permissions.PermissionAttachment permissionAttachment) |
void |
removeMetadata(String metadataKey,
org.bukkit.plugin.Plugin owningPlugin) |
boolean |
removePassenger(org.bukkit.entity.Entity passenger) |
boolean |
removeScoreboardTag(String tag) |
void |
reset()
Resets the previous location and other properties to their current value.
|
void |
sendMessage(String s) |
void |
sendMessage(String[] strings) |
void |
setAirDrag(double airDrag)
Velocity reduction applied each tick in air.
|
void |
setApplyDragBeforeAccel(boolean applyDragBeforeAccel)
If drag is applied before appling acceleration while calculating physics.
|
protected void |
setBoundingBox(double xz,
double y) |
void |
setCustomName(String name) |
void |
setCustomNameVisible(boolean flag) |
void |
setFallDistance(float distance) |
void |
setFireTicks(int fireTicks)
How long the entity has been on fire, or 0 if it is not.
|
void |
setFriction(boolean friction)
Whether friction applies to the entity.
|
void |
setGlowing(boolean glowing) |
void |
setGravity(boolean gravity)
Whether gravity applies to the entity.
|
void |
setGravityAccel(org.bukkit.util.Vector gravityAccel)
Gravity acceleration applied each tick.
|
void |
setInvulnerable(boolean invulnerable)
Whether this entity is invulnerable.
|
void |
setLastDamageCause(org.bukkit.event.entity.EntityDamageEvent lastDamageCause)
An EntityDamageEvent representing the last damage cause on this entity.
|
boolean |
setLeashHolder(org.bukkit.entity.Entity holder)
Sets the leash on this entity to be held by the supplied entity.
|
void |
setLeashHolderUniqueId(UUID uniqueId)
Set the unique ID of this entities leash holder.
|
void |
setLiquidDrag(double liquidDrag)
Velocity reduction applied each tick in water.
|
void |
setMetadata(String metadataKey,
org.bukkit.metadata.MetadataValue newMetadataValue) |
void |
setOnGround(boolean onGround)
Sets the on-ground flag and clears fall distance.
|
void |
setOp(boolean op)
Whether this entity has operator permissions.
|
boolean |
setPassenger(org.bukkit.entity.Entity newPassenger) |
void |
setPortalCooldown(int portalCooldown)
The Nether portal cooldown for the entity.
|
void |
setRawLocation(org.bukkit.Location location)
Sets this entity's location and applies fall damage calculations.
|
void |
setRawLocation(org.bukkit.Location location,
boolean fall)
Sets this entity's location.
|
void |
setSilent(boolean silent) |
protected void |
setSize(float xz,
float y) |
void |
setTicksLived(int ticksLived)
A counter of how long this entity has existed.
|
void |
setUniqueId(UUID uuid)
Sets this entity's unique identifier if possible.
|
void |
setVelocity(org.bukkit.util.Vector velocity) |
boolean |
shouldSave()
Checks whether this entity should be saved as part of the world.
|
org.bukkit.entity.Entity.Spigot |
spigot() |
boolean |
teleport(org.bukkit.entity.Entity destination) |
boolean |
teleport(org.bukkit.entity.Entity destination,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) |
boolean |
teleport(org.bukkit.Location location) |
boolean |
teleport(org.bukkit.Location location,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) |
protected boolean |
teleportToEnd()
Teleport this entity to the End.
|
protected boolean |
teleportToSpawn()
Teleport this entity to the spawn point of the main world.
|
String |
toString() |
protected void |
updateBoundingBox() |
public static final int ENTITY_ID_NOBODY
protected final GlowServer server
protected final MetadataMap metadata
protected final org.bukkit.Location location
protected final org.bukkit.Location previousLocation
protected final org.bukkit.util.Vector velocity
protected final ReadWriteLock worldLock
protected boolean active
protected int entityId
protected boolean teleported
protected boolean velocityChanged
protected int ticksLived
protected GlowEntity vehicle
protected EntityBoundingBox boundingBox
protected boolean passengerChanged
protected boolean removed
protected double airDrag
protected double liquidDrag
protected org.bukkit.util.Vector gravityAccel
protected double slipMultiplier
protected boolean applyDragBeforeAccel
public GlowEntity(org.bukkit.Location location)
location - The location of the entity.public void sendMessage(String s)
sendMessage in interface org.bukkit.command.CommandSenderpublic void sendMessage(String[] strings)
sendMessage in interface org.bukkit.command.CommandSenderpublic String getName()
getName in interface org.bukkit.command.CommandSenderpublic UUID getUniqueId()
getUniqueId in interface org.bukkit.entity.Entitypublic void setUniqueId(UUID uuid)
uuid - The new UUID. Must not be null.IllegalArgumentException - if the passed UUID is null.IllegalStateException - if a UUID has already been set.public boolean isDead()
isDead in interface org.bukkit.entity.Entitypublic boolean isValid()
isValid in interface org.bukkit.entity.Entitypublic org.bukkit.Location getLocation()
getLocation in interface org.bukkit.entity.Entitypublic org.bukkit.Location getLocation(org.bukkit.Location loc)
getLocation in interface org.bukkit.entity.Entitypublic org.bukkit.Chunk getChunk()
getChunk in interface org.bukkit.entity.Entitypublic org.bukkit.block.BlockFace getCardinalFacing()
public org.bukkit.block.BlockFace getFacing()
public org.bukkit.util.Vector getVelocity()
getVelocity in interface org.bukkit.entity.Entitypublic void setVelocity(org.bukkit.util.Vector velocity)
setVelocity in interface org.bukkit.entity.Entitypublic org.bukkit.util.Vector getGravityAccel()
public boolean teleport(org.bukkit.Location location)
teleport in interface org.bukkit.entity.Entitypublic boolean teleport(org.bukkit.entity.Entity destination)
teleport in interface org.bukkit.entity.Entitypublic boolean teleport(org.bukkit.Location location,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.bukkit.entity.Entitypublic boolean teleport(org.bukkit.entity.Entity destination,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.bukkit.entity.Entitypublic boolean isWithinDistance(GlowEntity other)
other - The other entity.true if the entities can see each other, false if not.public boolean isWithinDistance(org.bukkit.Location loc)
loc - The location.true if the entities can see each other, false if not.public boolean shouldSave()
public void pulse()
public void reset()
public void setRawLocation(org.bukkit.Location location,
boolean fall)
location - The new location.fall - Whether to calculate fall damage or not.public void setRawLocation(org.bukkit.Location location)
location - The new location.protected boolean hasDefaultLandingBehavior()
setRawLocation(Location, boolean) with fall true will call
setOnGround(boolean) according to whether or not our location is inside a solid
block.setOnGround(boolean) from setRawLocation(Location,
boolean); false otherwisepublic abstract List<com.flowpowered.network.Message> createSpawnMessage()
Messages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.public List<com.flowpowered.network.Message> createAfterSpawnMessage(GlowSession session)
Message which can be sent to a client directly after the entity is
spawned.session - Session to update this entity forpublic List<com.flowpowered.network.Message> createUpdateMessage(GlowSession session)
Message which can be sent to a client to update this entity.session - Session to update this entity forpublic boolean hasMoved()
true if so, false if not.public boolean hasRotated()
true if so, false if not.protected boolean teleportToSpawn()
true if the teleport was successful.protected boolean teleportToEnd()
true if the teleport was successful.protected void setSize(float xz,
float y)
public boolean isTouchingMaterial(org.bukkit.Material material)
If the entity has a defined bounding box, that is used to check for intersection. Otherwise, a less accurate calculation using only the entity's location and its surrounding blocks are used.
material - The material to check for.protected final void setBoundingBox(double xz,
double y)
public double getWidth()
getWidth in interface org.bukkit.entity.Entitypublic double getHeight()
getHeight in interface org.bukkit.entity.Entitypublic boolean intersects(BoundingBox box)
protected void pulsePhysics()
public void collide(org.bukkit.block.Block block)
block - a block whose type Material.isOccluding()protected void updateBoundingBox()
public int getMaxFireTicks()
getMaxFireTicks in interface org.bukkit.entity.Entitypublic void setFallDistance(float distance)
setFallDistance in interface org.bukkit.entity.Entitypublic void setOnGround(boolean onGround)
onGround - true if this entity is now on the ground; false otherwisepublic void remove()
remove in interface org.bukkit.entity.Entitypublic List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z)
getNearbyEntities in interface org.bukkit.entity.Entitypublic void playEffect(org.bukkit.EntityEffect type)
playEffect in interface org.bukkit.entity.Entitypublic void playEffectKnownAndSelf(org.bukkit.EntityEffect type)
public org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.Entitypublic boolean isInsideVehicle()
isInsideVehicle in interface org.bukkit.entity.Entitypublic boolean leaveVehicle()
leaveVehicle in interface org.bukkit.entity.Entitypublic String getCustomName()
getCustomName in interface org.bukkit.Nameablepublic void setCustomName(String name)
setCustomName in interface org.bukkit.Nameablepublic boolean isCustomNameVisible()
isCustomNameVisible in interface org.bukkit.entity.Entitypublic void setCustomNameVisible(boolean flag)
setCustomNameVisible in interface org.bukkit.entity.Entitypublic boolean isGlowing()
isGlowing in interface org.bukkit.entity.Entitypublic void setGlowing(boolean glowing)
setGlowing in interface org.bukkit.entity.Entitypublic org.bukkit.entity.Entity getPassenger()
getPassenger in interface org.bukkit.entity.Entitypublic List<org.bukkit.entity.Entity> getPassengers()
getPassengers in interface org.bukkit.entity.Entitypublic boolean removePassenger(org.bukkit.entity.Entity passenger)
removePassenger in interface org.bukkit.entity.Entitypublic boolean addPassenger(org.bukkit.entity.Entity passenger)
addPassenger in interface org.bukkit.entity.Entitypublic boolean setPassenger(org.bukkit.entity.Entity newPassenger)
setPassenger in interface org.bukkit.entity.Entitypublic org.bukkit.Location getMountLocation()
public org.bukkit.Location getDismountLocation()
public boolean isEmpty()
isEmpty in interface org.bukkit.entity.Entitypublic boolean eject()
eject in interface org.bukkit.entity.Entitypublic boolean hasFriction()
public boolean hasGravity()
hasGravity in interface org.bukkit.entity.Entitypublic Set<String> getScoreboardTags()
getScoreboardTags in interface org.bukkit.entity.Entitypublic boolean addScoreboardTag(String tag)
addScoreboardTag in interface org.bukkit.entity.Entitypublic boolean removeScoreboardTag(String tag)
removeScoreboardTag in interface org.bukkit.entity.Entitypublic boolean fromMobSpawner()
fromMobSpawner in interface org.bukkit.entity.Entitypublic org.bukkit.block.PistonMoveReaction getPistonMoveReaction()
getPistonMoveReaction in interface org.bukkit.entity.Entitypublic boolean isSilent()
isSilent in interface org.bukkit.entity.Entitypublic void setSilent(boolean silent)
setSilent in interface org.bukkit.entity.Entitypublic void setMetadata(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue)
setMetadata in interface org.bukkit.metadata.Metadatablepublic void damage(double amount)
public void damage(double amount,
org.bukkit.entity.Entity source)
public void damage(double amount,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
public void damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
public MetadataMap getMetadata()
public List<org.bukkit.metadata.MetadataValue> getMetadata(String metadataKey)
getMetadata in interface org.bukkit.metadata.Metadatablepublic boolean hasMetadata(String metadataKey)
hasMetadata in interface org.bukkit.metadata.Metadatablepublic void removeMetadata(String metadataKey, org.bukkit.plugin.Plugin owningPlugin)
removeMetadata in interface org.bukkit.metadata.Metadatablepublic boolean isPermissionSet(String s)
isPermissionSet in interface org.bukkit.permissions.Permissiblepublic boolean isPermissionSet(org.bukkit.permissions.Permission permission)
isPermissionSet in interface org.bukkit.permissions.Permissiblepublic boolean hasPermission(String s)
hasPermission in interface org.bukkit.permissions.Permissiblepublic boolean hasPermission(org.bukkit.permissions.Permission permission)
hasPermission in interface org.bukkit.permissions.Permissiblepublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
String s,
boolean b)
addAttachment in interface org.bukkit.permissions.Permissiblepublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin)
addAttachment in interface org.bukkit.permissions.Permissiblepublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
String s,
boolean b,
int i)
addAttachment in interface org.bukkit.permissions.Permissiblepublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
int i)
addAttachment in interface org.bukkit.permissions.Permissiblepublic void removeAttachment(org.bukkit.permissions.PermissionAttachment permissionAttachment)
removeAttachment in interface org.bukkit.permissions.Permissiblepublic void recalculatePermissions()
recalculatePermissions in interface org.bukkit.permissions.Permissiblepublic Set<org.bukkit.permissions.PermissionAttachmentInfo> getEffectivePermissions()
getEffectivePermissions in interface org.bukkit.permissions.Permissiblepublic boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
public org.bukkit.entity.Entity.Spigot spigot()
spigot in interface org.bukkit.command.CommandSenderspigot in interface org.bukkit.entity.Entitypublic boolean isLeashed()
public org.bukkit.entity.Entity getLeashHolder()
throws IllegalStateException
IllegalStateException - if not currently leashedLivingEntity.getLeashHolder()public boolean setLeashHolder(org.bukkit.entity.Entity holder)
This method has no effect on EnderDragons, Withers, Players, or Bats. Non-living entities excluding leashes will not persist as leash holders.
holder - the entity to leash this entity toLivingEntity.setLeashHolder(Entity)public void setLeashHolderUniqueId(UUID uniqueId)
uniqueId - The UUIDpublic GlowServer getServer()
getServer in interface org.bukkit.command.CommandSendergetServer in interface org.bukkit.entity.Entitypublic org.bukkit.Location getOrigin()
getOrigin in interface org.bukkit.entity.Entitypublic List<GlowEntity> getLeashedEntities()
public GlowWorld getWorld()
worldLock.getWorld in interface org.bukkit.entity.Entitypublic int getEntityId()
getEntityId in interface org.bukkit.entity.Entitypublic boolean isTeleported()
public int getTicksLived()
getTicksLived in interface org.bukkit.entity.Entitypublic void setTicksLived(int ticksLived)
setTicksLived in interface org.bukkit.entity.Entitypublic GlowEntity getVehicle()
getVehicle in interface org.bukkit.entity.Entitypublic boolean isRemoved()
public void setAirDrag(double airDrag)
public void setLiquidDrag(double liquidDrag)
public void setGravityAccel(org.bukkit.util.Vector gravityAccel)
public void setApplyDragBeforeAccel(boolean applyDragBeforeAccel)
public org.bukkit.event.entity.EntityDamageEvent getLastDamageCause()
getLastDamageCause in interface org.bukkit.entity.Entitypublic void setLastDamageCause(org.bukkit.event.entity.EntityDamageEvent lastDamageCause)
setLastDamageCause in interface org.bukkit.entity.Entitypublic boolean isOnGround()
isOnGround in interface org.bukkit.entity.Entitypublic float getFallDistance()
getFallDistance in interface org.bukkit.entity.Entitypublic int getFireTicks()
getFireTicks in interface org.bukkit.entity.Entitypublic void setFireTicks(int fireTicks)
setFireTicks in interface org.bukkit.entity.Entitypublic void setGravity(boolean gravity)
setGravity in interface org.bukkit.entity.Entitypublic void setFriction(boolean friction)
public boolean isInvulnerable()
isInvulnerable in interface org.bukkit.entity.Entitypublic void setInvulnerable(boolean invulnerable)
setInvulnerable in interface org.bukkit.entity.Entitypublic int getPortalCooldown()
getPortalCooldown in interface org.bukkit.entity.Entitypublic void setPortalCooldown(int portalCooldown)
setPortalCooldown in interface org.bukkit.entity.Entitypublic boolean isOp()
isOp in interface org.bukkit.permissions.ServerOperatorpublic void setOp(boolean op)
setOp in interface org.bukkit.permissions.ServerOperatorCopyright © 2021. All rights reserved.