Class GuiDialogBlockEntityInventory
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
A block entity inventory system for things like a campfire, or other things like that. Open in GitHub
public class GuiDialogBlockEntityInventory : GuiDialogBlockEntity, IDisposable
- Inheritance
-
GuiDialogBlockEntityInventory
- Implements
- Inherited Members
- Extension Methods
Constructors
GuiDialogBlockEntityInventory(string, InventoryBase, BlockPos, int, int, ICoreClientAPI)
public GuiDialogBlockEntityInventory(string dialogTitle, InventoryBase inventory, BlockPos blockEntityPos, int packetIdOffset, int cols, ICoreClientAPI capi)
Parameters
dialogTitlestringinventoryInventoryBaseblockEntityPosBlockPospacketIdOffsetintcolsintcapiICoreClientAPI
GuiDialogBlockEntityInventory(string, InventoryBase, BlockPos, int, ICoreClientAPI)
public GuiDialogBlockEntityInventory(string dialogTitle, InventoryBase inventory, BlockPos blockEntityPos, int cols, ICoreClientAPI capi)
Parameters
dialogTitlestringinventoryInventoryBaseblockEntityPosBlockPoscolsintcapiICoreClientAPI
Fields
packetIdOffset
public int packetIdOffset
Field Value
Properties
DrawOrder
0 = draw first, 1 = draw last. Used to enforce tooltips and held itemstack always drawn last to be visible.
Vanilla dialogs draw order:
Name tags: -0.1
Chat dialog: 0
Block Interaction help: 0.05
Worldmap HUD: 0.07
Default value for most other dialogs: 0.1
Worldmap Dialog: 0.11
Player and Chest inventories: 0.2
Various config/edit dialogs: 0.2
Handbook: 0.2
Escape menu: 0.89
public override double DrawOrder { get; }
Property Value
Methods
DoSendPacketWithOffset(object)
We tunnel our packet through a block entity packet so the block entity can handle all the network stuff
protected void DoSendPacketWithOffset(object p)
Parameters
pobject
OnGuiClosed()
Called when the GUI is closed.
public override void OnGuiClosed()
OnGuiOpened()
Called whenver the GUI is opened.
public override void OnGuiOpened()