Class MultiTileRenderer
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.sprite.MultiTileRenderer
- All Implemented Interfaces:
Lifecycle
,Printable
,ApplicationContext
,ApplicationProvider
,ComponentsContext
,ComponentsProvider
,TileProvider
,EntityContext
,EntityProvider
,SceneContext
,SceneProvider
A component for rendering a multi-tile that spans across multiple tiles in a grid.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe x and y values represent the amount of tiles this multi-tile takes up -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTile()
void
init
(TileRenderer anchorTile) void
remove()
Removes this tile from its grid.void
setCoordinate
(Vector2i coordinate) Methods inherited from class dev.prozilla.pine.core.component.Component
equals, getApplication, getEntity, getName, getScene, hashCode, setActive, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getConfig, getInput, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindow
Methods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildren
Methods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOf
Methods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChildWithTag, getFirstChild, getLastChild, getParentWithTag, isDescendantOf
Methods inherited from interface dev.prozilla.pine.common.Lifecycle
destroy, init, init, input, input, render, render, start, update, update
Methods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorld
Methods inherited from interface dev.prozilla.pine.core.component.sprite.TileProvider
getCoordinate, getEntity, getGroup, getTransform, isHovering, moveBy, moveBy, moveTo, moveTo, setSize
-
Field Details
-
dimensions
The x and y values represent the amount of tiles this multi-tile takes up -
anchorTile
-
phantomTiles
-
-
Constructor Details
-
MultiTileRenderer
-
-
Method Details
-
init
-
setCoordinate
- Specified by:
setCoordinate
in interfaceTileProvider
-
remove
public void remove()Description copied from interface:TileProvider
Removes this tile from its grid.- Specified by:
remove
in interfaceTileProvider
-
getTile
- Specified by:
getTile
in interfaceTileProvider
-