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 enumRay.RayStopType
-
Field Summary
Fields Modifier and Type Field Description private Vectordirectionprivate DoublemaxLengthprivate Doublestepprivate Doublerangeprivate Ray.RayStopTypestopTypeprivate BooleanhitEntitiesprivate Function1<Entity, Unit>onHitprivate Function1<Entity, Boolean>entityFilterprivate Function1<Entity, Unit>onEnd
-
Method Summary
Modifier and Type Method Description final VectorgetDirection()方向 final UnitsetDirection(Vector direction)方向 final DoublegetMaxLength()长度 final UnitsetMaxLength(Double maxLength)长度 final DoublegetStep()步长 final UnitsetStep(Double step)步长 final DoublegetRange()每个点判断怪物在其上的半径 final UnitsetRange(Double range)每个点判断怪物在其上的半径 final Ray.RayStopTypegetStopType()结束类型 final UnitsetStopType(Ray.RayStopType stopType)结束类型 final BooleangetHitEntities()final UnitsetHitEntities(Boolean hitEntities)final Function1<Entity, Unit>getOnHit()处理命中实体 final UnitsetOnHit(Function1<Entity, Unit> onHit)处理命中实体 final Function1<Entity, Boolean>getEntityFilter()命中实体过滤器 final UnitsetEntityFilter(Function1<Entity, Boolean> entityFilter)命中实体过滤器 final Function1<Entity, Unit>getOnEnd()final UnitsetOnEnd(Function1<Entity, Unit> onEnd)Unitshow()-
-
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)
命中实体过滤器
-
-
-
-