Class DummyManaNetwork

java.lang.Object
vazkii.botania.api.internal.DummyManaNetwork
All Implemented Interfaces:
ManaNetwork

public class DummyManaNetwork extends Object implements ManaNetwork
  • Field Details

  • Constructor Details

    • DummyManaNetwork

      public DummyManaNetwork()
  • Method Details

    • clear

      public void clear()
      Description copied from interface: ManaNetwork
      Clears the entire Mana Network of all it's contents, you probably don't want to call this unless you have a very good reason.
      Specified by:
      clear in interface ManaNetwork
    • getClosestPool

      public ManaPool getClosestPool(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level world, int limit)
      Description copied from interface: ManaNetwork
      Gets the closest Mana Pool in the network to the Chunk Coordinates passed in, in the given dimension.
      Note that this function *can* get performance intensive, it's reccomended you call it sparingly and take cache of the value returned.
      Specified by:
      getClosestPool in interface ManaNetwork
      Parameters:
      limit - The maximum distance the closest block can be, if the closest block is farther away than that, null will be returned instead.
    • getClosestCollector

      public ManaCollector getClosestCollector(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level world, int limit)
      Description copied from interface: ManaNetwork
      Gets the closest Mana Collector (eg. Mana Spreader) in the network to the Chunk Coordinates passed in, in the given dimension.
      Note that this function *can* get performance intensive, it's reccomended you call it sparingly and take cache of the value returned.
      Specified by:
      getClosestCollector in interface ManaNetwork
      Parameters:
      limit - The maximum distance the closest block can be, if the closest block is farther away than that, null will be returned instead.
    • getAllCollectorsInWorld

      public Set<ManaCollector> getAllCollectorsInWorld(net.minecraft.world.level.Level world)
      Description copied from interface: ManaNetwork
      Gets read-only view of all Mana Collectors (eg. Mana Spreader) in the dimension passed in.
      Specified by:
      getAllCollectorsInWorld in interface ManaNetwork
    • getAllPoolsInWorld

      public Set<ManaPool> getAllPoolsInWorld(net.minecraft.world.level.Level world)
      Description copied from interface: ManaNetwork
      Gets read-only view of all Mana Pools in the dimension passed in.
      Specified by:
      getAllPoolsInWorld in interface ManaNetwork
    • fireManaNetworkEvent

      public void fireManaNetworkEvent(ManaReceiver thing, ManaBlockType type, ManaNetworkAction action)
      Specified by:
      fireManaNetworkEvent in interface ManaNetwork