|
| 1 | +package com.mojang.blaze3d.audio; |
| 2 | + |
| 3 | +@:native("com.mojang.blaze3d.audio.Library") |
| 4 | +@:mapping("net.minecraft.class_4225") |
| 5 | +extern class Library |
| 6 | +{ |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + public function new(); |
| 18 | + @:badMapping("unknownMethodMapping") |
| 19 | + @:mapping("com.mojang.blaze3d.audio.Library#init(String,boolean)") |
| 20 | + public function init(deviceSpecifier:Null<String>, bl:Bool):Void; |
| 21 | + |
| 22 | + |
| 23 | + @:mapping("method_38500") |
| 24 | + public static function getDefaultDeviceName():Null<String>; |
| 25 | + @:mapping("method_38722") |
| 26 | + public function getCurrentDeviceName():String; |
| 27 | + @:mapping("method_38723") |
| 28 | + public function hasDefaultDeviceChanged():Bool; |
| 29 | + |
| 30 | + |
| 31 | + @:mapping("method_19664") |
| 32 | + public function cleanup():Void; |
| 33 | + @:mapping("method_19665") |
| 34 | + public function getListener():com.mojang.blaze3d.audio.Listener; |
| 35 | + /** |
| 36 | + * Acquires a sound channel based on the given mode. |
| 37 | + */ |
| 38 | + @:mapping("method_19663") |
| 39 | + public function acquireChannel(pool:com.mojang.blaze3d.audio.Library.Pool):Null<com.mojang.blaze3d.audio.Channel>; |
| 40 | + @:mapping("method_19662") |
| 41 | + public function releaseChannel(channel:com.mojang.blaze3d.audio.Channel):Void; |
| 42 | + @:mapping("method_20296") |
| 43 | + public function getDebugString():String; |
| 44 | + @:mapping("method_38502") |
| 45 | + public function getAvailableSoundDevices():java.util.List<String>; |
| 46 | + @:mapping("method_38724") |
| 47 | + public function isCurrentDeviceDisconnected():Bool; |
| 48 | +} |
| 49 | + |
| 50 | + |
| 51 | +@:native("com.mojang.blaze3d.audio.Library$ChannelPool") |
| 52 | +@:mapping("net.minecraft.class_4225$class_4276") |
| 53 | +extern interface Library_ChannelPool |
| 54 | +{ |
| 55 | + @:mapping("method_19666") |
| 56 | + public function acquire():Null<com.mojang.blaze3d.audio.Channel>; |
| 57 | + @:mapping("method_19667") |
| 58 | + public function release(var1:com.mojang.blaze3d.audio.Channel):Bool; |
| 59 | + @:mapping("method_19668") |
| 60 | + public function cleanup():Void; |
| 61 | + @:mapping("method_20298") |
| 62 | + public function getMaxCount():Int; |
| 63 | + @:mapping("method_20299") |
| 64 | + public function getUsedCount():Int; |
| 65 | +} |
| 66 | +typedef ChannelPool = Library_ChannelPool; |
| 67 | + |
| 68 | + |
| 69 | +@:native("com.mojang.blaze3d.audio.Library$CountingChannelPool") |
| 70 | +@:realPath("com.mojang.blaze3d.audio.Library_CountingChannelPool") |
| 71 | +@:mapping("net.minecraft.class_4225$class_4226") |
| 72 | +extern class Library_CountingChannelPool implements com.mojang.blaze3d.audio.Library.ChannelPool |
| 73 | +{ |
| 74 | + |
| 75 | + public function new(i:Int); |
| 76 | + @:mapping("method_19666") |
| 77 | + public function acquire():Null<com.mojang.blaze3d.audio.Channel>; |
| 78 | + @:mapping("method_19667") |
| 79 | + public function release(channel:com.mojang.blaze3d.audio.Channel):Bool; |
| 80 | + @:mapping("method_19668") |
| 81 | + public function cleanup():Void; |
| 82 | + @:mapping("method_20298") |
| 83 | + public function getMaxCount():Int; |
| 84 | + @:mapping("method_20299") |
| 85 | + public function getUsedCount():Int; |
| 86 | +} |
| 87 | +typedef CountingChannelPool = Library_CountingChannelPool; |
| 88 | + |
| 89 | + |
| 90 | +@:native("com.mojang.blaze3d.audio.Library$Pool") |
| 91 | +@:mapping("net.minecraft.class_4225$class_4105") |
| 92 | +final extern class Library_Pool extends java.lang.Enum<com.mojang.blaze3d.audio.Library.Pool> |
| 93 | +{ |
| 94 | + public static function values():Array<com.mojang.blaze3d.audio.Library.Pool>; |
| 95 | + public static function valueOf(name:String):com.mojang.blaze3d.audio.Library.Pool; |
| 96 | + |
| 97 | +@:mapping("field_18352") |
| 98 | +public static var STATIC:com.mojang.blaze3d.audio.Library.Pool; |
| 99 | + |
| 100 | +@:mapping("field_18353") |
| 101 | +public static var STREAMING:com.mojang.blaze3d.audio.Library.Pool; |
| 102 | + |
| 103 | +} |
| 104 | +typedef Pool = Library_Pool; |
| 105 | + |
0 commit comments