Interface EntityRenderListener
- All Superinterfaces:
EntityRenderedListener
,java.util.EventListener
- All Known Implementing Classes:
CollisionBox
,CollisionEntity
,CombatEntity
,Creature
,Emitter
,Entity
,EntityEmitter
,LightSource
,MapArea
,Prop
,SoundSource
,Spawnpoint
,StaticShadow
,Trigger
public interface EntityRenderListener
extends EntityRenderedListener
This listener interface is used for receiving events during an entity's rendering process from the game's
RenderEngine
.Method Summary
Modifier and Type Method Description default boolean
canRender(IEntity entity)
This method gets called before anEntity
is about to be rendered.default void
rendering(EntityRenderEvent event)
This method gets called after all rendering checks have successfully passed and right before the entity is about to be 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 anEntity
is 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.