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 cwhintermediary net/minecraft/class_7139named net/minecraft/class_7139official aintermediary comp_550named randomofficial bintermediary comp_551named useLegacyInitofficial cintermediary comp_552named legacyLevelSeed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thelegacyLevelSeedrecord component.private final RandomDeriverThe field for therandomrecord component.private final booleanThe field for theuseLegacyInitrecord component. -
Constructor Summary
Constructors -
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.longReturns the value of thelegacyLevelSeedrecord component.method_41562(long long2) random()Returns the value of therandomrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLegacyInitrecord component.
-
Field Details
-
random
The field for therandomrecord component. -
useLegacyInit
private final boolean useLegacyInitThe field for theuseLegacyInitrecord component. -
legacyLevelSeed
private final long legacyLevelSeedThe field for thelegacyLevelSeedrecord component.
-
-
Constructor Details
-
class_7139
-
-
Method Details
-
method_41562
- Mappings:
Namespace Name Mixin selector official aLcwh;a(J)Lcwe;intermediary method_41562Lnet/minecraft/class_7139;method_41562(J)Lnet/minecraft/class_5819;named method_41562Lnet/minecraft/class_7139;method_41562(J)Lnet/minecraft/world/gen/random/AbstractRandom;
-
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 '=='. -
random
Returns the value of therandomrecord component.- Returns:
- the value of the
randomrecord component
-
useLegacyInit
public boolean useLegacyInit()Returns the value of theuseLegacyInitrecord component.- Returns:
- the value of the
useLegacyInitrecord component
-
legacyLevelSeed
public long legacyLevelSeed()Returns the value of thelegacyLevelSeedrecord component.- Returns:
- the value of the
legacyLevelSeedrecord component
-