Class RemoveEntityFromInstanceEvent
java.lang.Object
net.minestom.server.event.instance.RemoveEntityFromInstanceEvent
- All Implemented Interfaces:
Event,EntityEvent,EntityInstanceEvent,InstanceEvent
Called by an Instance when an entity is removed from it.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveEntityFromInstanceEvent(@NotNull Instance instance, @NotNull Entity entity) -
Method Summary
-
Constructor Details
-
RemoveEntityFromInstanceEvent
-
-
Method Details
-
getInstance
Description copied from interface:InstanceEventGets the instance.- Specified by:
getInstancein interfaceEntityInstanceEvent- Specified by:
getInstancein interfaceInstanceEvent- Returns:
- instance
-
getEntity
Gets the entity being removed.- Specified by:
getEntityin interfaceEntityEvent- Returns:
- entity being removed
-