Package net.minecraft.block.entity
Record Class BlockEntity.class_11348
java.lang.Object
java.lang.Record
net.minecraft.block.entity.BlockEntity.class_11348
- Record Components:
blockEntity-
- All Implemented Interfaces:
ErrorReporter.class_11336
- Enclosing class:
BlockEntity
private static record BlockEntity.class_11348(BlockEntity blockEntity)
extends Record
implements ErrorReporter.class_11336
- Mappings:
Namespace Name named net/minecraft/block/entity/BlockEntity$class_11348intermediary net/minecraft/class_2586$class_11348official dze$anamed blockEntityintermediary comp_4230official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityThe field for theblockEntityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_11348(BlockEntity blockEntity) Creates an instance of aclass_11348record 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
-
class_11348
class_11348(BlockEntity blockEntity) Creates an instance of aclass_11348record class.- Parameters:
blockEntity- the value for theblockEntityrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceErrorReporter.class_11336
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-