Class PortalConfiguration

java.lang.Object
tech.anonymoushacker1279.openportals.portal.config.PortalConfiguration

public class PortalConfiguration extends Object
Immutable configuration data for a custom portal.
  • Method Details

    • getFrameBlock

      public net.minecraft.world.level.block.Block getFrameBlock()
    • getIgnitionSource

      public PortalIgnitionSource getIgnitionSource()
    • getPortalBlock

      public CustomPortalBlock getPortalBlock()
    • getTargetDimensionIdentifier

      public net.minecraft.resources.Identifier getTargetDimensionIdentifier()
    • getReturnDimensionIdentifier

      public net.minecraft.resources.Identifier getReturnDimensionIdentifier()
    • getColor

      public int getColor()
    • getStrictWidth

      public int getStrictWidth()
    • getStrictHeight

      public int getStrictHeight()
    • getPortalSearchYBottom

      public int getPortalSearchYBottom()
    • getPortalSearchYTop

      public int getPortalSearchYTop()
    • getReturnPortalSearchYBottom

      public int getReturnPortalSearchYBottom()
    • getReturnPortalSearchYTop

      public int getReturnPortalSearchYTop()
    • getFrameTester

      public PortalFrameTester getFrameTester()
    • doesIgnitionMatch

      public boolean doesIgnitionMatch(PortalIgnitionSource attemptedSource)
      Check if the given ignition source matches this portal's ignition source.
      Parameters:
      attemptedSource - the ignition source to check
      Returns:
      true if the sources match
    • canLightInDimension

      public boolean canLightInDimension(net.minecraft.resources.Identifier identifier)
      Check if this portal can be lit in the given dimension.
      Parameters:
      identifier - the dimension identifier to check
      Returns:
      true if the portal can be lit in this dimension