Interface NotifyNeighborBlockEvent
- All Superinterfaces:
Cancellable
,Event
Fired when a neighbour notification is being proposed to the engine.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
filterTargetPositions
(Predicate<Vector3i> predicate) Applies the providedPredicate
to theList
ofNotificationTicket
s fromtickets()
such that any time thatPredicate.test(Object)
returnsfalse
on the location of theNotificationTicket
, theNotificationTicket
is marked as "invalid".default void
filterTickets
(Predicate<NotificationTicket> predicate) Applies the providedPredicate
to theList
ofNotificationTicket
s fromtickets()
such that any time thatPredicate.test(Object)
returnsfalse
on the location of theNotificationTicket
, theNotificationTicket
is marked as "invalid".tickets()
Gets a list of theNotificationTicket
s for this event.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
tickets
List<NotificationTicket> tickets()Gets a list of theNotificationTicket
s for this event. If a ticket is requested to be marked as "invalid",NotificationTicket.setValid(boolean)
can be used.- Returns:
- The unmodifiable list of tickets
-
filterTargetPositions
Applies the providedPredicate
to theList
ofNotificationTicket
s fromtickets()
such that any time thatPredicate.test(Object)
returnsfalse
on the location of theNotificationTicket
, theNotificationTicket
is marked as "invalid".NotificationTicket.targetPosition()
is used to get theVector3i
- Parameters:
predicate
- The predicate to use for filtering
-
filterTickets
Applies the providedPredicate
to theList
ofNotificationTicket
s fromtickets()
such that any time thatPredicate.test(Object)
returnsfalse
on the location of theNotificationTicket
, theNotificationTicket
is marked as "invalid".- Parameters:
predicate
- The predicate to use for filtering
-