Interface NotifyNeighborBlockEvent
- All Superinterfaces:
Cancellable,Event
Fired when a neighbour notification is being proposed to the engine.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidfilterTargetPositions(Predicate<Vector3i> predicate) Applies the providedPredicateto theListofNotificationTickets fromtickets()such that any time thatPredicate.test(Object)returnsfalseon the location of theNotificationTicket, theNotificationTicketis marked as "invalid".default voidfilterTickets(Predicate<NotificationTicket> predicate) Applies the providedPredicateto theListofNotificationTickets fromtickets()such that any time thatPredicate.test(Object)returnsfalseon the location of theNotificationTicket, theNotificationTicketis marked as "invalid".tickets()Gets a list of theNotificationTickets for this event.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
tickets
List<NotificationTicket> tickets()Gets a list of theNotificationTickets 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 providedPredicateto theListofNotificationTickets fromtickets()such that any time thatPredicate.test(Object)returnsfalseon the location of theNotificationTicket, theNotificationTicketis marked as "invalid".NotificationTicket.targetPosition()is used to get theVector3i- Parameters:
predicate- The predicate to use for filtering
-
filterTickets
Applies the providedPredicateto theListofNotificationTickets fromtickets()such that any time thatPredicate.test(Object)returnsfalseon the location of theNotificationTicket, theNotificationTicketis marked as "invalid".- Parameters:
predicate- The predicate to use for filtering
-