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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Vibration>
private final float
The field for thedistance
record component.The field for theentity
record component.private final GameEvent
The field for thegameEvent
record component.private final Vec3d
The field for thepos
record component.The field for theprojectileOwnerUuid
record component.The field for theuuid
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
distance()
Returns the value of thedistance
record component.entity()
Returns the value of theentity
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegameEvent
record component.getEntity
(ServerWorld world) getOwner
(ServerWorld world) getOwnerUuid
(@Nullable Entity entity) final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.Returns the value of theprojectileOwnerUuid
record component.final String
toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.
-
Field Details
-
gameEvent
The field for thegameEvent
record component. -
distance
private final float distanceThe field for thedistance
record component. -
pos
The field for thepos
record component. -
uuid
The field for theuuid
record component. -
projectileOwnerUuid
The field for theprojectileOwnerUuid
record component. -
entity
The field for theentity
record component. -
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
- 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
-
-
Method Details
-
getOwnerUuid
- 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
- 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
- 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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
gameEvent
Returns the value of thegameEvent
record component.- Returns:
- the value of the
gameEvent
record component
-
distance
public float distance()Returns the value of thedistance
record component.- Returns:
- the value of the
distance
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
uuid
Returns the value of theuuid
record component.- Returns:
- the value of the
uuid
record component
-
projectileOwnerUuid
Returns the value of theprojectileOwnerUuid
record component.- Returns:
- the value of the
projectileOwnerUuid
record component
-
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-