当前位置: 首页>>代码示例>>Java>>正文


Java MachineGUIRegistry类代码示例

本文整理汇总了Java中cyano.poweradvantage.registry.MachineGUIRegistry的典型用法代码示例。如果您正苦于以下问题:Java MachineGUIRegistry类的具体用法?Java MachineGUIRegistry怎么用?Java MachineGUIRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

MachineGUIRegistry类属于cyano.poweradvantage.registry包,在下文中一共展示了MachineGUIRegistry类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import cyano.poweradvantage.registry.MachineGUIRegistry; //导入依赖的package包/类
public static void init(){
	if(initDone) return;
	
	Blocks.init();
	Entities.init();

	Blocks.steam_powered_generator.setGuiID(MachineGUIRegistry.addGUI(new PowerGeneratorGUI()), PowerAdvantage.getInstance());
	Blocks.photovoltaic_generator.setGuiID(MachineGUIRegistry.addGUI(new PowerGeneratorGUI()), PowerAdvantage.getInstance());

	Blocks.arc_furnace.setGuiID(MachineGUIRegistry.addGUI(new ArcFurnaceGUI()), PowerAdvantage.getInstance());
	Blocks.battery_array.setGuiID(MachineGUIRegistry.addGUI(new BatteryArrayGUI()), PowerAdvantage.getInstance());
	Blocks.rock_crusher.setGuiID(MachineGUIRegistry.addGUI(new RockCrusherGUI()), PowerAdvantage.getInstance());
	Blocks.laser_turret.setGuiID(MachineGUIRegistry.addGUI(new GenericMachineGUI()), PowerAdvantage.getInstance());
	Blocks.laser_drill.setGuiID(MachineGUIRegistry.addGUI(new ElectricDrillGUI()), PowerAdvantage.getInstance());
	Blocks.fabricator.setGuiID(MachineGUIRegistry.addGUI(new FabricatorGUI()), PowerAdvantage.getInstance());
	Blocks.growth_chamber.setGuiID(MachineGUIRegistry.addGUI(new GrowthChamberGUI()), PowerAdvantage.getInstance());
	Blocks.growth_chamber_controller.setGuiID(MachineGUIRegistry.addGUI(new GrowthChamberControllerGUI()), PowerAdvantage.getInstance());
	Blocks.oven.setGuiID(MachineGUIRegistry.addGUI(new OvenGUI()), PowerAdvantage.getInstance());
	
	Blocks.electric_pump.setGuiID(MachineGUIRegistry.addGUI(new ElectricPumpGUI()), PowerAdvantage.getInstance());
	Blocks.electric_still.setGuiID(MachineGUIRegistry.addGUI(new ElectricStillGUI()), PowerAdvantage.getInstance());
	Blocks.plastic_refinery.setGuiID(MachineGUIRegistry.addGUI(new PlasticRefineryGUI()), PowerAdvantage.getInstance());
	
	initDone = true;
}
 
开发者ID:cyanobacterium,项目名称:ElectricAdvantage,代码行数:26,代码来源:GUI.java


示例2: init

import cyano.poweradvantage.registry.MachineGUIRegistry; //导入依赖的package包/类
public static void init(){
	if(initDone) return;
	
	Blocks.init();
	Entities.init();

	Blocks.steam_boiler_coal.setGuiID(MachineGUIRegistry.addGUI(new CoalBoilerGUI()),PowerAdvantage.getInstance());
	Blocks.steam_tank.setGuiID(MachineGUIRegistry.addGUI(new SteamTankGUI()),PowerAdvantage.getInstance());
	Blocks.steam_furnace.setGuiID(MachineGUIRegistry.addGUI(new BlastFurnaceGUI()),PowerAdvantage.getInstance());
	Blocks.steam_crusher.setGuiID(MachineGUIRegistry.addGUI(new RockCrusherGUI()),PowerAdvantage.getInstance());
	Blocks.steam_drill.setGuiID(MachineGUIRegistry.addGUI(new SteamDrillGUI()),PowerAdvantage.getInstance());
	Blocks.steam_boiler_electric.setGuiID(MachineGUIRegistry.addGUI(new ElectricBoilerGUI()),PowerAdvantage.getInstance());
	Blocks.steam_boiler_geothermal.setGuiID(MachineGUIRegistry.addGUI(new GeothermalBoilerGUI()),PowerAdvantage.getInstance());
	Blocks.steam_boiler_oil.setGuiID(MachineGUIRegistry.addGUI(new OilBoilerGUI()),PowerAdvantage.getInstance());
	Blocks.steam_still.setGuiID(MachineGUIRegistry.addGUI(new SteamStillGUI()),PowerAdvantage.getInstance());
	Blocks.steam_pump.setGuiID(MachineGUIRegistry.addGUI(new SteamPumpGUI()),PowerAdvantage.getInstance());
	
	
	initDone = true;
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:21,代码来源:GUI.java


示例3: init

import cyano.poweradvantage.registry.MachineGUIRegistry; //导入依赖的package包/类
public static void init(){
	if(initDone) return;
	
	Blocks.init();

	Blocks.fluid_drain.setGuiID(MachineGUIRegistry.addGUI(new FluidTankGUI(new ResourceLocation(PowerAdvantage.MODID+":"+"textures/gui/container/fluid_drain_gui.png"))),PowerAdvantage.getInstance());
	
	Blocks.fluid_discharge.setGuiID(MachineGUIRegistry.addGUI(new FluidTankGUI(new ResourceLocation(PowerAdvantage.MODID+":"+"textures/gui/container/fluid_discharge_gui.png"))),PowerAdvantage.getInstance());

	Blocks.storage_tank.setGuiID(MachineGUIRegistry.addGUI(new FluidTankGUI(new ResourceLocation(PowerAdvantage.MODID+":"+"textures/gui/container/fluid_storage_tank_gui.png"))),PowerAdvantage.getInstance());
	
	Blocks.metal_storage_tank.setGuiID(MachineGUIRegistry.addGUI(new FilteredFluidTankGUI(new ResourceLocation(PowerAdvantage.MODID+":"+"textures/gui/container/fluid_metal_tank_gui.png"))),PowerAdvantage.getInstance());

	Blocks.still.setGuiID(MachineGUIRegistry.addGUI(new StillGUI(new ResourceLocation(PowerAdvantage.MODID+":"+"textures/gui/container/still_gui.png"))),PowerAdvantage.getInstance());

	Blocks.item_conveyor.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor.png",
			Integer2D.fromCoordinates(80,31))),PowerAdvantage.getInstance());
	Blocks.item_filter_block.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_block.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_food.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_food.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_fuel.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_fuel.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_inventory.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_inventory.png",
			Integer2D.fromCoordinates(80,12, 8,56, 26,56, 44,56, 62,56, 80,56, 98,56, 116,56, 134,56, 152,56 ))),PowerAdvantage.getInstance());
	Blocks.item_filter_ore.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_ore.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_plant.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_plant.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_smelt.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_smelt.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	Blocks.item_filter_overflow.setGuiID(MachineGUIRegistry.addGUI(new SimpleMachineGUI(
			PowerAdvantage.MODID+":textures/gui/container/item_conveyor_overflow.png",
			Integer2D.fromCoordinates(80,12))),PowerAdvantage.getInstance());
	
	initDone = true;
}
 
开发者ID:cyanobacterium,项目名称:PowerAdvantageAPI,代码行数:46,代码来源:GUI.java



注:本文中的cyano.poweradvantage.registry.MachineGUIRegistry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。