Package noppes.npcs.api.entity
Interface IEnergyLaser<T extends net.minecraft.entity.Entity>
-
- All Superinterfaces:
IEnergyAbility<T>,IEnergyProjectile<T>,IEntity<T>
public interface IEnergyLaser<T extends net.minecraft.entity.Entity> extends IEnergyProjectile<T>
A continuous laser beam that extends outward from its origin along a direction vector.Unlike other projectiles, lasers don't move through the world — they extend from their origin point along a direction, hitting everything in their path up to
getMaxLength(). The direction can be set explicitly viasetDirection(double, double, double).The coordinate-based
fireAt(x, y, z)calculates and sets the direction vector automatically, then uses the laser's internal launch sequence.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetCurrentLength()doublegetDirX()doublegetDirY()doublegetDirZ()doublegetEndX()doublegetEndY()doublegetEndZ()floatgetExpansionSpeed()floatgetLaserWidth()Width of the laser beam.floatgetMaxLength()booleanisFullyExtended()voidsetDirection(double x, double y, double z)voidsetExpansionSpeed(float speed)voidsetLaserWidth(float width)voidsetMaxLength(float maxLength)-
Methods inherited from interface noppes.npcs.api.entity.IEnergyAbility
getChargeProgress, getDamageData, getInnerAlpha, getInnerColor, getLightningDensity, getLightningFadeTime, getLightningRadius, getMagicData, getOuterColor, getOuterColorAlpha, getOuterColorWidth, getOwner, getOwnerEntityId, hasLightningEffect, isCharging, isIgnoreIFrames, isOuterColorEnabled, setDamageData, setIgnoreIFrames, setInnerAlpha, setInnerColor, setLightningDensity, setLightningEffect, setLightningFadeTime, setLightningRadius, setMagicData, setOuterColor, setOuterColorAlpha, setOuterColorEnabled, setOuterColorWidth
-
Methods inherited from interface noppes.npcs.api.entity.IEnergyProjectile
fireAt, fireAt, fireDirection, fireFrom, fireFrom, getAnchor, getAnchorOffsetX, getAnchorOffsetY, getAnchorOffsetZ, getDamage, getEnergyType, getExplosionDamageFalloff, getExplosionRadius, getHitType, getHomingRange, getHomingStrength, getInterpolatedRotationX, getInterpolatedRotationY, getInterpolatedRotationZ, getInterpolatedSize, getKnockback, getKnockbackUp, getMaxDistance, getMaxHits, getMaxLifetime, getMultiHitDelayTicks, getRotationSpeed, getSize, getSpeed, getStartX, getStartY, getStartZ, getTarget, getTargetEntityId, hasHit, isExplosive, isHoming, setDamage, setExplosionDamageFalloff, setExplosionRadius, setExplosive, setHitType, setHoming, setHomingRange, setHomingStrength, setKnockback, setKnockbackUp, setMaxDistance, setMaxHits, setMaxLifetime, setMultiHitDelayTicks, setOwner, setRotationSpeed, setSize, setSpeed, setTarget, syncClient
-
Methods inherited from interface noppes.npcs.api.entity.IEntity
capturesDrops, clearStoredData, clearTempData, despawn, dropItem, extinguish, getAge, getAllNbt, getBlockX, getBlockY, getBlockZ, getCapturedDrops, getCollidingEntities, getDimension, getEntityId, getHeight, getMCEntity, getMotion, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getNbtOptional, getPitch, getPosition, getRider, getRotation, getStoredData, getStoredDataKeys, getSurroundingEntities, getSurroundingEntities, getTempData, getTempDataKeys, getType, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasCollidedHorizontally, hasCollidedVertically, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, knockback, removeStoredData, removeTempData, setBurning, setCapturedDrops, setCapturesDrops, setDimension, setImmune, setInvisible, setMotion, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPosition, setPosition, setRider, setRotation, setRotation, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClone, typeOf, updateEntity
-
-
-
-
Method Detail
-
getLaserWidth
float getLaserWidth()
Width of the laser beam.- Returns:
- the laser width in blocks
-
setLaserWidth
void setLaserWidth(float width)
-
getExpansionSpeed
float getExpansionSpeed()
-
setExpansionSpeed
void setExpansionSpeed(float speed)
-
getMaxLength
float getMaxLength()
-
setMaxLength
void setMaxLength(float maxLength)
-
getCurrentLength
float getCurrentLength()
-
isFullyExtended
boolean isFullyExtended()
-
getDirX
double getDirX()
-
getDirY
double getDirY()
-
getDirZ
double getDirZ()
-
setDirection
void setDirection(double x, double y, double z)
-
getEndX
double getEndX()
-
getEndY
double getEndY()
-
getEndZ
double getEndZ()
-
-