Record Class LevelLoadTracker.WaitingForServer
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.LevelLoadTracker.WaitingForServer
- All Implemented Interfaces:
LevelLoadTracker.ClientState
- Enclosing class:
LevelLoadTracker
private static record LevelLoadTracker.WaitingForServer(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
ConstructorsModifierConstructorDescriptionprivateWaitingForServer(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter) Creates an instance of aWaitingForServerrecord 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.level()Returns the value of thelevelrecord component.Returns the value of thelevelRendererrecord component.player()Returns the value of theplayerrecord component.longReturns the value of thetimeoutAfterrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface LevelLoadTracker.ClientState
tick
-
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
-
WaitingForServer
private WaitingForServer(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter) Creates an instance of aWaitingForServerrecord 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
-
loadingPacketsReceived
- Specified by:
loadingPacketsReceivedin interfaceLevelLoadTracker.ClientState
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-