Package noppes.npcs.api.entity
Interface IEnergySweeper<T extends net.minecraft.entity.Entity>
-
- All Superinterfaces:
IEnergyAbility<T>,IEntity<T>
public interface IEnergySweeper<T extends net.minecraft.entity.Entity> extends IEnergyAbility<T>
Entity-level interface for sweeper beam entities. Created via IEnergyHandler.createSweeper(). Configure properties, then call spawn() to place in the world.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetBeamHeight()floatgetBeamLength()floatgetBeamWidth()floatgetDamage()intgetDamageInterval()intgetNumberOfRotations()floatgetSweepSpeed()booleanisLockOnTarget()booleanisPiercing()voidsetBeamHeight(float height)voidsetBeamLength(float length)voidsetBeamWidth(float width)voidsetDamage(float damage)voidsetDamageInterval(int ticks)voidsetLockOnTarget(boolean lock)voidsetNumberOfRotations(int rotations)voidsetPiercing(boolean piercing)voidsetSweepSpeed(float degreesPerTick)voidspawn()Spawn this sweeper entity into the world.-
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.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
-
getBeamLength
float getBeamLength()
- Returns:
- Length of the sweeping beam in blocks.
-
setBeamLength
void setBeamLength(float length)
- Parameters:
length- Beam length in blocks.
-
getBeamWidth
float getBeamWidth()
- Returns:
- Width of the sweeping beam in blocks.
-
setBeamWidth
void setBeamWidth(float width)
- Parameters:
width- Beam width in blocks.
-
getBeamHeight
float getBeamHeight()
- Returns:
- Height of the sweeping beam in blocks.
-
setBeamHeight
void setBeamHeight(float height)
- Parameters:
height- Beam height in blocks.
-
getSweepSpeed
float getSweepSpeed()
- Returns:
- Rotation speed of the sweep in degrees per tick.
-
setSweepSpeed
void setSweepSpeed(float degreesPerTick)
- Parameters:
degreesPerTick- Sweep rotation speed in degrees per tick.
-
getNumberOfRotations
int getNumberOfRotations()
- Returns:
- Number of full rotations the beam completes before stopping.
-
setNumberOfRotations
void setNumberOfRotations(int rotations)
- Parameters:
rotations- Number of full rotations.
-
isLockOnTarget
boolean isLockOnTarget()
- Returns:
- Whether the beam pivot tracks the target instead of rotating freely.
-
setLockOnTarget
void setLockOnTarget(boolean lock)
- Parameters:
lock- Whether the beam locks on to the target.
-
getDamage
float getDamage()
- Returns:
- Damage dealt per hit to entities caught in the beam.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Damage per hit.
-
getDamageInterval
int getDamageInterval()
- Returns:
- Interval in ticks between damage applications to the same target.
-
setDamageInterval
void setDamageInterval(int ticks)
- Parameters:
ticks- Damage interval in ticks.
-
isPiercing
boolean isPiercing()
- Returns:
- Whether the beam can hit through multiple targets.
-
setPiercing
void setPiercing(boolean piercing)
- Parameters:
piercing- Whether the beam pierces through targets.
-
spawn
void spawn()
Spawn this sweeper entity into the world.
-
-