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
named net/minecraft/world/event/GameEvent$Emitter
intermediary net/minecraft/class_5712$class_7397
official dww$a
named sourceEntity
intermediary comp_713
official a
named affectedState
intermediary comp_714
official b
  • Field Details

  • Constructor Details

  • Method Details

    • of

      public static GameEvent.Emitter of(@Nullable @Nullable Entity sourceEntity)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/event/GameEvent$Emitter;
      intermediary method_43285 Lnet/minecraft/class_5712$class_7397;method_43285(Lnet/minecraft/class_1297;)Lnet/minecraft/class_5712$class_7397;
      official a Ldww$a;a(Lbsv;)Ldww$a;
    • of

      public static GameEvent.Emitter of(@Nullable @Nullable BlockState affectedState)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/event/GameEvent$Emitter;
      intermediary method_43287 Lnet/minecraft/class_5712$class_7397;method_43287(Lnet/minecraft/class_2680;)Lnet/minecraft/class_5712$class_7397;
      official a Ldww$a;a(Ldsd;)Ldww$a;
    • of

      public static GameEvent.Emitter of(@Nullable @Nullable Entity sourceEntity, @Nullable @Nullable BlockState affectedState)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/world/event/GameEvent$Emitter;of(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/event/GameEvent$Emitter;
      intermediary method_43286 Lnet/minecraft/class_5712$class_7397;method_43286(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;)Lnet/minecraft/class_5712$class_7397;
      official a Ldww$a;a(Lbsv;Ldsd;)Ldww$a;
    • toString

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sourceEntity

      @Nullable public @Nullable Entity sourceEntity()
      Returns the value of the sourceEntity record component.
      Returns:
      the value of the sourceEntity record component
    • affectedState

      @Nullable public @Nullable BlockState affectedState()
      Returns the value of the affectedState record component.
      Returns:
      the value of the affectedState record component