publicclass BlockValidator
{ // Check if a block is leaky according to leakyblocks.yml publicstaticboolean isConsideredLeaky
(Block block
); }
Code (Java):
publicclass RoomGenerator
{ // Gets a room object with an origin block and taxicab distance to expand from it publicstatic SealedRoom getRoom
(Block origin,
int distance
); }
Code (Java):
publicclass SealedRoom
{
// The location of boundary blocks, in vector form public Collection
<Vector
> boundingLocations
; // The location of inner blocks, in vector form public Collection
<Vector
> insideLocations
; // The name of the world of the room publicfinalString world
;
// If you want to create your own sealedroom with your own lists. public SealedRoom
(String world, Collection
<Vector
> inside, Collection
<Vector
> bounding
)
// Check if room is leaking publicboolean isLeaking
()
// Get all leaking locations public Set
<Vector
> getLeaks
()