Class SessionLock
java.lang.Object
net.minecraft.world.level.storage.SessionLock
- All Implemented Interfaces:
AutoCloseable
public class SessionLock extends Object implements AutoCloseable
- Mappings:
Namespace Name official afo
intermediary net/minecraft/class_5125
named net/minecraft/world/level/storage/SessionLock
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionLock.AlreadyLockedException
-
Field Summary
Fields Modifier and Type Field Description private FileChannel
channel
private FileLock
lock
private static ByteBuffer
SNOWMAN
-
Constructor Summary
Constructors Modifier Constructor Description private
SessionLock(FileChannel channel, FileLock lock)
-
Method Summary
-
Field Details
-
SNOWMAN
- Mappings:
Namespace Name Mixin selector official c
Lafo;c:Ljava/nio/ByteBuffer;
intermediary field_25353
Lnet/minecraft/class_5125;field_25353:Ljava/nio/ByteBuffer;
named SNOWMAN
Lnet/minecraft/world/level/storage/SessionLock;SNOWMAN:Ljava/nio/ByteBuffer;
-
channel
- Mappings:
Namespace Name Mixin selector official a
Lafo;a:Ljava/nio/channels/FileChannel;
intermediary field_23692
Lnet/minecraft/class_5125;field_23692:Ljava/nio/channels/FileChannel;
named channel
Lnet/minecraft/world/level/storage/SessionLock;channel:Ljava/nio/channels/FileChannel;
-
lock
- Mappings:
Namespace Name Mixin selector official b
Lafo;b:Ljava/nio/channels/FileLock;
intermediary field_23693
Lnet/minecraft/class_5125;field_23693:Ljava/nio/channels/FileLock;
named lock
Lnet/minecraft/world/level/storage/SessionLock;lock:Ljava/nio/channels/FileLock;
-
-
Constructor Details
-
SessionLock
- Mappings:
Namespace Name Mixin selector official <init>
Lafo;<init>(Ljava/nio/channels/FileChannel;Ljava/nio/channels/FileLock;)V
intermediary <init>
Lnet/minecraft/class_5125;<init>(Ljava/nio/channels/FileChannel;Ljava/nio/channels/FileLock;)V
named <init>
Lnet/minecraft/world/level/storage/SessionLock;<init>(Ljava/nio/channels/FileChannel;Ljava/nio/channels/FileLock;)V
-
-
Method Details
-
create
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lafo;a(Ljava/nio/file/Path;)Lafo;
intermediary method_26803
Lnet/minecraft/class_5125;method_26803(Ljava/nio/file/Path;)Lnet/minecraft/class_5125;
named create
Lnet/minecraft/world/level/storage/SessionLock;create(Ljava/nio/file/Path;)Lnet/minecraft/world/level/storage/SessionLock;
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Lafo;close()V
intermediary close
Lnet/minecraft/class_5125;close()V
named close
Lnet/minecraft/world/level/storage/SessionLock;close()V
-
isValid
public boolean isValid()- Mappings:
Namespace Name Mixin selector official a
Lafo;a()Z
intermediary method_26802
Lnet/minecraft/class_5125;method_26802()Z
named isValid
Lnet/minecraft/world/level/storage/SessionLock;isValid()Z
-
isLocked
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lafo;b(Ljava/nio/file/Path;)Z
intermediary method_26804
Lnet/minecraft/class_5125;method_26804(Ljava/nio/file/Path;)Z
named isLocked
Lnet/minecraft/world/level/storage/SessionLock;isLocked(Ljava/nio/file/Path;)Z
-