public ContainerWorldMachine(EntityPlayer player, TileWorldMachine tile)
{
this.tile = tile;
InventoryPlayer ip = player.inventory;
int playerInventoryX = 35;
int playerInventoryY = 147;
for(int x = 0; x < 9; x++)
this.addSlotToContainer(new Slot(ip, x, playerInventoryX + x * 18 , playerInventoryY+58));
for(int x = 0; x < 9; x++)
for(int y = 0; y < 3; y++)
this.addSlotToContainer(new Slot(ip, 9 + y * 9 + x, playerInventoryX + x * 18, playerInventoryY + y * 18));
SlotWorldModule core = new SlotWorldModule(tile, 0, 21, 21, IWorldBuilderModule.ModuleType.CORE);
SlotWorldModule mantle = new SlotWorldModule(tile, 1, 39, 21, IWorldBuilderModule.ModuleType.MANTLE, core);
SlotWorldModule crust = new SlotWorldModule(tile, 2, 57, 21, IWorldBuilderModule.ModuleType.CRUST, core, mantle);
SlotWorldModule land = new SlotWorldModule(tile, 3, 21, 39, IWorldBuilderModule.ModuleType.LANDSCAPE, core, mantle, crust);
SlotWorldModule world = new SlotWorldModule(tile, 4, 39, 39, IWorldBuilderModule.ModuleType.WORLD, core, mantle, crust, land);
SlotWorldModule atmosphere = new SlotWorldModule(tile, 5, 57, 39, IWorldBuilderModule.ModuleType.ATMOSPHERE, core, mantle, crust, land, world);
this.addSlotToContainer(core);
this.addSlotToContainer(mantle);
this.addSlotToContainer(crust);
this.addSlotToContainer(land);
this.addSlotToContainer(world);
this.addSlotToContainer(atmosphere);
}
ContainerWorldMachine.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:CraftingParadiseMod
作者:
评论列表
文章目录