public class DeathWaypointEvent extends CommonEvent
The plain WaypointEvent with WaypointEvent.Context.CREATE
is suppressed for death waypoints so addons subscribing to either receive
exactly one notification per death.
CommonEvent.Sidetimestamp| Constructor and Description |
|---|
DeathWaypointEvent(Waypoint waypoint,
net.minecraft.core.BlockPos location,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension,
CommonEvent.Side side) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> |
getDimension() |
net.minecraft.core.BlockPos |
getLocation() |
Waypoint |
getWaypoint()
The death waypoint being created.
|
java.lang.String |
toString() |
getSidecancel, isCancellable, isCancelledpublic DeathWaypointEvent(Waypoint waypoint, net.minecraft.core.BlockPos location, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, CommonEvent.Side side)
public Waypoint getWaypoint()
public net.minecraft.core.BlockPos getLocation()
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()
public java.lang.String toString()
toString in class java.lang.Object