本文整理汇总了Java中cyano.poweradvantage.blocks.BlockPowerSwitch类的典型用法代码示例。如果您正苦于以下问题:Java BlockPowerSwitch类的具体用法?Java BlockPowerSwitch怎么用?Java BlockPowerSwitch使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BlockPowerSwitch类属于cyano.poweradvantage.blocks包,在下文中一共展示了BlockPowerSwitch类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import cyano.poweradvantage.blocks.BlockPowerSwitch; //导入依赖的package包/类
public static void init(){
if(initDone) return;
steam_pipe = addBlock(new SteamPipeBlock(),"steam_pipe");
OreDictionary.registerOre("conduitSteam", steam_pipe);
steam_track = addBlock(new SteamTrackBlock(),"steam_track");
steam_boiler_coal = (GUIBlock)addBlock(new CoalBoilerBlock(),"steam_boiler_coal");
steam_boiler_electric = (GUIBlock)addBlock(new ElectricBoilerBlock(),"steam_boiler_electric");
steam_boiler_geothermal = (GUIBlock)addBlock(new GeothermalBoilerBlock(),"steam_boiler_geothermal");
steam_tank = (GUIBlock)addBlock(new SteamTankBlock(),"steam_tank");
steam_furnace = (GUIBlock)addBlock(new BlastFurnaceBlock(),"steam_furnace");
steam_crusher = (GUIBlock)addBlock(new RockCrusherBlock(),"steam_crusher");
steam_drill = (GUIBlock)addBlock(new SteamDrillBlock(),"steam_drill");
drillbit = addBlock(new DrillBitBlock(),"drillbit");
steam_elevator_platform = addBlock(new PlatformBlock(),"platform");
steam_elevator_platforms = new IBlockState[5];
for(int i = 0; i < steam_elevator_platforms.length; i++){
steam_elevator_platforms[i] = steam_elevator_platform.getStateFromMeta(i);
}
steam_elevator = (GUIBlock)addBlock(new SteamElevatorBlock(),"steam_elevator");
steam_switch = addBlock(new BlockPowerSwitch(Power.steam_power),"steam_switch");
pump_pipe_steam = addBlock(new PumpPipeBlock(),"pump_pipe_steam");
pump_pipe_steam.setCreativeTab(CreativeTabs.SEARCH);
steam_still = (GUIBlock)addBlock(new SteamStillBlock(),"steam_still");
steam_pump = (GUIBlock)addBlock(new SteamPumpBlock(),"steam_pump");
steam_boiler_oil = (GUIBlock)addBlock(new OilBoilerBlock(),"steam_boiler_oil");
initDone = true;
}
示例2: init
import cyano.poweradvantage.blocks.BlockPowerSwitch; //导入依赖的package包/类
public static void init(){
if(initDone) return;
Items.init();
electric_conduit = addBlock(new ElectricConduitBlock(),"electric_conduit","wire","conduitElectricity","powerCable","cableElectric");
lithium_ore = addBlock(new Ore(1),"li_ore","oreLithium");
sulfur_ore = addBlock(new Ore(new ItemStack(Items.sulfur_powder,1),0,3),"sulfur_ore","oreSulfur");
electric_track = addBlock(new ElectricScaffoldBlock(),"electric_track");
laser_turret = (GUIBlock)addBlock(new LaserTurretBlock(false),"laser_turret");
laser_turret_evil = (GUIBlock)addBlock(new LaserTurretBlock(true),"laser_turret_evil");
laser_turret_evil.setUnlocalizedName(ElectricAdvantage.MODID+".laser_turret");
laser_turret_evil.setCreativeTab(null);
led_bar = addBlock(new LEDBlock(),"led_bar");
photovoltaic_generator = (GUIBlock)addBlock(new PhotovoltaicGeneratorBlock(),"photovoltaic_generator");
hydroelectric_generator = (GUIBlock)addBlock(new HydroelectricGeneratorBlock(),"hydroelectric_generator");
steam_powered_generator = (GUIBlock)addBlock(new SteamPoweredElectricGeneratorBlock(),"steam_powered_generator");
arc_furnace = (GUIBlock)addBlock(new ElectricFurnaceBlock(),"electric_furnace");
battery_array = (GUIBlock)addBlock(new ElectricBatteryArrayBlock(),"electric_battery_array");
rock_crusher = (GUIBlock)addBlock(new ElectricCrusherBlock(),"electric_crusher");
laser_drill = (GUIBlock)addBlock(new ElectricDrillBlock(),"electric_drill");
fabricator = (GUIBlock)addBlock(new ElectricFabricatorBlock(),"electric_fabricator");
growth_chamber = (GUIBlock)addBlock(new GrowthChamberBlock(),"growth_chamber");
growth_chamber_controller = (GUIBlock)addBlock(new GrowthChamberControllerBlock(),"growth_chamber_controller");
oven = (GUIBlock)addBlock(new ElectricOvenBlock(),"electric_oven");
electric_switch = addBlock(new BlockPowerSwitch(Power.ELECTRIC_POWER),"electric_switch");
electric_pump = (GUIBlock)addBlock(new ElectricPumpBlock(),"electric_pump");
electric_still = (GUIBlock)addBlock(new ElectricStillBlock(),"electric_still");
plastic_refinery = (GUIBlock)addBlock(new PlasticRefineryBlock(),"plastic_refinery");
pump_pipe_electric = addBlock(new PumpPipeBlock(),"pump_pipe_electric");
pump_pipe_electric.setCreativeTab(CreativeTabs.SEARCH);
// required OreDictionary entries
OreDictionary.registerOre("blockDirt", net.minecraft.init.Blocks.DIRT);
OreDictionary.registerOre("blockDirt", net.minecraft.init.Blocks.GRASS);
initDone = true;
}