mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
oh get ready for this one
huge commit yes i should have spread it out but im lazy :3
This commit is contained in:
parent
42bf74c464
commit
3a38c71c34
@ -921,6 +921,7 @@ public class MainRegistry {
|
|||||||
World world = event.getServer().getEntityWorld();
|
World world = event.getServer().getEntityWorld();
|
||||||
RBMKDials.createDials(world);
|
RBMKDials.createDials(world);
|
||||||
SiegeOrchestrator.createGameRules(world);
|
SiegeOrchestrator.createGameRules(world);
|
||||||
|
CompatHandler.createCompat(world);
|
||||||
event.registerServerCommand(new CommandReloadRecipes());
|
event.registerServerCommand(new CommandReloadRecipes());
|
||||||
event.registerServerCommand(new CommandDebugChunkLoad());
|
event.registerServerCommand(new CommandDebugChunkLoad());
|
||||||
event.registerServerCommand(new CommandSatellites());
|
event.registerServerCommand(new CommandSatellites());
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.hbm.tileentity.machine;
|
|||||||
|
|
||||||
import com.hbm.blocks.ModBlocks;
|
import com.hbm.blocks.ModBlocks;
|
||||||
import com.hbm.blocks.machine.ReactorResearch;
|
import com.hbm.blocks.machine.ReactorResearch;
|
||||||
|
import com.hbm.handler.CompatHandler;
|
||||||
import com.hbm.inventory.container.ContainerMachineReactorBreeding;
|
import com.hbm.inventory.container.ContainerMachineReactorBreeding;
|
||||||
import com.hbm.inventory.gui.GUIMachineReactorBreeding;
|
import com.hbm.inventory.gui.GUIMachineReactorBreeding;
|
||||||
import com.hbm.inventory.recipes.BreederRecipes;
|
import com.hbm.inventory.recipes.BreederRecipes;
|
||||||
@ -15,7 +16,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||||||
import li.cil.oc.api.machine.Arguments;
|
import li.cil.oc.api.machine.Arguments;
|
||||||
import li.cil.oc.api.machine.Callback;
|
import li.cil.oc.api.machine.Callback;
|
||||||
import li.cil.oc.api.machine.Context;
|
import li.cil.oc.api.machine.Context;
|
||||||
import li.cil.oc.api.network.SimpleComponent;
|
import li.cil.oc.api.network.SidedComponent;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.gui.GuiScreen;
|
import net.minecraft.client.gui.GuiScreen;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
@ -27,8 +28,8 @@ import net.minecraft.util.AxisAlignedBB;
|
|||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
@Optional.InterfaceList({@Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers")})
|
@Optional.InterfaceList({@Optional.Interface(iface = "li.cil.oc.api.network.SidedComponent", modid = "OpenComputers")})
|
||||||
public class TileEntityMachineReactorBreeding extends TileEntityMachineBase implements SimpleComponent, IGUIProvider {
|
public class TileEntityMachineReactorBreeding extends TileEntityMachineBase implements SidedComponent, IGUIProvider {
|
||||||
|
|
||||||
public int flux;
|
public int flux;
|
||||||
public float progress;
|
public float progress;
|
||||||
@ -216,11 +217,16 @@ public class TileEntityMachineReactorBreeding extends TileEntityMachineBase impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// do some opencomputer stuff
|
// do some opencomputer stuff
|
||||||
@Override
|
|
||||||
public String getComponentName() {
|
public String getComponentName() {
|
||||||
return "breeding_reactor";
|
return "breeding_reactor";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canConnectNode(ForgeDirection side) {
|
||||||
|
return (CompatHandler.canConnect(worldObj, side, this));
|
||||||
|
}
|
||||||
|
|
||||||
@Callback
|
@Callback
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getFlux(Context context, Arguments args) {
|
public Object[] getFlux(Context context, Arguments args) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user