11declare var Java : any ;
2+ import InputStream from '../../../java/io/InputStream.js'
23import ItemStack from '../../../org/bukkit/inventory/ItemStack.js'
34import NBTCompound from './NBTCompound.js'
45import NBTCompoundList from './NBTCompoundList.js'
56import NBTList from './NBTList.js'
67import NBTType from './NBTType.js'
8+ import OutputStream from '../../../java/io/OutputStream.js'
79
810export default interface NBTContainer extends NBTCompound {
911 addCompound ( _name : string ) : NBTCompound ;
@@ -15,20 +17,26 @@ export default interface NBTContainer extends NBTCompound {
1517 getCompound ( _name : string ) : NBTCompound ;
1618 getCompoundList ( _name : string ) : NBTCompoundList ;
1719 getDouble ( key : string ) : number ;
20+ getDoubleList ( _name : string ) : NBTList ;
1821 getFloat ( key : string ) : number ;
22+ getFloatList ( _name : string ) : NBTList ;
1923 getIntArray ( key : string ) : Array < number > ;
2024 getInteger ( key : string ) : any ;
2125 getIntegerList ( _name : string ) : NBTList ;
2226 getItemStack ( key : string ) : ItemStack ;
2327 getKeys ( ) : any ;
28+ getListType ( _name : string ) : NBTType ;
2429 getLong ( key : string ) : number ;
30+ getLongList ( _name : string ) : NBTList ;
2531 getName ( ) : string ;
2632 getObject ( key : string , type : any ) : any ;
33+ getOrCreateCompound ( _name : string ) : NBTCompound ;
2734 getParent ( ) : NBTCompound ;
2835 getShort ( key : string ) : number ;
2936 getString ( key : string ) : string ;
3037 getStringList ( _name : string ) : NBTList ;
3138 getType ( _name : string ) : NBTType ;
39+ getUUID ( key : string ) : string ;
3240 hasKey ( key : string ) : boolean ;
3341 mergeCompound ( comp : NBTCompound ) : void ;
3442 removeKey ( key : string ) : void ;
@@ -45,6 +53,8 @@ export default interface NBTContainer extends NBTCompound {
4553 setObject ( key : string , value : any ) : void ;
4654 setShort ( key : string , value : number ) : void ;
4755 setString ( key : string , value : string ) : void ;
56+ setUUID ( key : string , value : string ) : void ;
57+ writeCompound ( stream : OutputStream ) : void ;
4858}
4959
5060export default class NBTContainer {
@@ -54,6 +64,7 @@ export default class NBTContainer {
5464
5565 constructor ( ) ;
5666 constructor ( nbtString : string ) ;
67+ constructor ( inputsteam : InputStream ) ;
5768 constructor ( nbt : any ) ;
5869 constructor ( ...args : any [ ] ) {
5970 return new NBTContainer . $javaClass ( ...args ) ;
0 commit comments