Class PortalEventHandler
java.lang.Object
tech.anonymoushacker1279.openportals.portal.config.PortalEventHandler
Handles events and visual effects for portals. Manages teleportation events, ignition events, and particle effects.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutePostTeleportEvent(net.minecraft.world.entity.Entity entity) Execute the post-teleport event for the given entity.BiFunction<net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.core.particles.ParticleOptions> BiConsumer<net.minecraft.core.BlockPos, PortalIgnitionSource> BiFunction<net.minecraft.core.BlockPos, PortalIgnitionSource, Boolean>
-
Method Details
-
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) Execute the post-teleport event for the given entity.- Parameters:
entity- the entity that was teleported
-