Class ScriptedProjectileBuilder
public final class ScriptedProjectileBuilder
Fluent builder to configure and spawn
ScriptedProjectile instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangle(double angleDegrees) collideWithEnvironment(boolean collide) collisionBox(double width, double height) damage(int damage) from(double x, double y) maxDistance(double distance) onExpire(Consumer<ScriptedProjectile> onExpire) pierce(boolean pierce) size(double width, double height) source(ICombatEntity source) spawn()speed(double speed) splash(double radius, int splashDamage) towards(double targetX, double targetY)
-
Constructor Details
-
ScriptedProjectileBuilder
-
-
Method Details
-
sprite
-
from
-
from
-
angle
-
towards
-
towards
-
speed
-
damage
-
maxDistance
-
pierce
-
collideWithEnvironment
-
size
-
collisionBox
-
splash
-
source
-
onHitEntity
-
onHitEnvironment
-
onExpire
-
spawn
-