當前位置: 首頁>>代碼示例>>Java>>正文


Java PlayerInventory.buildInventoryLayout方法代碼示例

本文整理匯總了Java中com.bioxx.tfc.Core.Player.PlayerInventory.buildInventoryLayout方法的典型用法代碼示例。如果您正苦於以下問題:Java PlayerInventory.buildInventoryLayout方法的具體用法?Java PlayerInventory.buildInventoryLayout怎麽用?Java PlayerInventory.buildInventoryLayout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.bioxx.tfc.Core.Player.PlayerInventory的用法示例。


在下文中一共展示了PlayerInventory.buildInventoryLayout方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: ContainerBrickOven

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerBrickOven(InventoryPlayer inventoryplayer, TEBrickOven BrickOven)
{
	this.teBrickOven = BrickOven;
	firetemp = -1111;
	
	//Input Slots
	addSlotToContainer(new SlotFirepitIn(inventoryplayer.player, teBrickOven, 0, 84, 19));
	addSlotToContainer(new SlotFirepitIn(inventoryplayer.player, teBrickOven, 1, 102, 19));
	addSlotToContainer(new SlotFirepitIn(inventoryplayer.player, teBrickOven, 2, 120, 19));
	
	//Output Slots
	addSlotToContainer(new SlotFirepitOut(inventoryplayer.player, teBrickOven, 3, 84, 47));
	addSlotToContainer(new SlotFirepitOut(inventoryplayer.player, teBrickOven, 4, 102, 47));
	addSlotToContainer(new SlotFirepitOut(inventoryplayer.player, teBrickOven, 5, 120, 47));
	
	//Fuel Slots
	addSlotToContainer(new SlotBrickOvenFuel(inventoryplayer.player, teBrickOven, 6, 8, 7));
	addSlotToContainer(new SlotFirepit(inventoryplayer.player, teBrickOven, 7, 8, 25));
	addSlotToContainer(new SlotFirepit(inventoryplayer.player, teBrickOven, 8, 8, 43));
	addSlotToContainer(new SlotFirepit(inventoryplayer.player, teBrickOven, 9, 8, 61));
	
	PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, 90, false, true);
}
 
開發者ID:StrayWolfe,項目名稱:TerrafirmaPunk-Tweaks,代碼行數:24,代碼來源:ContainerBrickOven.java

示例2: ContainerStall

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerStall(InventoryPlayer inventoryplayer, TileEntityStall stall, boolean isOwnerMode, World world, int x, int y, int z)
{
    _stall = stall;
    _isOwnerMode = isOwnerMode;
    _world = world;

    buildLayout();

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiStall.WindowHeight - 1 + 5, false, true);

}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:12,代碼來源:ContainerStall.java

示例3: ContainerWarehouse

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerWarehouse(InventoryPlayer inventoryplayer, TileEntityWarehouse warehouse, World world, int x, int y, int z)
{
    _warehouse = warehouse;
    _world = world;

    addSlotToContainer(new SlotWarehouse(_warehouse, 0, GuiWarehouse.SlotX, GuiWarehouse.SlotY));

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiWarehouse.WindowHeight - 1 + 5, false, true);
}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:10,代碼來源:ContainerWarehouse.java

示例4: ContainerStallLimit

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerStallLimit(InventoryPlayer inventoryplayer, TileEntityStall stall, World world, int x, int y, int z)
{
    addSlotToContainer(new SlotForShowOnly(stall, stall.getActivePriceSlotIndex(), GuiStallLimit.PriceSlotX, GuiStallLimit.SlotY));
    addSlotToContainer(new SlotForShowOnly(stall, stall.getActiveGoodSlotIndex(), GuiStallLimit.GoodSlotX, GuiStallLimit.SlotY));

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiStallLimit.WindowHeight - 1 + 5, false, true);
}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:8,代碼來源:ContainerStallLimit.java

示例5: ContainerTrussel

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerTrussel(InventoryPlayer inventoryplayer, World world, int x, int y, int z)
{
    _inventoryplayer = inventoryplayer;
    _world = world;
    _inventory = new TrusselInventory();

    addSlotToContainer(new SlotTrusselWithoutDie(_inventory, 0, GuiTrussel.SrcSlotX, GuiTrussel.SlotY));
    addSlotToContainer(new SlotOutputOnly(_inventory, 1, GuiTrussel.DstSlotX, GuiTrussel.SlotY));

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiTrussel.WindowHeight - 1 + 5, true, true);
}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:12,代碼來源:ContainerTrussel.java

示例6: ContainerStorageRack

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerStorageRack(InventoryPlayer inventoryplayer, TileEntityStorageRack storageRack, World world, int x, int y, int z)
{
    _storageRack = storageRack;
    _world = world;

    addSlotToContainer(new SlotStorageRack(_storageRack, 0, GuiStorageRack.SlotX, GuiStorageRack.SlotY));

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiStorageRack.WindowHeight - 1 + 5, false, true);
}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:10,代碼來源:ContainerStorageRack.java

示例7: ContainerAnvilDie

import com.bioxx.tfc.Core.Player.PlayerInventory; //導入方法依賴的package包/類
public ContainerAnvilDie(InventoryPlayer inventoryplayer, TileEntityAnvilDie anvilDie, World world, int x, int y, int z)
{
    _anvilDie = anvilDie;
    _world = world;

    addSlotToContainer(new SlotAnvilHammer(inventoryplayer.player, _anvilDie, 0, GuiAnvilDie.HammerSlotX, GuiAnvilDie.HammerSlotY));
    addSlotToContainer(new SlotTrussel(_anvilDie, 1, GuiAnvilDie.TrusselSlotX, GuiAnvilDie.TrusselSlotY));
    addSlotToContainer(new SlotFlan(_anvilDie, 2, GuiAnvilDie.FlanSlotX, GuiAnvilDie.FlanSlotY));
    addSlotToContainer(new SlotForShowOnly(_anvilDie, 3, GuiAnvilDie.AnvilDieSlotX, GuiAnvilDie.AnvilDieSlotY));
    addSlotToContainer(new SlotOutputOnly(_anvilDie, 4, GuiAnvilDie.CoinSlotX, GuiAnvilDie.CoinSlotY));

    PlayerInventory.buildInventoryLayout(this, inventoryplayer, 8, GuiAnvilDie.WindowHeight - 1 + 5, false, true);
}
 
開發者ID:Aleksey-Terzi,項目名稱:MerchantsTFC,代碼行數:14,代碼來源:ContainerAnvilDie.java


注:本文中的com.bioxx.tfc.Core.Player.PlayerInventory.buildInventoryLayout方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。