Package net.minecraft.world.gen.chunk
Record Class SlideConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.SlideConfig
- Record Components:
target-size-offset-
- Mappings:
Namespace Name official cuhintermediary net/minecraft/class_5310named net/minecraft/world/gen/chunk/SlideConfigofficial bintermediary comp_432named targetofficial cintermediary comp_433named sizeofficial dintermediary comp_434named offset
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SlideConfig>private final intThe field for theoffsetrecord component.private final intThe field for thesizerecord component.private final doubleThe field for thetargetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSlideConfig(double target, int size, int offset) Creates an instance of aSlideConfigrecord 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.doublemethod_38414(double double2, double double3) intoffset()Returns the value of theoffsetrecord component.intsize()Returns the value of thesizerecord component.doubletarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
target
private final double targetThe field for thetargetrecord component. -
size
private final int sizeThe field for thesizerecord component. -
offset
private final int offsetThe field for theoffsetrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcuh;a:Lcom/mojang/serialization/Codec;intermediary field_24817Lnet/minecraft/class_5310;field_24817:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/SlideConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
method_38414
public double method_38414(double double2, double double3) - Mappings:
Namespace Name Mixin selector official aLcuh;a(DD)Dintermediary method_38414Lnet/minecraft/class_5310;method_38414(DD)Dnamed method_38414Lnet/minecraft/world/gen/chunk/SlideConfig;method_38414(DD)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. All components in this record class are compared with '=='. -
target
public double target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-