Class PortalLink

java.lang.Object
tech.anonymoushacker1279.openportals.portal.PortalLink

public class PortalLink extends Object
Facade for portal configuration, sounds, and events. Composes PortalConfiguration, PortalSoundManager, and PortalEventHandler to provide a unified interface while maintaining separation of concerns.

Use PortalLink.Builder to create instances via CustomPortalBuilder.

  • 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)
    • canLightInDimension

      public boolean canLightInDimension(net.minecraft.resources.Identifier identifier)
    • getTriggerSound

      public PortalSoundManager.SoundConfiguration<net.minecraft.world.entity.Entity> getTriggerSound()
    • getAmbientSound

      public PortalSoundManager.SoundConfiguration<net.minecraft.world.level.Level> getAmbientSound()
    • getTriggerSoundIdentifier

      @Nullable public @Nullable net.minecraft.resources.Identifier getTriggerSoundIdentifier()
    • getAmbientSoundIdentifier

      @Nullable public @Nullable net.minecraft.resources.Identifier getAmbientSoundIdentifier()
    • playTravelSound

      public void playTravelSound(net.minecraft.world.entity.Entity entity)
    • getPreTeleportEvent

      public Function<net.minecraft.world.entity.Entity, Boolean> getPreTeleportEvent()
    • getPrePortalIgniteEvent

      public BiFunction<net.minecraft.core.BlockPos, PortalIgnitionSource, Boolean> getPrePortalIgniteEvent()
    • getPostPortalIgniteEvent

      public BiConsumer<net.minecraft.core.BlockPos, PortalIgnitionSource> getPostPortalIgniteEvent()
    • getPortalParticle

      public BiFunction<net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.core.particles.ParticleOptions> getPortalParticle()
    • executePostTeleportEvent

      public void executePostTeleportEvent(net.minecraft.world.entity.Entity entity)