Record Class SidedPathElementParams
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.api.path.SidedPathElementParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SidedPathElementParams> -
Constructor Summary
ConstructorsConstructorDescriptionSidedPathElementParams(String dimension, net.minecraft.core.BlockPos pos, Optional<net.minecraft.core.Direction> side) Creates an instance of aSidedPathElementParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.Optional<net.minecraft.core.Direction> side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
SidedPathElementParams
public SidedPathElementParams(String dimension, net.minecraft.core.BlockPos pos, Optional<net.minecraft.core.Direction> side) Creates an instance of aSidedPathElementParamsrecord class.- Parameters:
dimension- the value for thedimensionrecord componentpos- the value for theposrecord componentside- the value for thesiderecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-