![JAR search and dependency download from the Maven repository](/logo.png)
net.minestom.server.event.entity.EntityPotionRemoveEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.event.entity;
import net.minestom.server.entity.Entity;
import net.minestom.server.event.trait.EntityInstanceEvent;
import net.minestom.server.potion.Potion;
import org.jetbrains.annotations.NotNull;
public class EntityPotionRemoveEvent implements EntityInstanceEvent {
private final Entity entity;
private final Potion potion;
public EntityPotionRemoveEvent(@NotNull Entity entity, @NotNull Potion potion) {
this.entity = entity;
this.potion = potion;
}
/**
* Returns the potion that was removed.
*
* @return the removed potion.
*/
@NotNull
public Potion getPotion() {
return potion;
}
@Override
public @NotNull Entity getEntity() {
return entity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy