Record Class Vibration

java.lang.Object
java.lang.Record
net.minecraft.world.event.listener.Vibration
Record Components:
gameEvent -
distance -
pos -
uuid -
projectileOwnerUuid -
entity -

public record Vibration(GameEvent gameEvent, float distance, Vec3d pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid, @Nullable Entity entity) extends Record
Mappings:
Namespace Name
official dgs
intermediary net/minecraft/class_7269
named net/minecraft/world/event/listener/Vibration
official b
intermediary comp_657
named gameEvent
official c
intermediary comp_658
named distance
official d
intermediary comp_659
named pos
official e
intermediary comp_660
named uuid
official f
intermediary comp_681
named projectileOwnerUuid
official g
intermediary comp_661
named entity
  • Field Details

    • gameEvent

      private final GameEvent gameEvent
      The field for the gameEvent record component.
    • distance

      private final float distance
      The field for the distance record component.
    • pos

      private final Vec3d pos
      The field for the pos record component.
    • uuid

      @Nullable private final @Nullable UUID uuid
      The field for the uuid record component.
    • projectileOwnerUuid

      @Nullable private final @Nullable UUID projectileOwnerUuid
      The field for the projectileOwnerUuid record component.
    • entity

      @Nullable private final @Nullable Entity entity
      The field for the entity record component.
    • CODEC

      public static final com.mojang.serialization.Codec<Vibration> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldgs;a:Lcom/mojang/serialization/Codec;
      intermediary field_38245 Lnet/minecraft/class_7269;field_38245:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/event/listener/Vibration;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Vibration

      public Vibration(GameEvent gameEvent, float distance, Vec3d pos, @Nullable @Nullable UUID uuid, @Nullable @Nullable UUID projectileOwnerUuid)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgs;<init>(Ldgl;FLeei;Ljava/util/UUID;Ljava/util/UUID;)V
      intermediary <init> Lnet/minecraft/class_7269;<init>(Lnet/minecraft/class_5712;FLnet/minecraft/class_243;Ljava/util/UUID;Ljava/util/UUID;)V
      named <init> Lnet/minecraft/world/event/listener/Vibration;<init>(Lnet/minecraft/world/event/GameEvent;FLnet/minecraft/util/math/Vec3d;Ljava/util/UUID;Ljava/util/UUID;)V
    • Vibration

      public Vibration(GameEvent gameEvent, float distance, Vec3d pos, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgs;<init>(Ldgl;FLeei;Lbfj;)V
      intermediary <init> Lnet/minecraft/class_7269;<init>(Lnet/minecraft/class_5712;FLnet/minecraft/class_243;Lnet/minecraft/class_1297;)V
      named <init> Lnet/minecraft/world/event/listener/Vibration;<init>(Lnet/minecraft/world/event/GameEvent;FLnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)V
    • Vibration

      public Vibration(GameEvent gameEvent, float float2, Vec3d vec3d, @Nullable @Nullable UUID uUID, @Nullable @Nullable UUID uUID2, @Nullable @Nullable Entity entity)
  • Method Details

    • getOwnerUuid

      @Nullable private static @Nullable UUID getOwnerUuid(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgs;a(Lbfj;)Ljava/util/UUID;
      intermediary method_42684 Lnet/minecraft/class_7269;method_42684(Lnet/minecraft/class_1297;)Ljava/util/UUID;
      named getOwnerUuid Lnet/minecraft/world/event/listener/Vibration;getOwnerUuid(Lnet/minecraft/entity/Entity;)Ljava/util/UUID;
    • getEntity

      public Optional<Entity> getEntity(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgs;a(Laif;)Ljava/util/Optional;
      intermediary method_42348 Lnet/minecraft/class_7269;method_42348(Lnet/minecraft/class_3218;)Ljava/util/Optional;
      named getEntity Lnet/minecraft/world/event/listener/Vibration;getEntity(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
    • getOwner

      public Optional<Entity> getOwner(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official b Ldgs;b(Laif;)Ljava/util/Optional;
      intermediary method_42687 Lnet/minecraft/class_7269;method_42687(Lnet/minecraft/class_3218;)Ljava/util/Optional;
      named getOwner Lnet/minecraft/world/event/listener/Vibration;getOwner(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • gameEvent

      public GameEvent gameEvent()
      Returns the value of the gameEvent record component.
      Returns:
      the value of the gameEvent record component
    • distance

      public float distance()
      Returns the value of the distance record component.
      Returns:
      the value of the distance record component
    • pos

      public Vec3d pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • uuid

      @Nullable public @Nullable UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • projectileOwnerUuid

      @Nullable public @Nullable UUID projectileOwnerUuid()
      Returns the value of the projectileOwnerUuid record component.
      Returns:
      the value of the projectileOwnerUuid record component
    • entity

      @Nullable public @Nullable Entity entity()
      Returns the value of the entity record component.
      Returns:
      the value of the entity record component