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 Summary
Constructors Constructor Description AddEntityToInstanceEvent(Instance instance, Entity entity)
-
Method Summary
Modifier and Type Method Description Entity
getEntity()
Entity being added.Instance
getInstance()
Instance in which the entity is being added
-
Constructor Details
-
Method Details
-
getEntity
Entity being added.- Returns:
- the entity being added
-
getInstance
Instance in which the entity is being added- Returns:
- instance in which the entity is being added
-