Package net.minecraft.entity
Record Class Entity.ErrorReporterContext
java.lang.Object
java.lang.Record
net.minecraft.entity.Entity.ErrorReporterContext
- Record Components:
entity-
- All Implemented Interfaces:
ErrorReporter.Context
- Enclosing class:
Entity
private static record Entity.ErrorReporterContext(Entity entity)
extends Record
implements ErrorReporter.Context
- Mappings:
Namespace Name named net/minecraft/entity/Entity$ErrorReporterContextintermediary net/minecraft/class_1297$class_11344official cdv$anamed entityintermediary comp_4213official a
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionErrorReporterContext(Entity entity) Creates an instance of aErrorReporterContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord 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
-
entity
The field for theentityrecord component.
-
-
Constructor Details
-
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). -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-