Indoors Core | Check if players are in a sealed spaces or airtight rooms! icon

Indoors Core | Check if players are in a sealed spaces or airtight rooms! -----

Check if a player is in an enclosed space with just a command



Developer API

Code (Java):
public class BlockValidator {
    // Check if a block is leaky according to leakyblocks.yml
    public static boolean isConsideredLeaky (Block block ) ;
}
Code (Java):
public class RoomGenerator {
    // Gets a room object with an origin block and taxicab distance to expand from it
    public static SealedRoom getRoom (Block origin, int distance ) ;
}
Code (Java):
public class 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
    public final String 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
    public boolean isLeaking ( )
 
    // Get all leaking locations
    public Set <Vector > getLeaks ( )
 
}
Resource Information
Author:
----------
Total Downloads: 67
First Release: Jul 13, 2022
Last Update: Jul 20, 2022
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings