Started P2P rework (#2966)
* First iteration of P2P rework Changed frequency to short instead of long. Added a per grid RNG to request a new frequency, hopefully without many collisons. Added a helper to convert between a frequency and 4 colours
This commit is contained in:
@@ -129,6 +129,7 @@ import appeng.me.GridAccessException;
|
||||
import appeng.me.GridNode;
|
||||
import appeng.me.helpers.AENetworkProxy;
|
||||
import appeng.util.helpers.ItemComparisonHelper;
|
||||
import appeng.util.helpers.P2PHelper;
|
||||
import appeng.util.item.AEItemStack;
|
||||
import appeng.util.item.AESharedNBT;
|
||||
import appeng.util.prioritylist.IPartitionList;
|
||||
@@ -157,12 +158,18 @@ public class Platform
|
||||
// private static Method getEntry;
|
||||
|
||||
private static final ItemComparisonHelper ITEM_COMPARISON_HELPER = new ItemComparisonHelper();
|
||||
private static final P2PHelper P2P_HELPER = new P2PHelper();
|
||||
|
||||
public static ItemComparisonHelper itemComparisons()
|
||||
{
|
||||
return ITEM_COMPARISON_HELPER;
|
||||
}
|
||||
|
||||
public static P2PHelper p2p()
|
||||
{
|
||||
return P2P_HELPER;
|
||||
}
|
||||
|
||||
public static Random getRandom()
|
||||
{
|
||||
return RANDOM_GENERATOR;
|
||||
|
||||
Reference in New Issue
Block a user