added nbt to ReducedItemInfo
This commit is contained in:
parent
a941f3bbe2
commit
699c9a2ad2
@ -5,6 +5,7 @@ import lua.Table;
|
|||||||
interface ReducedItemInfo {
|
interface ReducedItemInfo {
|
||||||
public var count:Int;
|
public var count:Int;
|
||||||
public var name:String;
|
public var name:String;
|
||||||
|
public var nbt:Null<String>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DetailedItemInfo extends ReducedItemInfo {
|
interface DetailedItemInfo extends ReducedItemInfo {
|
||||||
@ -20,5 +21,5 @@ extern class ItemStorage {
|
|||||||
public function getItemDetail(slot:Int):DetailedItemInfo; // Get detailed information about an item.
|
public function getItemDetail(slot:Int):DetailedItemInfo; // Get detailed information about an item.
|
||||||
public function pushItems(toName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Push items from one inventory to another connected one.
|
public function pushItems(toName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Push items from one inventory to another connected one.
|
||||||
public function pullItems(fromName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Pull items from a connected inventory into this one.
|
public function pullItems(fromName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Pull items from a connected inventory into this one.
|
||||||
public function getItemLimit(slot: Int):Int; // Get the maximum number of items which can be stored in this slot.
|
public function getItemLimit(slot:Int):Int; // Get the maximum number of items which can be stored in this slot.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user