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
ConstructorDescriptionRemoveEntityFromInstanceEvent
(@NotNull Instance instance, @NotNull Entity entity) -
Method Summary
-
Constructor Details
-
RemoveEntityFromInstanceEvent
-
-
Method Details
-
getInstance
Description copied from interface:InstanceEvent
Gets the instance.- Specified by:
getInstance
in interfaceEntityInstanceEvent
- Specified by:
getInstance
in interfaceInstanceEvent
- Returns:
- instance
-
getEntity
Gets the entity being removed.- Specified by:
getEntity
in interfaceEntityEvent
- Returns:
- entity being removed
-