Record Class SculkSensorListener.Vibration
java.lang.Object
java.lang.Record
net.minecraft.world.event.listener.SculkSensorListener.Vibration
- Record Components:
gameEvent-distance-pos-uuid-entity-
- Enclosing class:
SculkSensorListener
public static record SculkSensorListener.Vibration(GameEvent gameEvent, int distance, Vec3d pos, @Nullable UUID uuid, @Nullable Entity entity)
extends Record
- Mappings:
Namespace Name official cvv$aintermediary net/minecraft/class_5718$class_7269named net/minecraft/world/event/listener/SculkSensorListener$Vibrationofficial bintermediary comp_657named gameEventofficial cintermediary comp_658named distanceofficial dintermediary comp_659named posofficial eintermediary comp_660named uuidofficial fintermediary comp_661named entity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedistancerecord component.The field for theentityrecord component.static final com.mojang.serialization.Codec<SculkSensorListener.Vibration>private final GameEventThe field for thegameEventrecord component.private final Vec3dThe field for theposrecord component.The field for theuuidrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdistance()Returns the value of thedistancerecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameEventrecord component.final inthashCode()Returns a hash code value for this object.method_42348(ServerWorld serverWorld) pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
gameEvent
The field for thegameEventrecord component. -
distance
private final int distanceThe field for thedistancerecord component. -
pos
The field for theposrecord component. -
uuid
The field for theuuidrecord component. -
entity
The field for theentityrecord component. -
field_38245
- Mappings:
Namespace Name Mixin selector official aLcvv$a;a:Lcom/mojang/serialization/Codec;intermediary field_38245Lnet/minecraft/class_5718$class_7269;field_38245:Lcom/mojang/serialization/Codec;named field_38245Lnet/minecraft/world/event/listener/SculkSensorListener$Vibration;field_38245:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Vibration
-
Vibration
-
Vibration
-
-
Method Details
-
method_42348
- Mappings:
Namespace Name Mixin selector official aLcvv$a;a(Laef;)Ljava/util/Optional;intermediary method_42348Lnet/minecraft/class_5718$class_7269;method_42348(Lnet/minecraft/class_3218;)Ljava/util/Optional;named method_42348Lnet/minecraft/world/event/listener/SculkSensorListener$Vibration;method_42348(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 thegameEventrecord component.- Returns:
- the value of the
gameEventrecord component
-
distance
public int distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-