Class MultiTileRenderer
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.sprite.MultiTileRenderer
- All Implemented Interfaces:
Destructible,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
ConstructorsConstructorDescriptionMultiTileRenderer(Vector2i dimensions) MultiTileRenderer(Vector2i dimensions, TileRenderer anchorTile) -
Method Summary
Modifier and TypeMethodDescriptiongetTile()voidinit(TileRenderer anchorTile) booleanvoidremove()Removes this tile from its grid.voidsetCoordinate(Vector2i coordinate) Methods inherited from class dev.prozilla.pine.core.component.Component
destroy, equals, getApplication, getEntity, getName, getScene, hashCode, onEntityChange, setActive, setEntity, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getAudioDevice, getConfig, getInput, getLocalStorage, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindowMethods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildrenMethods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOfMethods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChild, getChildWithTag, getFirstChild, getLastChild, getParentWithTag, isDescendantOfMethods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorldMethods inherited from interface dev.prozilla.pine.core.component.sprite.TileProvider
getCoordinate, getEntity, getGroup, getTransform, 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
-
MultiTileRenderer
-
-
Method Details
-
init
-
setCoordinate
- Specified by:
setCoordinatein interfaceTileProvider
-
remove
public void remove()Description copied from interface:TileProviderRemoves this tile from its grid.- Specified by:
removein interfaceTileProvider
-
isHovering
public boolean isHovering()- Specified by:
isHoveringin interfaceTileProvider
-
getTile
- Specified by:
getTilein interfaceTileProvider
-