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
-
Field Summary
Fields Modifier and Type Field Description private Pathpathprivate WatchServicewatchService -
Constructor Summary
Constructors Constructor Description DirectoryWatcher(File file) -
Method Summary
Modifier and Type Method Description voidclose()static PackScreen.DirectoryWatchercreate(File file)booleanpollForChange()private voidwatchDirectory(Path path)
-
Field Details
-
watchService
-
path
-
-
Constructor Details
-
DirectoryWatcher
- Throws:
IOException
-
-
Method Details
-
create
-
watchDirectory
- Throws:
IOException
-
pollForChange
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-