Interface EntityRenderListener
- All Superinterfaces:
EntityRenderedListener,EventListener
- All Known Implementing Classes:
CollisionBox,CollisionEntity,CombatEntity,Creature,Emitter,Entity,EntityEmitter,LightSource,MapArea,Prop,SoundSource,Spawnpoint,StaticShadow,Trigger
This listener interface is used for receiving events during an entity's rendering process from the game's
RenderEngine.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanThis method gets called before anEntityis about to be rendered.default voidrendering(EntityRenderEvent event) This method gets called after all rendering checks have successfully passed and right before the entity is about to be rendered.Methods inherited from interface de.gurkenlabs.litiengine.entities.EntityRenderedListener
rendered
-
Method Details
-
rendering
This method gets called after all rendering checks have successfully passed and right before the entity is about to be rendered.- Parameters:
event- The event that contains the render data.
-
canRender
This method gets called before anEntityis about to be rendered. Returning false prevents the rendering of the specified entity.- Parameters:
entity- The entity to be rendered.- Returns:
- True if the entity should be rendered; otherwise false.
-