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 Details

    • player

      private final LocalPlayer player
      The field for the player record component.
    • level

      private final ClientLevel level
      The field for the level record component.
    • levelRenderer

      private final LevelRenderer levelRenderer
      The field for the levelRenderer record component.
    • timeoutAfter

      private final long timeoutAfter
      The field for the timeoutAfter record component.
  • Constructor Details

    • WaitingForPlayerChunk

      WaitingForPlayerChunk(LocalPlayer player, ClientLevel level, LevelRenderer levelRenderer, long timeoutAfter)
      Creates an instance of a WaitingForPlayerChunk record class.
      Parameters:
      player - the value for the player record component
      level - the value for the level record component
      levelRenderer - the value for the levelRenderer record component
      timeoutAfter - the value for the timeoutAfter record component
  • Method Details

    • tick

      Specified by:
      tick in interface LevelLoadTracker.ClientState
    • isReady

      private boolean isReady()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • player

      public LocalPlayer player()
      Returns the value of the player record component.
      Returns:
      the value of the player record component
    • level

      public ClientLevel level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • levelRenderer

      public LevelRenderer levelRenderer()
      Returns the value of the levelRenderer record component.
      Returns:
      the value of the levelRenderer record component
    • timeoutAfter

      public long timeoutAfter()
      Returns the value of the timeoutAfter record component.
      Returns:
      the value of the timeoutAfter record component