public abstract class GlowProjectile extends GlowEntity implements org.bukkit.entity.Projectile
GlowEntity.setBoundingBox(double, double)
if they are to collide
with other entities.active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
Constructor and Description |
---|
GlowProjectile(org.bukkit.Location location)
Creates a projectile.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
collide(org.bukkit.block.Block block)
Collide with the target block.
|
abstract void |
collide(org.bukkit.entity.LivingEntity entity) |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
boolean |
doesBounce() |
protected abstract int |
getObjectId() |
org.bukkit.projectiles.ProjectileSource |
getShooter() |
protected boolean |
hasDefaultLandingBehavior()
If true,
GlowEntity.setRawLocation(Location, boolean) with fall true will call
GlowEntity.setOnGround(boolean) according to whether or not our location is inside a solid
block. |
boolean |
isGlowing() |
boolean |
isInvulnerable()
Whether this entity is invulnerable.
|
protected void |
pulsePhysics() |
void |
setBounce(boolean bounce) |
void |
setGlowing(boolean glowing) |
void |
setInvulnerable(boolean invulnerable)
Whether this entity is invulnerable.
|
void |
setShooter(org.bukkit.projectiles.ProjectileSource shooter) |
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, damage, eject, entityInteract, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulse, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGravity, setGravityAccel, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGravity, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public GlowProjectile(org.bukkit.Location location)
location
- the initial locationpublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowEntity
protected void pulsePhysics()
pulsePhysics
in class GlowEntity
protected boolean hasDefaultLandingBehavior()
GlowEntity
GlowEntity.setRawLocation(Location, boolean)
with fall
true will call
GlowEntity.setOnGround(boolean)
according to whether or not our location is inside a solid
block.hasDefaultLandingBehavior
in class GlowEntity
GlowEntity.setOnGround(boolean)
from GlowEntity.setRawLocation(Location,
boolean)
; false otherwisepublic abstract void collide(org.bukkit.block.Block block)
GlowEntity
collide
in class GlowEntity
block
- a block whose type Material.isOccluding()
public abstract void collide(org.bukkit.entity.LivingEntity entity)
protected abstract int getObjectId()
public boolean doesBounce()
doesBounce
in interface org.bukkit.entity.Projectile
public boolean isGlowing()
isGlowing
in interface org.bukkit.entity.Entity
isGlowing
in class GlowEntity
public void setGlowing(boolean glowing)
setGlowing
in interface org.bukkit.entity.Entity
setGlowing
in class GlowEntity
public boolean isInvulnerable()
GlowEntity
isInvulnerable
in interface org.bukkit.entity.Entity
isInvulnerable
in class GlowEntity
public void setInvulnerable(boolean invulnerable)
GlowEntity
setInvulnerable
in interface org.bukkit.entity.Entity
setInvulnerable
in class GlowEntity
public org.bukkit.projectiles.ProjectileSource getShooter()
getShooter
in interface org.bukkit.entity.Projectile
public void setShooter(org.bukkit.projectiles.ProjectileSource shooter)
setShooter
in interface org.bukkit.entity.Projectile
public void setBounce(boolean bounce)
setBounce
in interface org.bukkit.entity.Projectile
Copyright © 2021. All rights reserved.