Class PlayerInventoryScreenTracker
java.lang.Object
com.viaversion.viaversion.api.connection.StoredObject
net.raphimc.viabedrock.protocol.storage.PlayerInventoryScreenTracker
- All Implemented Interfaces:
com.viaversion.viaversion.api.connection.StorableObject
public final class PlayerInventoryScreenTracker
extends com.viaversion.viaversion.api.connection.StoredObject
Serializes uncorrelated Bedrock opens and retains retired openings until their acknowledgments arrive.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInventoryScreenTracker(com.viaversion.viaversion.api.connection.UserConnection user) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacknowledgedContainer(long opening) voidclosed(boolean serverInitiated) The next request starts only after the previous native close acknowledgment.booleanbooleanenabled()booleanvoidopened()Called after the native container is installed, before any queued Java clicks are replayed.booleanOrdinary close-zero packets cannot identify which of two player openings they belong to.booleanownsPresentation(long opening) Presentation reads do not imply permission to submit an item request.voidvoidvoidrequest(PlayerInventoryScreenRequest request) voidrequest(PlayerInventoryScreenRequest request, boolean deferred) voidretire()voidtick(long now) Methods inherited from class com.viaversion.viaversion.api.connection.StoredObject
getUser, userMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.connection.StorableObject
onRemove
-
Constructor Details
-
PlayerInventoryScreenTracker
public PlayerInventoryScreenTracker(com.viaversion.viaversion.api.connection.UserConnection user)
-
-
Method Details
-
enabled
public boolean enabled() -
refreshCapability
public void refreshCapability() -
request
-
deferredEnabled
public boolean deferredEnabled() -
request
-
ownsClose
public boolean ownsClose()Ordinary close-zero packets cannot identify which of two player openings they belong to. -
hasPendingOpen
public boolean hasPendingOpen() -
acceptsClicks
public boolean acceptsClicks() -
ownsPresentation
public boolean ownsPresentation(long opening) Presentation reads do not imply permission to submit an item request. -
acknowledgedContainer
-
opened
public void opened()Called after the native container is installed, before any queued Java clicks are replayed. -
closed
public void closed(boolean serverInitiated) The next request starts only after the previous native close acknowledgment. -
retire
public void retire() -
recovering
public void recovering() -
tick
public void tick(long now)
-