Record Class EnderHelmetItem.Position
java.lang.Object
java.lang.Record
de.cech12.usefulhats.item.EnderHelmetItem.Position
- Enclosing class:
EnderHelmetItem
public static record EnderHelmetItem.Position(net.minecraft.resources.Identifier dimKey, net.minecraft.resources.Identifier dimName, net.minecraft.core.BlockPos pos)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnderHelmetItem.Position> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EnderHelmetItem.Position> -
Constructor Summary
ConstructorsConstructorDescriptionPosition(net.minecraft.resources.Identifier dimKey, net.minecraft.resources.Identifier dimName, net.minecraft.core.BlockPos pos) Creates an instance of aPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifierdimKey()Returns the value of thedimKeyrecord component.net.minecraft.resources.IdentifierdimName()Returns the value of thedimNamerecord 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
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EnderHelmetItem.Position> STREAM_CODEC
-
-
Constructor Details
-
Position
public Position(net.minecraft.resources.Identifier dimKey, net.minecraft.resources.Identifier dimName, net.minecraft.core.BlockPos pos) Creates an instance of aPositionrecord class.- Parameters:
dimKey- the value for thedimKeyrecord componentdimName- the value for thedimNamerecord componentpos- the value for theposrecord 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). -
dimKey
public net.minecraft.resources.Identifier dimKey()Returns the value of thedimKeyrecord component.- Returns:
- the value of the
dimKeyrecord component
-
dimName
public net.minecraft.resources.Identifier dimName()Returns the value of thedimNamerecord component.- Returns:
- the value of the
dimNamerecord component
-
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-