Class NewEndPlatform

java.lang.Object
com.msg.end_less.features.NewEndPlatform

public class NewEndPlatform extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    createPlatform(net.minecraft.world.level.ServerLevelAccessor level, net.minecraft.core.BlockPos pos, boolean dropblock)
     
    static net.minecraft.core.BlockPos
    findClosestPortalNear(net.minecraft.world.phys.Vec3 pos, List<net.minecraft.core.BlockPos> portals, double maxDistance)
    Finds the closest portal within a max distance.
    static void
    placePortal(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, boolean dropblock)
    Place the End Portal with an air box above it

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NewEndPlatform

      public NewEndPlatform()
  • Method Details

    • createPlatform

      public static void createPlatform(net.minecraft.world.level.ServerLevelAccessor level, net.minecraft.core.BlockPos pos, boolean dropblock)
    • placePortal

      public static void placePortal(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, boolean dropblock)
      Place the End Portal with an air box above it
      Parameters:
      level - The current world/dimension.
      pos - The block position.
      dropblock - If true, drop block when break block.
    • findClosestPortalNear

      public static net.minecraft.core.BlockPos findClosestPortalNear(net.minecraft.world.phys.Vec3 pos, List<net.minecraft.core.BlockPos> portals, double maxDistance)
      Finds the closest portal within a max distance.
      Parameters:
      pos - The position where it is checking.
      portals - A list of portal positions.
      maxDistance - The max distance to consider.
      Returns:
      The closest portal position, or null if none is close enough.