Package net.minecraft.client.gui.screen
Class PackScreen.PackDirectoryWatcher
- java.lang.Object
-
- net.minecraft.client.gui.screen.PackScreen.PackDirectoryWatcher
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- PackScreen
static class PackScreen.PackDirectoryWatcher extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description PackDirectoryWatcher(java.io.File p_i242061_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static PackScreen.PackDirectoryWatchercreate(java.io.File p_243403_0_)booleanpollForChanges()private voidwatchDir(java.nio.file.Path p_243404_1_)
-
-
-
Method Detail
-
create
@Nullable public static PackScreen.PackDirectoryWatcher create(java.io.File p_243403_0_)
-
watchDir
private void watchDir(java.nio.file.Path p_243404_1_) throws java.io.IOException- Throws:
java.io.IOException
-
pollForChanges
public boolean pollForChanges() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-