Interface PortalBuilder
- All Known Implementing Classes:
FlatPortalFrameTester, PortalFrameTester, VerticalPortalFrameTester
public interface PortalBuilder
Interface for building and lighting portal structures. Responsible for creating portal blocks and modifying the world
to form portals.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePortal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState frameBlock, net.minecraft.core.Direction.Axis axis) Create a complete portal structure at the given position.voidlightPortal(net.minecraft.world.level.block.Block frameBlock) Light the portal by filling it with portal blocks.
-
Method Details
-
lightPortal
void lightPortal(net.minecraft.world.level.block.Block frameBlock) Light the portal by filling it with portal blocks.- Parameters:
frameBlock- the block that serves as the portal frame
-
createPortal
void createPortal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState frameBlock, net.minecraft.core.Direction.Axis axis) Create a complete portal structure at the given position. This includes placing the frame and portal blocks.- Parameters:
level- the level to create the portal inpos- the position to create the portal atframeBlock- the block state to use for the frameaxis- the axis along which the portal should be oriented
-