Package com.skillw.particlelib.pobject
Class Ray
-
- All Implemented Interfaces:
public final class Ray extends ParticleObject
代表一个射线
Zoyn IceCold
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Ray.RayStopType
-
Field Summary
Fields Modifier and Type Field Description private Vector
direction
private Double
maxLength
private Double
step
private Double
range
private Ray.RayStopType
stopType
private Boolean
hitEntities
private Function1<Entity, Unit>
onHit
private Function1<Entity, Boolean>
entityFilter
private Function1<Entity, Unit>
onEnd
-
Method Summary
Modifier and Type Method Description final Vector
getDirection()
方向 final Unit
setDirection(Vector direction)
方向 final Double
getMaxLength()
长度 final Unit
setMaxLength(Double maxLength)
长度 final Double
getStep()
步长 final Unit
setStep(Double step)
步长 final Double
getRange()
每个点判断怪物在其上的半径 final Unit
setRange(Double range)
每个点判断怪物在其上的半径 final Ray.RayStopType
getStopType()
结束类型 final Unit
setStopType(Ray.RayStopType stopType)
结束类型 final Boolean
getHitEntities()
final Unit
setHitEntities(Boolean hitEntities)
final Function1<Entity, Unit>
getOnHit()
处理命中实体 final Unit
setOnHit(Function1<Entity, Unit> onHit)
处理命中实体 final Function1<Entity, Boolean>
getEntityFilter()
命中实体过滤器 final Unit
setEntityFilter(Function1<Entity, Boolean> entityFilter)
命中实体过滤器 final Function1<Entity, Unit>
getOnEnd()
final Unit
setOnEnd(Function1<Entity, Unit> onEnd)
Unit
show()
-
-
Method Detail
-
getDirection
final Vector getDirection()
方向
-
setDirection
final Unit setDirection(Vector direction)
方向
-
getMaxLength
final Double getMaxLength()
长度
-
setMaxLength
final Unit setMaxLength(Double maxLength)
长度
-
getStopType
final Ray.RayStopType getStopType()
结束类型
-
setStopType
final Unit setStopType(Ray.RayStopType stopType)
结束类型
-
getHitEntities
final Boolean getHitEntities()
-
setHitEntities
final Unit setHitEntities(Boolean hitEntities)
-
getEntityFilter
final Function1<Entity, Boolean> getEntityFilter()
命中实体过滤器
-
setEntityFilter
final Unit setEntityFilter(Function1<Entity, Boolean> entityFilter)
命中实体过滤器
-
-
-
-