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(RegistryEntry<GameEvent> gameEvent, float distance, Vec3d pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid, @Nullable Entity entity)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/event/listener/Vibration
intermediary net/minecraft/class_7269
official ecx
named gameEvent
intermediary comp_657
official b
named distance
intermediary comp_658
official c
named pos
intermediary comp_659
official d
named uuid
intermediary comp_660
official e
named projectileOwnerUuid
intermediary comp_681
official f
named entity
intermediary comp_661
official g
-
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 RegistryEntry
<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 named CODEC
Lnet/minecraft/world/event/listener/Vibration;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_38245
Lnet/minecraft/class_7269;field_38245:Lcom/mojang/serialization/Codec;
official a
Lecx;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Vibration
public Vibration(RegistryEntry<GameEvent> gameEvent, float distance, Vec3d pos, @Nullable @Nullable UUID uuid, @Nullable @Nullable UUID projectileOwnerUuid) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/event/listener/Vibration;<init>(Lnet/minecraft/registry/entry/RegistryEntry;FLnet/minecraft/util/math/Vec3d;Ljava/util/UUID;Ljava/util/UUID;)V
intermediary <init>
Lnet/minecraft/class_7269;<init>(Lnet/minecraft/class_6880;FLnet/minecraft/class_243;Ljava/util/UUID;Ljava/util/UUID;)V
official <init>
Lecx;<init>(Ljq;FLfbx;Ljava/util/UUID;Ljava/util/UUID;)V
-
Vibration
public Vibration(RegistryEntry<GameEvent> gameEvent, float distance, Vec3d pos, @Nullable @Nullable Entity entity) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/event/listener/Vibration;<init>(Lnet/minecraft/registry/entry/RegistryEntry;FLnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)V
intermediary <init>
Lnet/minecraft/class_7269;<init>(Lnet/minecraft/class_6880;FLnet/minecraft/class_243;Lnet/minecraft/class_1297;)V
official <init>
Lecx;<init>(Ljq;FLfbx;Lbvj;)V
-
Vibration
-
-
Method Details
-
getOwnerUuid
- Mappings:
Namespace Name Mixin selector named getOwnerUuid
Lnet/minecraft/world/event/listener/Vibration;getOwnerUuid(Lnet/minecraft/entity/Entity;)Ljava/util/UUID;
intermediary method_42684
Lnet/minecraft/class_7269;method_42684(Lnet/minecraft/class_1297;)Ljava/util/UUID;
official a
Lecx;a(Lbvj;)Ljava/util/UUID;
-
getEntity
- Mappings:
Namespace Name Mixin selector named getEntity
Lnet/minecraft/world/event/listener/Vibration;getEntity(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_42348
Lnet/minecraft/class_7269;method_42348(Lnet/minecraft/class_3218;)Ljava/util/Optional;
official a
Lecx;a(Lash;)Ljava/util/Optional;
-
getOwner
- Mappings:
Namespace Name Mixin selector named getOwner
Lnet/minecraft/world/event/listener/Vibration;getOwner(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_42687
Lnet/minecraft/class_7269;method_42687(Lnet/minecraft/class_3218;)Ljava/util/Optional;
official b
Lecx;b(Lash;)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
-