Interface ISpatialStorageCell


public interface ISpatialStorageCell
Implemented on a Item
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    doSpatialTransition(net.minecraft.world.item.ItemStack is, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos min, net.minecraft.core.BlockPos max, int playerId)
    Perform a spatial swap with the contents of the cell, and the level.
    int
    getAllocatedPlotId(net.minecraft.world.item.ItemStack is)
    get the currently stored spatial storage plot id.
    int
    getMaxStoredDim(net.minecraft.world.item.ItemStack is)
     
    boolean
    isSpatialStorage(net.minecraft.world.item.ItemStack is)
     
  • Method Details

    • isSpatialStorage

      boolean isSpatialStorage(net.minecraft.world.item.ItemStack is)
      Parameters:
      is - spatial storage cell
      Returns:
      true if this item is a spatial storage cell
    • getMaxStoredDim

      int getMaxStoredDim(net.minecraft.world.item.ItemStack is)
      Parameters:
      is - spatial storage cell
      Returns:
      the maximum size of the spatial storage cell along any given axis
    • getAllocatedPlotId

      int getAllocatedPlotId(net.minecraft.world.item.ItemStack is)
      get the currently stored spatial storage plot id.
      Parameters:
      is - spatial storage cell
      Returns:
      plot id or -1
    • doSpatialTransition

      boolean doSpatialTransition(net.minecraft.world.item.ItemStack is, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos min, net.minecraft.core.BlockPos max, int playerId)
      Perform a spatial swap with the contents of the cell, and the level.
      Parameters:
      is - spatial storage cell
      level - level of spatial
      min - min coord
      max - max coord
      playerId - owner of current grid or -1
      Returns:
      success of transition