Record Class TagPathElement
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.api.item.TagPathElement
- All Implemented Interfaces:
net.minecraft.util.ProblemReporter.PathElement
public record TagPathElement(net.minecraft.nbt.CompoundTag compoundTag)
extends Record
implements net.minecraft.util.ProblemReporter.PathElement
-
Constructor Summary
ConstructorsConstructorDescriptionTagPathElement(net.minecraft.nbt.CompoundTag compoundTag) Creates an instance of aTagPathElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.nbt.CompoundTagReturns the value of thecompoundTagrecord component.final booleanIndicates whether some other object is "equal to" this one.get()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TagPathElement
public TagPathElement(net.minecraft.nbt.CompoundTag compoundTag) Creates an instance of aTagPathElementrecord class.- Parameters:
compoundTag- the value for thecompoundTagrecord component
-
-
Method Details
-
get
- Specified by:
getin interfacenet.minecraft.util.ProblemReporter.PathElement
-
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). -
compoundTag
public net.minecraft.nbt.CompoundTag compoundTag()Returns the value of thecompoundTagrecord component.- Returns:
- the value of the
compoundTagrecord component
-