Class PortalConstants

java.lang.Object
tech.anonymoushacker1279.openportals.util.PortalConstants

public final class PortalConstants extends Object
Constants used throughout the portal system. Centralizes magic numbers for easier maintenance and configuration.
  • Field Details

    • MAX_PORTAL_WIDTH

      public static final int MAX_PORTAL_WIDTH
      Maximum width for vanilla-style (vertical) portals.
      See Also:
    • MAX_PORTAL_HEIGHT

      public static final int MAX_PORTAL_HEIGHT
      Maximum height for vanilla-style (vertical) portals.
      See Also:
    • MIN_PORTAL_WIDTH

      public static final int MIN_PORTAL_WIDTH
      Minimum width for vanilla-style portals.
      See Also:
    • MIN_PORTAL_HEIGHT

      public static final int MIN_PORTAL_HEIGHT
      Minimum height for vanilla-style portals.
      See Also:
    • MAX_FLAT_PORTAL_X_SIZE

      public static final int MAX_FLAT_PORTAL_X_SIZE
      Maximum size for flat (horizontal) portals in the X direction.
      See Also:
    • MAX_FLAT_PORTAL_Z_SIZE

      public static final int MAX_FLAT_PORTAL_Z_SIZE
      Maximum size for flat (horizontal) portals in the Z direction.
      See Also:
    • MIN_FLAT_PORTAL_SIZE

      public static final int MIN_FLAT_PORTAL_SIZE
      Minimum size for flat portals (both X and Z).
      See Also:
    • PORTAL_SEARCH_RADIUS

      public static final int PORTAL_SEARCH_RADIUS
      Maximum search radius when looking for a valid portal location (in blocks).
      See Also:
    • MAX_PORTAL_BASE_SEARCH_DEPTH

      public static final int MAX_PORTAL_BASE_SEARCH_DEPTH
      Maximum recursion depth when searching for portal base block.
      See Also:
    • PORTAL_Y_SEARCH_MARGIN

      public static final int PORTAL_Y_SEARCH_MARGIN
      Y-offset margin from world height limits when searching for portal placement.
      See Also:
    • WORLD_BORDER_MIN

      public static final double WORLD_BORDER_MIN
      Minimum coordinate value for portal placement (world border safety).
      See Also:
    • WORLD_BORDER_MAX

      public static final double WORLD_BORDER_MAX
      Maximum coordinate value for portal placement (world border safety).
      See Also:
    • WORLD_BORDER_MARGIN

      public static final double WORLD_BORDER_MARGIN
      Safety margin from world border (in blocks).
      See Also:
    • AMBIENT_SOUND_CHANCE

      public static final int AMBIENT_SOUND_CHANCE
      Chance (1 in N) for ambient sound to play each tick.
      See Also:
    • PARTICLES_PER_TICK

      public static final int PARTICLES_PER_TICK
      Number of particles to spawn per portal block per tick.
      See Also:
    • MAX_FRAME_CHECK_DISTANCE

      public static final int MAX_FRAME_CHECK_DISTANCE
      Maximum number of blocks to check in any direction when validating portal frame.
      See Also: