Package com.skillw.particlelib
Class EffectGenericKt
-
- All Implemented Interfaces:
public final class EffectGenericKt
-
-
Method Summary
Modifier and Type Method Description final static Arc
createArc(Location origin, Double startAngle, Double angle, Double radius, Double step, Long period)
创建一个弧 final static Astroid
createAstroid(Location origin, Double radius, Double step, Long period)
创建一个星型线 final static Circle
createCircle(Location origin, Double radius, Double step, Long period)
创建一个圆 final static Cube
createCube(Location min, Location max, Double step, Long period)
创建一个立方体 final static FilledCircle
createFilledCircle(Location origin, Double radius, Integer sample, Long period)
创建实心圆 final static Grid
createGrid(Location minLoc, Location maxLoc, Double length, Long period)
创建网格 final static Heart
createHeart(Location origin, Double xScaleRate, Double yScaleRate, Long period)
表示一颗心 final static Line
createLine(Location start, Location end, Double step, Long period)
创建一条线 final static Lotus
createLotus(Location origin, Long period)
一朵莲花 final static Polygon
createPolygon(Location origin, Double radius, Integer sides, Double step, Long period)
创建一个正多边形 final static Ray
createRay(Location origin, Vector direction, Double maxLength, Double step, Double range, Ray.RayStopType stopType, Boolean hitEntities, Function1<Entity, Unit> onHit, Function1<Entity, Boolean> entityFilter, Function1<Entity, Unit> onEnd)
一个射线调用show方法开始射出 final static Star
createStar(Location origin, Double radius, Double step, Long period)
表示一个星星 final static Sphere
createSphere(Location origin, Double radius, Integer sample, Long period)
创建一个球 final static Wing
createWing(Location origin, List<String> pattern, Double minRotAngle, Double maxRotAngle, Double interval, Long period)
构造一个翅膀 -
-
Method Detail
-
createArc
final static Arc createArc(Location origin, Double startAngle, Double angle, Double radius, Double step, Long period)
创建一个弧
- Parameters:
origin
- 弧的中心startAngle
- 弧的起始角度angle
- 弧的角度radius
- 弧的半径step
- 弧的步长period
- 特效周期(如果需要可以使用)
-
createAstroid
final static Astroid createAstroid(Location origin, Double radius, Double step, Long period)
创建一个星型线
- Parameters:
origin
- 中心点radius
- 半径step
- 步长period
- 特效周期(如果需要可以使用)
-
createCircle
final static Circle createCircle(Location origin, Double radius, Double step, Long period)
创建一个圆
- Parameters:
origin
- 圆心radius
- 半径step
- 每个粒子的间隔(也即步长)period
- 特效周期(如果需要可以使用)
-
createCube
final static Cube createCube(Location min, Location max, Double step, Long period)
创建一个立方体
- Parameters:
min
- 最小点max
- 最大点step
- 每个粒子的间隔(也即步长)period
- 特效周期(如果需要可以使用)
-
createFilledCircle
final static FilledCircle createFilledCircle(Location origin, Double radius, Integer sample, Long period)
创建实心圆
- Parameters:
origin
- 圆心radius
- 半径sample
- 粒子数量period
- 特效周期(如果需要可以使用)
-
createGrid
final static Grid createGrid(Location minLoc, Location maxLoc, Double length, Long period)
创建网格
- Parameters:
minLoc
- 起点maxLoc
- 终点length
- 网格长度period
- 特效周期(如果需要可以使用)
-
createHeart
final static Heart createHeart(Location origin, Double xScaleRate, Double yScaleRate, Long period)
表示一颗心
- Parameters:
origin
- 原点xScaleRate
- X轴缩放比率yScaleRate
- Y轴缩放比率
-
createLine
final static Line createLine(Location start, Location end, Double step, Long period)
创建一条线
- Parameters:
start
- 起始点end
- 结束点step
- 每个粒子的间隔(也即步长)period
- 特效周期(如果需要可以使用)
-
createLotus
final static Lotus createLotus(Location origin, Long period)
一朵莲花
- Parameters:
origin
- Locationperiod
- Long- Returns:
Lotus
-
createPolygon
final static Polygon createPolygon(Location origin, Double radius, Integer sides, Double step, Long period)
创建一个正多边形
- Parameters:
radius
- 半径sides
- 边数step
- 每个粒子的间隔(也即步长)period
- 特效周期(如果需要可以使用)
-
createRay
final static Ray createRay(Location origin, Vector direction, Double maxLength, Double step, Double range, Ray.RayStopType stopType, Boolean hitEntities, Function1<Entity, Unit> onHit, Function1<Entity, Boolean> entityFilter, Function1<Entity, Unit> onEnd)
一个射线
调用show方法开始射出
- Parameters:
direction
- 方向maxLength
- 长度step
- 步长range
- 每个点判断怪物在其上的半径stopType
- 结束类型onHit
- 命中实体处理entityFilter
- 命中实体过滤器onEnd
- 射线结束处理
-
createStar
final static Star createStar(Location origin, Double radius, Double step, Long period)
表示一个星星
- Parameters:
origin
- 起点radius
- 星星半径step
- 步长
-
createSphere
final static Sphere createSphere(Location origin, Double radius, Integer sample, Long period)
创建一个球
- Parameters:
origin
- 球心radius
- 半径sample
- 粒子数量period
- 特效周期(如果需要可以使用)
-
-
-
-