Class EntityFluidEvent

java.lang.Object
org.bukkit.event.Event
fr.robie.machineengine.api.paper.event.EntityFluidEvent
Direct Known Subclasses:
EntityFluidEvent.Enter, EntityFluidEvent.Leave

public abstract sealed class EntityFluidEvent extends org.bukkit.event.Event permits EntityFluidEvent.Enter, EntityFluidEvent.Leave
An entity entered or left a placeable fluid (D46): its viscosity and effects start or stop. Listen to EntityFluidEvent.Enter or EntityFluidEvent.Leave.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The entity entered the fluid.
    static final class 
    The entity left the fluid (or the fluid went away).

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.entity.Entity
     
    @NotNull FluidType
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getEntity

      @NotNull public @NotNull org.bukkit.entity.Entity getEntity()
    • getFluid

      @NotNull public @NotNull FluidType getFluid()