mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Experiemntally convert mana network to using sets
This commit is contained in:
3 files changed
+33
-43
No files matched your search
@@ -16,6 +16,7 @@ import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.TileSignature;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* A basic interface for a world's Mana Network.
|
||||
@@ -52,16 +53,16 @@ public interface IManaNetwork {
|
||||
public TileEntity getClosestPool(BlockPos pos, World world, int limit);
|
||||
|
||||
/**
|
||||
* Gets the list of all Mana Collectors (eg. Mana Spreader) in the dimension
|
||||
* passed in. Note that this is the actual list and not a copy, make sure to
|
||||
* clone the list if you intend to change it in any way.
|
||||
* Gets the set of all Mana Collectors (eg. Mana Spreader) in the dimension
|
||||
* passed in. Note that this is the actual set and not a copy, make sure to
|
||||
* clone the set if you intend to change it in any way.
|
||||
*/
|
||||
public List<TileSignature> getAllCollectorsInWorld(World world);
|
||||
public Set<TileSignature> getAllCollectorsInWorld(World world);
|
||||
|
||||
/**
|
||||
* Gets the list of all Mana Pools in the dimension passed in. Note that this
|
||||
* is the actual list and not a copy, make sure to clone the list if you intend
|
||||
* Gets the set of all Mana Pools in the dimension passed in. Note that this
|
||||
* is the actual set and not a copy, make sure to clone the set if you intend
|
||||
* to change it in any way.
|
||||
*/
|
||||
public List<TileSignature> getAllPoolsInWorld(World world);
|
||||
public Set<TileSignature> getAllPoolsInWorld(World world);
|
||||
}
|
||||
Reference in new issue
Block a user