Class SpatialData

java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.util.SpatialData

public class SpatialData extends Object
A collection of information about an area.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.level.block.Block
    The base block of the area.
    int
    The diameter of space at the location.
    Set<net.minecraft.world.level.block.Block>
    A list of all distinct blocks within the diameter of the base block.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpatialData(int radius, net.minecraft.world.level.block.Block baseBlock, Set<net.minecraft.world.level.block.Block> uniqueSurroundingBlocks)
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • radius

      public int radius
      The diameter of space at the location.
    • baseBlock

      public net.minecraft.world.level.block.Block baseBlock
      The base block of the area.
    • uniqueSurroundingBlocks

      public Set<net.minecraft.world.level.block.Block> uniqueSurroundingBlocks
      A list of all distinct blocks within the diameter of the base block.
  • Constructor Details

    • SpatialData

      public SpatialData(int radius, net.minecraft.world.level.block.Block baseBlock, Set<net.minecraft.world.level.block.Block> uniqueSurroundingBlocks)