java.lang.Object
tfagaming.projects.minecraft.homestead.models.SubArea

public final class SubArea extends Object
  • Constructor Details

    • SubArea

      public SubArea(long regionId, String name, org.bukkit.World world, org.bukkit.block.Block point1, org.bukkit.block.Block point2, long playerFlags)
    • SubArea

      public SubArea(long id, long regionId, String name, UUID worldId, org.bukkit.block.Block point1, org.bukkit.block.Block point2, long playerFlags, SeRent rent, long createdAt)
    • SubArea

      public SubArea(long id, long regionId, String name, UUID worldId, SeBlock point1, SeBlock point2, long playerFlags, SeRent rent, long createdAt)
  • Method Details

    • setAutoUpdate

      public void setAutoUpdate(boolean autoUpdate)
      Toggle Auto-Update for caching. If true, any call for setters will automatically update the cache. Otherwise, only the instance of the class will be updated.
      Parameters:
      autoUpdate - Auto-Update toggle
    • getUniqueId

      public long getUniqueId()
    • getRegionId

      public long getRegionId()
    • setRegionId

      public void setRegionId(long regionId)
    • getRegion

      @Nullable public @Nullable Region getRegion()
      Returns the region by directly fetching with region ID from cache.
      Returns:
      The region if found, null otherwise.
    • getRegionName

      @NotNull public @NotNull String getRegionName()
      Returns the region name safely by directly fetching with region ID from cache.
      Returns:
      The region name if found, "?" otherwise.
    • getName

      @NotNull public @NotNull String getName()
    • setName

      public void setName(@NotNull @NotNull String name)
    • getWorldId

      @NotNull public @NotNull UUID getWorldId()
    • setWorldId

      public void setWorldId(@NotNull @NotNull UUID worldId)
    • getWorld

      @Nullable public @Nullable org.bukkit.World getWorld()
    • getPoint1

      @NotNull public @NotNull SeBlock getPoint1()
    • setPoint1

      public void setPoint1(@NotNull @NotNull SeBlock point1)
    • setPoint1

      public void setPoint1(@NotNull @NotNull org.bukkit.block.Block block)
    • getPoint2

      @NotNull public @NotNull SeBlock getPoint2()
    • setPoint2

      public void setPoint2(@NotNull @NotNull SeBlock point2)
    • setPoint2

      public void setPoint2(@NotNull @NotNull org.bukkit.block.Block block)
    • getPlayerFlags

      public long getPlayerFlags()
    • setPlayerFlags

      public void setPlayerFlags(long playerFlags)
    • getRent

      @Nullable public @Nullable SeRent getRent()
    • setRent

      public void setRent(@Nullable @Nullable SeRent rent)
    • getCreatedAt

      public long getCreatedAt()
    • getMinX

      public int getMinX()
    • getMaxX

      public int getMaxX()
    • getMinY

      public int getMinY()
    • getMaxY

      public int getMaxY()
    • getMinZ

      public int getMinZ()
    • getMaxZ

      public int getMaxZ()
    • getVolume

      public int getVolume()
    • isBlockInside

      public boolean isBlockInside(SeBlock block)
    • isBlockInside

      public boolean isBlockInside(org.bukkit.block.Block block)
    • isLocationInside

      public boolean isLocationInside(SeLocation location)
    • isLocationInside

      public boolean isLocationInside(org.bukkit.Location location)
    • isIntersecting

      public boolean isIntersecting(SubArea other)