Class AddEntityToWorldEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.AddEntityToWorldEvent

public final class AddEntityToWorldEvent extends Event
This event is fired when an Entity is added to the world using IChunkOrWorld.addEntity(Entity). Cancelling the event will make the entity not be added.
  • Field Details

    • world

      public final IWorld world
    • entity

      public Entity entity
  • Constructor Details

    • AddEntityToWorldEvent

      public AddEntityToWorldEvent(IWorld world, Entity entity)