Class ViewPortDrawImageEvent
- 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.ViewPortDrawImageEvent
-
public final class ViewPortDrawImageEvent extends ViewPortTileBaseEvent
Fire this event to draw an image on the tile grid, also relative to a composite entity (including animations)
-
-
Constructor Summary
Constructors Constructor Description ViewPortDrawImageEvent(int frameTTL, CoordI2 worldPos, CoordI2 entityPos, UUID compositeEntityId, String name, byte[] data, float transparency, RenderingBoLayer layer)
ViewPortDrawImageEvent(int frameTTL, CoordI2 worldPos, CoordI2 entityPos, UUID compositeEntityId, String resourceModName, String resourceName, RenderingBoLayer layer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
RenderingBoLayer
getLayer()
String
getResourceModName()
String
getResourceName()
double
getScaleTileFactor()
float
getTransparency()
boolean
isScaleToTileSize()
void
setData(byte[] data)
void
setLayer(RenderingBoLayer layer)
void
setResourceModName(String resourceModName)
void
setResourceName(String resourceName)
void
setScaleTileFactor(double scaleTileFactor)
void
setScaleToTileSize(boolean scaleToTileSize)
void
setTransparency(float transparency)
-
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
-
ViewPortDrawImageEvent
public ViewPortDrawImageEvent(int frameTTL, CoordI2 worldPos, CoordI2 entityPos, UUID compositeEntityId, String name, byte[] data, float transparency, RenderingBoLayer layer)
-
-
Method Detail
-
getResourceModName
public String getResourceModName()
-
setResourceModName
public void setResourceModName(String resourceModName)
-
getResourceName
public String getResourceName()
-
setResourceName
public void setResourceName(String resourceName)
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
getTransparency
public float getTransparency()
-
setTransparency
public void setTransparency(float transparency)
-
getLayer
public RenderingBoLayer getLayer()
-
setLayer
public void setLayer(RenderingBoLayer layer)
-
isScaleToTileSize
public boolean isScaleToTileSize()
-
setScaleToTileSize
public void setScaleToTileSize(boolean scaleToTileSize)
-
getScaleTileFactor
public double getScaleTileFactor()
-
setScaleTileFactor
public void setScaleTileFactor(double scaleTileFactor)
-
-