Package com.skillw.particlelib.pobject
Class ParticleObject
-
- All Implemented Interfaces:
public abstract class ParticleObject
表示一个特效对象
Zoyn IceCold
-
-
Field Summary
Fields Modifier and Type Field Description private Location
origin
private Long
period
private ShowType
showType
private ProxyParticle
particle
private Integer
count
private Vector
offset
private Double
extra
private Entity
entity
private Double
incrementX
private Double
incrementY
private Double
incrementZ
-
Constructor Summary
Constructors Constructor Description ParticleObject(Location origin)
ParticleObject(Location origin, Long period)
ParticleObject()
-
Method Summary
Modifier and Type Method Description final Location
getOrigin()
final Unit
setOrigin(Location origin)
final Long
getPeriod()
final Unit
setPeriod(Long period)
final ShowType
getShowType()
final Unit
setShowType(ShowType showType)
final ProxyParticle
getParticle()
final Unit
setParticle(ProxyParticle particle)
final Integer
getCount()
final Unit
setCount(Integer count)
final Vector
getOffset()
final Unit
setOffset(Vector offset)
final Double
getExtra()
final Unit
setExtra(Double extra)
final Entity
getEntity()
final Unit
setEntity(Entity entity)
final Double
getIncrementX()
变化量 final Unit
setIncrementX(Double incrementX)
变化量 final Double
getIncrementY()
final Unit
setIncrementY(Double incrementY)
final Double
getIncrementZ()
final Unit
setIncrementZ(Double incrementZ)
final Unit
calcHitTargets()
final Unit
onHit(Function1<Target, Unit> onHit)
abstract Unit
show()
final Unit
alwaysShow()
final Unit
alwaysShowAsync()
final Unit
alwaysPlay()
final Unit
alwaysPlayAsync()
final Unit
turnOffTask()
final ParticleObject
addMatrix(Matrix matrix)
final ParticleObject
setMatrix(Matrix matrix)
final ParticleObject
removeMatrix()
final Boolean
hasMatrix()
final Color
getColor()
final Unit
setColor(Color color)
final ParticleObject
attachEntity(Entity entity)
final Unit
spawnParticle(Location location, ProxyParticle particle, Integer count, Vector offset, Double extra, ProxyParticle.Data data)
自定义程度较高的生成粒子方法 -
-
Constructor Detail
-
ParticleObject
ParticleObject(Location origin)
-
ParticleObject
ParticleObject(Location origin, Long period)
-
ParticleObject
ParticleObject()
-
-
Method Detail
-
getOrigin
final Location getOrigin()
-
getShowType
final ShowType getShowType()
-
setShowType
final Unit setShowType(ShowType showType)
-
getParticle
final ProxyParticle getParticle()
-
setParticle
final Unit setParticle(ProxyParticle particle)
-
getOffset
final Vector getOffset()
-
getIncrementX
final Double getIncrementX()
变化量
-
setIncrementX
final Unit setIncrementX(Double incrementX)
变化量
-
getIncrementY
final Double getIncrementY()
-
setIncrementY
final Unit setIncrementY(Double incrementY)
-
getIncrementZ
final Double getIncrementZ()
-
setIncrementZ
final Unit setIncrementZ(Double incrementZ)
-
calcHitTargets
final Unit calcHitTargets()
-
alwaysShow
final Unit alwaysShow()
-
alwaysShowAsync
final Unit alwaysShowAsync()
-
alwaysPlay
final Unit alwaysPlay()
-
alwaysPlayAsync
final Unit alwaysPlayAsync()
-
turnOffTask
final Unit turnOffTask()
-
addMatrix
final ParticleObject addMatrix(Matrix matrix)
-
setMatrix
final ParticleObject setMatrix(Matrix matrix)
-
removeMatrix
final ParticleObject removeMatrix()
-
attachEntity
final ParticleObject attachEntity(Entity entity)
-
spawnParticle
final Unit spawnParticle(Location location, ProxyParticle particle, Integer count, Vector offset, Double extra, ProxyParticle.Data data)
自定义程度较高的生成粒子方法
- Parameters:
location
- 坐标particle
- 粒子count
- 粒子数量offset
- 偏移量extra
- 粒子额外参数data
- 特殊粒子属性
-
-
-
-