Class PortalConstants
java.lang.Object
tech.anonymoushacker1279.openportals.util.PortalConstants
Constants used throughout the portal system. Centralizes magic numbers for easier maintenance and configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intChance (1 in N) for ambient sound to play each tick.static final intMaximum size for flat (horizontal) portals in the X direction.static final intMaximum size for flat (horizontal) portals in the Z direction.static final intMaximum number of blocks to check in any direction when validating portal frame.static final intMaximum recursion depth when searching for portal base block.static final intMaximum height for vanilla-style (vertical) portals.static final intMaximum width for vanilla-style (vertical) portals.static final intMinimum size for flat portals (both X and Z).static final intMinimum height for vanilla-style portals.static final intMinimum width for vanilla-style portals.static final intNumber of particles to spawn per portal block per tick.static final intMaximum search radius when looking for a valid portal location (in blocks).static final intY-offset margin from world height limits when searching for portal placement.static final doubleSafety margin from world border (in blocks).static final doubleMaximum coordinate value for portal placement (world border safety).static final doubleMinimum coordinate value for portal placement (world border safety). -
Method Summary
-
Field Details
-
MAX_PORTAL_WIDTH
public static final int MAX_PORTAL_WIDTHMaximum width for vanilla-style (vertical) portals.- See Also:
-
MAX_PORTAL_HEIGHT
public static final int MAX_PORTAL_HEIGHTMaximum height for vanilla-style (vertical) portals.- See Also:
-
MIN_PORTAL_WIDTH
public static final int MIN_PORTAL_WIDTHMinimum width for vanilla-style portals.- See Also:
-
MIN_PORTAL_HEIGHT
public static final int MIN_PORTAL_HEIGHTMinimum height for vanilla-style portals.- See Also:
-
MAX_FLAT_PORTAL_X_SIZE
public static final int MAX_FLAT_PORTAL_X_SIZEMaximum size for flat (horizontal) portals in the X direction.- See Also:
-
MAX_FLAT_PORTAL_Z_SIZE
public static final int MAX_FLAT_PORTAL_Z_SIZEMaximum size for flat (horizontal) portals in the Z direction.- See Also:
-
MIN_FLAT_PORTAL_SIZE
public static final int MIN_FLAT_PORTAL_SIZEMinimum size for flat portals (both X and Z).- See Also:
-
PORTAL_SEARCH_RADIUS
public static final int PORTAL_SEARCH_RADIUSMaximum 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_DEPTHMaximum recursion depth when searching for portal base block.- See Also:
-
PORTAL_Y_SEARCH_MARGIN
public static final int PORTAL_Y_SEARCH_MARGINY-offset margin from world height limits when searching for portal placement.- See Also:
-
WORLD_BORDER_MIN
public static final double WORLD_BORDER_MINMinimum coordinate value for portal placement (world border safety).- See Also:
-
WORLD_BORDER_MAX
public static final double WORLD_BORDER_MAXMaximum coordinate value for portal placement (world border safety).- See Also:
-
WORLD_BORDER_MARGIN
public static final double WORLD_BORDER_MARGINSafety margin from world border (in blocks).- See Also:
-
AMBIENT_SOUND_CHANCE
public static final int AMBIENT_SOUND_CHANCEChance (1 in N) for ambient sound to play each tick.- See Also:
-
PARTICLES_PER_TICK
public static final int PARTICLES_PER_TICKNumber of particles to spawn per portal block per tick.- See Also:
-
MAX_FRAME_CHECK_DISTANCE
public static final int MAX_FRAME_CHECK_DISTANCEMaximum number of blocks to check in any direction when validating portal frame.- See Also:
-