Package erogenousbeef.bigreactors.common.multiblock.block

Examples of erogenousbeef.bigreactors.common.multiblock.block.BlockReactorPart



  public static void registerReactorPartBlocks(int id, boolean require) {
    if(BigReactors.blockReactorPart == null) {
      BRConfig.CONFIGURATION.load();
      BigReactors.blockReactorPart = new BlockReactorPart(Material.iron);
      GameRegistry.registerBlock(BigReactors.blockReactorPart, ItemBlockBigReactors.class, "BRReactorPart");

      OreDictionary.registerOre("reactorCasing", BigReactors.blockReactorPart.getReactorCasingItemStack());
      OreDictionary.registerOre("reactorController", BigReactors.blockReactorPart.getReactorControllerItemStack());
      OreDictionary.registerOre("reactorPowerTap", BigReactors.blockReactorPart.getReactorPowerTapItemStack());
View Full Code Here


   
    settingString = new BeefGuiLabel(this, "Pick a setting", leftX, topY);
    topY += settingString.getHeight() + 4;
   
    // Setting picker
    BlockReactorPart reactorPartBlock = (BlockReactorPart)BigReactors.blockReactorPart;
    int buttonOrdinal = MINIMUM_SETTING_SELECTOR_ID;
    leftX = guiLeft + 16;
    CircuitType currentCircuitType = port.getCircuitType();
    for(CircuitType ct : CircuitType.values()) {
      if(ct == CircuitType.DISABLED) { continue; }
      GuiSelectableButton newBtn = new GuiSelectableButton(buttonOrdinal++, leftX, topY, reactorPartBlock.getRedNetConfigIcon(ct), 0xFF00FF00, this);
      newBtn.displayString = GuiReactorRedNetPort.grabbableTooltips[ct.ordinal()-1];

      if(ct == currentCircuitType) {
        newBtn.setSelected(true);
      }
View Full Code Here

      registerControl(grabTargets[i]);
      registerControl(grabTargets[i+1]);
    }
   
    TileEntityReactorRedNetPort.CircuitType[] circuitTypes = TileEntityReactorRedNetPort.CircuitType.values();
    BlockReactorPart reactorPartBlock = (BlockReactorPart)BigReactors.blockReactorPart;
    RedNetConfigGrabbable[] grabbables = new RedNetConfigGrabbable[circuitTypes.length - 1];
    topY = guiTop + 21;
    leftX = guiLeft + 156;
    for(int i = 1; i < circuitTypes.length; i++) {
      grabbables[i-1] = new RedNetConfigGrabbable(grabbableTooltips[i-1], reactorPartBlock.getRedNetConfigIcon(circuitTypes[i]), circuitTypes[i]);
      BeefGuiGrabSource source = new BeefGuiGrabSource(this, leftX, topY, grabbables[i - 1]);     
      registerControl(source);
      leftX += 20;
      if(leftX >= guiLeft + 230) {
        leftX = guiLeft + 156;
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.multiblock.block.BlockReactorPart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.