Class ViewPortEffectEvent
- java.lang.Object
-
- de.extio.spacecraft.shared.model.client.event.Event
-
- de.extio.spacecraft.shared.model.client.event.ViewPortEvent
-
- de.extio.spacecraft.shared.model.client.event.ViewPortTileBaseEvent
-
- de.extio.spacecraft.shared.model.client.event.ViewPortEffectEvent
-
public final class ViewPortEffectEvent extends ViewPortTileBaseEvent
Fire this event to draw an effect on the tile grid, also relative to a composite entity (including animations)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewPortEffectEvent()
ViewPortEffectEvent(int ttl, DrawEffectRenderingBoEffects effect, RgbaColor color, CoordI2 originWorldPos, CoordI2 originEntityPos, UUID originCompositeEntityId, List<CoordI2> coordinates, List<CoordI2> tiledCoordinates, List<CompositeIdAndPosition> entityCoordinates, List<CoordI2> worldCoordinates, int customInt0, double customDouble0)
EffectViewPortEffectEvent(int ttl, DrawTileEffectRenderingBoEffects tileEffect, RgbaColor color, CoordI2 worldPos, CoordI2 entityPos, UUID compositeEntityId, List<CoordI2> coordinates, int customInt0, int customInt1, String customString0)
Tile Effect
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RgbaColor
getColor()
List<CoordI2>
getCoordinates()
double
getCustomDouble0()
int
getCustomInt0()
int
getCustomInt1()
String
getCustomString0()
DrawEffectRenderingBoEffects
getEffect()
List<CompositeIdAndPosition>
getEntityCoordinates()
RenderingBoLayer
getLayer()
List<CoordI2>
getTiledCoordinates()
DrawTileEffectRenderingBoEffects
getTileEffect()
List<CoordI2>
getWorldCoordinates()
void
setLayer(RenderingBoLayer layer)
void
setTiledCoordinates(List<CoordI2> tiledCoordinates)
-
Methods inherited from class de.extio.spacecraft.shared.model.client.event.ViewPortTileBaseEvent
getCompositeEntityId, getEntityPos, getWorldPos
-
Methods inherited from class de.extio.spacecraft.shared.model.client.event.Event
getFrameCur, getFrameTTL, isExlusive, isInGroup, isPriority, setFrameCur
-
-
-
-
Constructor Detail
-
ViewPortEffectEvent
protected ViewPortEffectEvent()
-
ViewPortEffectEvent
public ViewPortEffectEvent(int ttl, DrawTileEffectRenderingBoEffects tileEffect, RgbaColor color, CoordI2 worldPos, CoordI2 entityPos, UUID compositeEntityId, List<CoordI2> coordinates, int customInt0, int customInt1, String customString0)
Tile Effect- Parameters:
worldPos
- Optional. Either set worldPos...entityPos
- Optional. ... or set entityPos + compositeEntityIdcompositeEntityId
- Optional. Needed if entityPos is not null.
-
ViewPortEffectEvent
public ViewPortEffectEvent(int ttl, DrawEffectRenderingBoEffects effect, RgbaColor color, CoordI2 originWorldPos, CoordI2 originEntityPos, UUID originCompositeEntityId, List<CoordI2> coordinates, List<CoordI2> tiledCoordinates, List<CompositeIdAndPosition> entityCoordinates, List<CoordI2> worldCoordinates, int customInt0, double customDouble0)
Effect- Parameters:
originWorldPos
- Optional. Either set worldPos...originEntityPos
- Optional. ... or set entityPos + compositeEntityIdoriginCompositeEntityId
- Optional. Needed if entityPos is not null.
-
-
Method Detail
-
getTileEffect
public DrawTileEffectRenderingBoEffects getTileEffect()
-
getColor
public RgbaColor getColor()
-
getEffect
public DrawEffectRenderingBoEffects getEffect()
-
getEntityCoordinates
public List<CompositeIdAndPosition> getEntityCoordinates()
-
getCustomInt0
public int getCustomInt0()
-
getCustomInt1
public int getCustomInt1()
-
getCustomDouble0
public double getCustomDouble0()
-
getCustomString0
public String getCustomString0()
-
getLayer
public RenderingBoLayer getLayer()
-
setLayer
public void setLayer(RenderingBoLayer layer)
-
-