Experiemntally convert mana network to using sets

This commit is contained in:
Vincent Lee committed 2016-04-12 12:28:58 -05:00
1 parent 649dffcf71
commit 7a36e543ad
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);
}