Record Class BlockEntity.BlockEntityPathElement
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.BlockEntity.BlockEntityPathElement
- All Implemented Interfaces:
ProblemReporter.PathElement
- Enclosing class:
BlockEntity
private static record BlockEntity.BlockEntityPathElement(BlockEntity blockEntity)
extends Record
implements ProblemReporter.PathElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityThe field for theblockEntityrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlockEntityPathElement(BlockEntity blockEntity) Creates an instance of aBlockEntityPathElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityrecord 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.
-
Field Details
-
blockEntity
The field for theblockEntityrecord component.
-
-
Constructor Details
-
BlockEntityPathElement
Creates an instance of aBlockEntityPathElementrecord class.- Parameters:
blockEntity- the value for theblockEntityrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceProblemReporter.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). -
blockEntity
Returns the value of theblockEntityrecord component.- Returns:
- the value of the
blockEntityrecord component
-