Class PortalIgniter
java.lang.Object
tech.anonymoushacker1279.openportals.portal.PortalIgniter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanattemptPortalLight(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos portalPos, net.minecraft.core.BlockPos framePos, PortalIgnitionSource ignitionSource) Attempts to light a portal at the specified position in the given level.static booleanattemptPortalLight(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos portalPos, PortalIgnitionSource ignitionSource) Attempts to light a portal at the specified position in the given level.
-
Constructor Details
-
PortalIgniter
public PortalIgniter()
-
-
Method Details
-
attemptPortalLight
public static boolean attemptPortalLight(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos portalPos, PortalIgnitionSource ignitionSource) Attempts to light a portal at the specified position in the given level.- Parameters:
level- the level where the portal is to be litportalPos- the position of the portal to be litignitionSource- the source of ignition for the portal- Returns:
- true if the portal was successfully lit, false otherwise
-
attemptPortalLight
public static boolean attemptPortalLight(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos portalPos, net.minecraft.core.BlockPos framePos, PortalIgnitionSource ignitionSource) Attempts to light a portal at the specified position in the given level.- Parameters:
level- the level where the portal is to be litportalPos- the position of the portal to be litframePos- the position of the frame block for the portalignitionSource- the source of ignition for the portal- Returns:
- true if the portal was successfully lit, false otherwise
-