Contents
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.
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.-
Method Summary
Modifier and TypeMethodDescriptionbooleantryOpen(Ref<EntityStore> playerEntityRef, CommandBuffer<EntityStore> commandBuffer, Ref<ChunkStore> benchRef, org.joml.Vector3i pos)
-
Method Details
-
tryOpen
boolean tryOpen(@Nonnull Ref<EntityStore> playerEntityRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<ChunkStore> benchRef, @Nonnull org.joml.Vector3i pos)
-