Package net.minecraft.client.multiplayer
Record Class LevelLoadTracker.WaitingForPlayerChunk
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.LevelLoadTracker.WaitingForPlayerChunk
- All Implemented Interfaces:
LevelLoadTracker.ClientState
- Enclosing class:
LevelLoadTracker
static record LevelLoadTracker.WaitingForPlayerChunk(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter)
extends Record
implements LevelLoadTracker.ClientState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientLevelThe field for thelevelrecord component.private final LevelRendererThe field for thelevelRendererrecord component.private final LocalPlayerThe field for theplayerrecord component.private final longThe field for thetimeoutAfterrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWaitingForPlayerChunk(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter) Creates an instance of aWaitingForPlayerChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private booleanisReady()level()Returns the value of thelevelrecord component.Returns the value of thelevelRendererrecord component.player()Returns the value of theplayerrecord component.tick()longReturns the value of thetimeoutAfterrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.multiplayer.LevelLoadTracker.ClientState
loadingPacketsReceived
-
Field Details
-
player
The field for theplayerrecord component. -
level
The field for thelevelrecord component. -
levelRenderer
The field for thelevelRendererrecord component. -
timeoutAfter
private final long timeoutAfterThe field for thetimeoutAfterrecord component.
-
-
Constructor Details
-
WaitingForPlayerChunk
WaitingForPlayerChunk(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter) Creates an instance of aWaitingForPlayerChunkrecord class.- Parameters:
player- the value for theplayerrecord componentlevel- the value for thelevelrecord componentlevelRenderer- the value for thelevelRendererrecord componenttimeoutAfter- the value for thetimeoutAfterrecord component
-
-
Method Details
-
tick
- Specified by:
tickin interfaceLevelLoadTracker.ClientState
-
isReady
private boolean isReady() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
levelRenderer
Returns the value of thelevelRendererrecord component.- Returns:
- the value of the
levelRendererrecord component
-
timeoutAfter
public long timeoutAfter()Returns the value of thetimeoutAfterrecord component.- Returns:
- the value of the
timeoutAfterrecord component
-