Class VerticalCylinderArea

All Implemented Interfaces:
IMarkableArea

public class VerticalCylinderArea extends CenteredArea
Vertical, cylindrical area defined by the bottom center position and a perimeter position. The perimeter position defines both the height and radius of the area.
  • Constructor Details

    • VerticalCylinderArea

      public VerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, net.minecraft.core.BlockPos scopePos)
    • VerticalCylinderArea

      public VerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, int radius, int distance)
  • Method Details

    • getCenter

      public net.minecraft.core.Vec3i getCenter()
      Overrides:
      getCenter in class CenteredArea
    • contains

      public boolean contains(net.minecraft.core.BlockPos pos)
      Specified by:
      contains in interface IMarkableArea
      Overrides:
      contains in class CenteredArea
      Parameters:
      pos -
      Returns:
    • 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()
    • getDistance

      public int getDistance()
    • getRadius

      public int getRadius()
    • multiply

      public net.minecraft.core.BlockPos multiply(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2)
    • containsOther

      public boolean containsOther(IMarkableArea other)
    • intersects

      public boolean intersects(IMarkableArea other)
    • getType

      public MarkedAreaType<?> getType()
    • toString

      public String toString()
      Overrides:
      toString in class Object