Class PortalLink
java.lang.Object
tech.anonymoushacker1279.openportals.portal.PortalLink
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for creating immutablePortalLinkinstances. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLightInDimension(net.minecraft.resources.Identifier identifier) booleandoesIgnitionMatch(PortalIgnitionSource attemptedSource) voidexecutePostTeleportEvent(net.minecraft.world.entity.Entity entity) PortalSoundManager.SoundConfiguration<net.minecraft.world.level.Level> @Nullable net.minecraft.resources.IdentifierintgetColor()net.minecraft.world.level.block.BlockBiFunction<net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.core.particles.ParticleOptions> intintBiConsumer<net.minecraft.core.BlockPos, PortalIgnitionSource> BiFunction<net.minecraft.core.BlockPos, PortalIgnitionSource, Boolean> net.minecraft.resources.Identifierintintintintnet.minecraft.resources.IdentifierPortalSoundManager.SoundConfiguration<net.minecraft.world.entity.Entity> @Nullable net.minecraft.resources.IdentifiervoidplayTravelSound(net.minecraft.world.entity.Entity entity)
-
Method Details
-
getFrameBlock
public net.minecraft.world.level.block.Block getFrameBlock() -
getIgnitionSource
-
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
-
doesIgnitionMatch
-
canLightInDimension
public boolean canLightInDimension(net.minecraft.resources.Identifier identifier) -
getTriggerSound
-
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
-
getPrePortalIgniteEvent
public BiFunction<net.minecraft.core.BlockPos, PortalIgnitionSource, Boolean> getPrePortalIgniteEvent() -
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)
-