Package net.minecraft.world.event
Record Class GameEvent.Emitter
java.lang.Object
java.lang.Record
net.minecraft.world.event.GameEvent.Emitter
- Record Components:
sourceEntity-affectedState-
- Enclosing class:
GameEvent
public static record GameEvent.Emitter(@Nullable Entity sourceEntity, @Nullable BlockState affectedState)
extends Record
- Mappings:
Namespace Name intermediary net/minecraft/class_5712$class_7397official dgi$anamed net/minecraft/world/event/GameEvent$Emitterintermediary comp_713official anamed sourceEntityintermediary comp_714official bnamed affectedState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable BlockStateThe field for theaffectedStaterecord component.The field for thesourceEntityrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaffectedStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GameEvent.Emitterof(@Nullable BlockState affectedState) static GameEvent.Emitterstatic GameEvent.Emitterof(@Nullable Entity sourceEntity, @Nullable BlockState affectedState) Returns the value of thesourceEntityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sourceEntity
The field for thesourceEntityrecord component. -
affectedState
The field for theaffectedStaterecord component.
-
-
Constructor Details
-
Emitter
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector intermediary method_43285Lnet/minecraft/class_5712$class_7397;method_43285(Lnet/minecraft/class_1297;)Lnet/minecraft/class_5712$class_7397;official aLdgi$a;a(Lbfh;)Ldgi$a;named ofLnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/event/GameEvent$Emitter;
-
of
- Mappings:
Namespace Name Mixin selector intermediary method_43287Lnet/minecraft/class_5712$class_7397;method_43287(Lnet/minecraft/class_2680;)Lnet/minecraft/class_5712$class_7397;official aLdgi$a;a(Ldby;)Ldgi$a;named ofLnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/event/GameEvent$Emitter;
-
of
public static GameEvent.Emitter of(@Nullable @Nullable Entity sourceEntity, @Nullable @Nullable BlockState affectedState) - Mappings:
Namespace Name Mixin selector intermediary method_43286Lnet/minecraft/class_5712$class_7397;method_43286(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;)Lnet/minecraft/class_5712$class_7397;official aLdgi$a;a(Lbfh;Ldby;)Ldgi$a;named ofLnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/event/GameEvent$Emitter;
-
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). -
sourceEntity
Returns the value of thesourceEntityrecord component.- Returns:
- the value of the
sourceEntityrecord component
-
affectedState
Returns the value of theaffectedStaterecord component.- Returns:
- the value of the
affectedStaterecord component
-