Class SphereArea

All Implemented Interfaces:
IMarkableArea

public class SphereArea extends CenteredArea
  • Field Details

    • CODEC

      public static com.mojang.serialization.Codec<SphereArea> CODEC
  • Constructor Details

    • SphereArea

      public SphereArea(net.minecraft.core.BlockPos centerPos, net.minecraft.core.BlockPos scopePos)
    • SphereArea

      public SphereArea(net.minecraft.core.BlockPos middlePos, int radius)
  • Method Details

    • expand

      public static SphereArea expand(SphereArea area, int expansion)
    • getRadius

      public int getRadius()
    • contains

      public boolean contains(net.minecraft.core.BlockPos pos)
      Specified by:
      contains in interface IMarkableArea
      Overrides:
      contains in class CenteredArea
    • isHullBlock

      public boolean isHullBlock(net.minecraft.core.BlockPos pos)
    • getHull

      public Set<net.minecraft.core.BlockPos> getHull()
      Description copied from interface: IMarkableArea
      Set containing all block positions which represent the outer hull of the marked area. The hull is the solid outer perimeter of the marked area.
    • getFrame

      public Set<net.minecraft.core.BlockPos> getFrame()
      Description copied from interface: IMarkableArea
      Set containing all block positions which represent the outer frame of the marked area. The frame is the minimum required blocks to give a rough outline o the marked area
    • getMinimalOutline

      public Set<net.minecraft.core.BlockPos> getMinimalOutline()
    • contains

      public boolean contains(CuboidArea inner)
    • contains

      public boolean contains(SphereArea inner)
    • intersects

      public boolean intersects(CuboidArea other)
    • intersects

      public boolean intersects(SphereArea other)
    • containsOther

      public boolean containsOther(IMarkableArea inner)
    • intersects

      public boolean intersects(IMarkableArea other)
    • getType

      public MarkedAreaType<?> getType()
    • toString

      public String toString()
      Overrides:
      toString in class Object