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 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
-
path
-
-
Constructor Details
-
DirectoryWatcher
- Throws:
IOException
-
-
Method Details
-
create
-
watchDirectory
- Throws:
IOException
-
pollForChange
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-