Interface BenchBlock.OpenGate

Enclosing class:
BenchBlock
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BenchBlock.OpenGate
Decides whether a bench's window may open for a player. A plugin registers one via BenchBlock.setOpenGate(BenchBlock.OpenGate); the open interaction consults tryOpen(Ref, CommandBuffer, Ref, Vector3i) before creating the window. On deny, the gate itself is responsible for any player feedback (e.g. opening an explanatory page). Defaults to always allowing.