Class PackScreen.DirectoryWatcher
java.lang.Object
net.minecraft.client.gui.screen.pack.PackScreen.DirectoryWatcher
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- PackScreen
@Environment(CLIENT) static class PackScreen.DirectoryWatcher extends Object implements AutoCloseable
- Mappings:
Namespace Name official dxw$a
intermediary net/minecraft/class_5375$class_5426
named net/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher
-
Field Summary
Fields Modifier and Type Field Description private Path
path
private WatchService
watchService
-
Constructor Summary
Constructors Constructor Description DirectoryWatcher(File file)
-
Method Summary
Modifier and Type Method Description void
close()
static PackScreen.DirectoryWatcher
create(File file)
boolean
pollForChange()
private void
watchDirectory(Path path)
-
Field Details
-
watchService
- Mappings:
Namespace Name Mixin selector official a
Ldxw$a;a:Ljava/nio/file/WatchService;
intermediary field_25790
Lnet/minecraft/class_5375$class_5426;field_25790:Ljava/nio/file/WatchService;
named watchService
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;watchService:Ljava/nio/file/WatchService;
-
path
- Mappings:
Namespace Name Mixin selector official b
Ldxw$a;b:Ljava/nio/file/Path;
intermediary field_25791
Lnet/minecraft/class_5375$class_5426;field_25791:Ljava/nio/file/Path;
named path
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;path:Ljava/nio/file/Path;
-
-
Constructor Details
-
DirectoryWatcher
- Throws:
IOException
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Ldxw$a;a(Ljava/io/File;)Ldxw$a;
intermediary method_30293
Lnet/minecraft/class_5375$class_5426;method_30293(Ljava/io/File;)Lnet/minecraft/class_5375$class_5426;
named create
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;create(Ljava/io/File;)Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;
-
watchDirectory
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ldxw$a;a(Ljava/nio/file/Path;)V
intermediary method_30294
Lnet/minecraft/class_5375$class_5426;method_30294(Ljava/nio/file/Path;)V
named watchDirectory
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;watchDirectory(Ljava/nio/file/Path;)V
-
pollForChange
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ldxw$a;a()Z
intermediary method_30292
Lnet/minecraft/class_5375$class_5426;method_30292()Z
named pollForChange
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;pollForChange()Z
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Ldxw$a;close()V
intermediary close
Lnet/minecraft/class_5375$class_5426;close()V
named close
Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;close()V
-