Class Circle

java.lang.Object
net.pl3x.map.core.markers.area.Circle
All Implemented Interfaces:
Area

public class Circle extends Object implements Area
  • Constructor Details

    • Circle

      public Circle(int centerX, int centerZ, int radius)
  • Method Details

    • getCenterX

      public int getCenterX()
    • getCenterZ

      public int getCenterZ()
    • getRadius

      public int getRadius()
    • containsBlock

      public boolean containsBlock(int blockX, int blockZ)
      Specified by:
      containsBlock in interface Area
    • containsChunk

      public boolean containsChunk(int chunkX, int chunkZ)
      Specified by:
      containsChunk in interface Area
    • containsRegion

      public boolean containsRegion(int regionX, int regionZ)
      Specified by:
      containsRegion in interface Area
    • serialize

      public Map<String,Object> serialize()
      Specified by:
      serialize in interface Area
    • deserialize

      @NotNull public static @NotNull Circle deserialize(Map<String,Object> map)
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object