Class AddEntityToInstanceEvent

java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.CancellableEvent
net.minestom.server.event.instance.AddEntityToInstanceEvent

public class AddEntityToInstanceEvent
extends CancellableEvent
Called by an Instance when an entity is added to it. Can be used attach data.
  • Constructor Details

  • Method Details

    • getEntity

      @NotNull public Entity getEntity()
      Entity being added.
      Returns:
      the entity being added
    • getInstance

      @NotNull public Instance getInstance()
      Instance in which the entity is being added
      Returns:
      instance in which the entity is being added