Record Class DimensionalBlockPos
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.openportals.portal.linking.DimensionalBlockPos
- Record Components:
dimension- The dimension of the block position.pos- The block position.
public record DimensionalBlockPos(net.minecraft.resources.Identifier dimension, net.minecraft.core.BlockPos pos)
extends Record
Represents a block position in a specific dimension.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DimensionalBlockPos> -
Constructor Summary
ConstructorsConstructorDescriptionDimensionalBlockPos(net.minecraft.resources.Identifier dimension, net.minecraft.core.BlockPos pos) Creates an instance of aDimensionalBlockPosrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifierReturns 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
DimensionalBlockPos
-
-
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
-
pos
-