Interface Region<R extends Region<R>>

All Superinterfaces:
BiomeVolume, BiomeVolume.Streamable<R>, BlockEntityVolume, BlockEntityVolume.Streamable<R>, BlockVolume, BlockVolume.Streamable<R>, ChunkVolume, EnvironmentalVolume, HeightAwareVolume, LocationBaseDataHolder, PrimitiveGameVolume, RandomProvider, Volume
All Known Subinterfaces:
ClientWorld, GenerationRegion, ServerWorld, World<W,L>, WorldLike<P>

  • Method Details

    • worldType

      WorldType worldType()
    • border

      WorldBorder border()
      Gets the WorldBorder for this Region.
      Returns:
      The border.
    • setBorder

      WorldBorder setBorder(WorldBorder worldBorder)
      Sets ths WorldBorder for this Region.

      As events may alter the final border set to the

      Parameters:
      worldBorder - The border to set.
      Returns:
      The WorldBorder that was set, which may not be the border that was provided.
    • isInBorder

      boolean isInBorder(Entity entity)
    • canSeeSky

      default boolean canSeeSky(Vector3i position)
    • canSeeSky

      boolean canSeeSky(int x, int y, int z)
    • hasLiquid

      default boolean hasLiquid(Vector3i position)
    • hasLiquid

      boolean hasLiquid(int x, int y, int z)
    • containsAnyLiquids

      boolean containsAnyLiquids(AABB aabb)
    • skylightSubtracted

      int skylightSubtracted()
    • seaLevel

      int seaLevel()
      Gets the sea level of the world.
      Returns:
      The sea level
    • isCollisionBoxesEmpty

      boolean isCollisionBoxesEmpty(@Nullable Entity entity, AABB aabb)
    • isBlockLoaded

      default boolean isBlockLoaded(int x, int y, int z)
    • isBlockLoaded

      default boolean isBlockLoaded(int x, int y, int z, boolean allowEmpty)
    • isBlockLoaded

      default boolean isBlockLoaded(Vector3i position)
    • isBlockLoaded

      default boolean isBlockLoaded(Vector3i position, boolean allowEmpty)
    • isAreaLoaded

      default boolean isAreaLoaded(Vector3i position, int radius)
    • isAreaLoaded

      default boolean isAreaLoaded(Vector3i center, int radius, boolean allowEmpty)
    • isAreaLoaded

      default boolean isAreaLoaded(Vector3i from, Vector3i to)
    • isAreaLoaded

      default boolean isAreaLoaded(Vector3i from, Vector3i to, boolean allowEmpty)
    • isAreaLoaded

      boolean isAreaLoaded(int xStart, int yStart, int zStart, int xEnd, int yEnd, int zEnd, boolean allowEmpty)