mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Even more modularization
This commit is contained in:
1 parent
b2f20185e4
commit
f64ea42e43
14 files changed
+176
-340
No files matched your search
@@ -5,7 +5,6 @@ import java.util.Set;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
/**
|
||||
* A handy class containing several utilities for efficient gas transfer.
|
||||
@@ -14,23 +13,6 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
*/
|
||||
public final class GasTransmission
|
||||
{
|
||||
/** Do not mess with this, used to only register NetworkLoader once. */
|
||||
private static boolean networkLoader_loaded = false;
|
||||
|
||||
/**
|
||||
* Call this method in your mod's init phase in order for the GasNetwork to function properly.
|
||||
*/
|
||||
public static void register()
|
||||
{
|
||||
if(!networkLoader_loaded)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(new GasNetwork.NetworkLoader());
|
||||
networkLoader_loaded = true;
|
||||
|
||||
System.out.println("[Mekanism] Successfully loaded gas transmission NetworkLoader.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all the tubes around a tile entity.
|
||||
* @param tileEntity - center tile entity
|
||||
|
||||
Reference in new issue
Block a user