Package net.minecraft

Record Class class_7139

java.lang.Object
java.lang.Record
net.minecraft.class_7139
Record Components:
random -
useLegacyInit -
legacyLevelSeed -

public record class_7139(RandomDeriver random, boolean useLegacyInit, long legacyLevelSeed) extends Record
Mappings:
Namespace Name
official cwh
intermediary net/minecraft/class_7139
named net/minecraft/class_7139
official a
intermediary comp_550
named random
official b
intermediary comp_551
named useLegacyInit
official c
intermediary comp_552
named legacyLevelSeed
  • Field Details

    • random

      private final RandomDeriver random
      The field for the random record component.
    • useLegacyInit

      private final boolean useLegacyInit
      The field for the useLegacyInit record component.
    • legacyLevelSeed

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

    • class_7139

      public class_7139(RandomDeriver randomDeriver, boolean bool, long long2)
  • Method Details

    • method_41562

      public AbstractRandom method_41562(long long2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcwh;a(J)Lcwe;
      intermediary method_41562 Lnet/minecraft/class_7139;method_41562(J)Lnet/minecraft/class_5819;
      named method_41562 Lnet/minecraft/class_7139;method_41562(J)Lnet/minecraft/world/gen/random/AbstractRandom;
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • random

      public RandomDeriver random()
      Returns the value of the random record component.
      Returns:
      the value of the random record component
    • useLegacyInit

      public boolean useLegacyInit()
      Returns the value of the useLegacyInit record component.
      Returns:
      the value of the useLegacyInit record component
    • legacyLevelSeed

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