Package net.minecraft
Record Class class_9734.class_9735
java.lang.Object
java.lang.Record
net.minecraft.class_9734.class_9735
- Record Components:
type-offset-scale-
- Enclosing class:
class_9734
public static record class_9734.class_9735(class_9734.class_9736 type, float offset, float scale)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_9734$class_9735intermediary net/minecraft/class_9734$class_9735official dam$anamed typeintermediary comp_2757official bnamed offsetintermediary comp_2758official cnamed scaleintermediary comp_2759official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_9734.class_9735> private final floatThe field for theoffsetrecord component.private final floatThe field for thescalerecord component.private final class_9734.class_9736The field for thetyperecord 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.doublemethod_60254(double double2, float float2, Random random) floatoffset()Returns the value of theoffsetrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
offset
private final float offsetThe field for theoffsetrecord component. -
scale
private final float scaleThe field for thescalerecord component. -
field_51722
- Mappings:
Namespace Name Mixin selector named field_51722Lnet/minecraft/class_9734$class_9735;field_51722:Lcom/mojang/serialization/MapCodec;intermediary field_51722Lnet/minecraft/class_9734$class_9735;field_51722:Lcom/mojang/serialization/MapCodec;official aLdam$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9735
-
-
Method Details
-
method_60254
- Mappings:
Namespace Name Mixin selector named method_60254Lnet/minecraft/class_9734$class_9735;method_60254(DFLnet/minecraft/util/math/random/Random;)Dintermediary method_60254Lnet/minecraft/class_9734$class_9735;method_60254(DFLnet/minecraft/class_5819;)Dofficial aLdam$a;a(DFLaym;)D
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
offset
public float offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-