Package net.minecraft.block.entity
Record Class BlockEntity.ReporterContext
java.lang.Object
java.lang.Record
net.minecraft.block.entity.BlockEntity.ReporterContext
- Record Components:
blockEntity-
- All Implemented Interfaces:
ErrorReporter.Context
- Enclosing class:
BlockEntity
private static record BlockEntity.ReporterContext(BlockEntity blockEntity)
extends Record
implements ErrorReporter.Context
- Mappings:
Namespace Name named net/minecraft/block/entity/BlockEntity$ReporterContextintermediary net/minecraft/class_2586$class_11348official egg$anamed blockEntityintermediary comp_4230official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityThe field for theblockEntityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReporterContext(BlockEntity blockEntity) Creates an instance of aReporterContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityrecord component.final booleanIndicates whether some other object is "equal to" this one.getName()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
-
ReporterContext
ReporterContext(BlockEntity blockEntity) Creates an instance of aReporterContextrecord class.- Parameters:
blockEntity- the value for theblockEntityrecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceErrorReporter.Context- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/ErrorReporter$Context;getName()Ljava/lang/String;intermediary getLnet/minecraft/class_8942$class_11336;get()Ljava/lang/String;official getLbfo$f;get()Ljava/lang/String;
-
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
-