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 Type
    Method
    Description
    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.
    void
    lightPortal(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 in
      pos - the position to create the portal at
      frameBlock - the block state to use for the frame
      axis - the axis along which the portal should be oriented