Record Class SculkSensorListener.class_6999
java.lang.Object
java.lang.Record
net.minecraft.world.event.listener.SculkSensorListener.class_6999
- Record Components:
gameEvent-distance-pos-sourceEntity-
- Enclosing class:
- SculkSensorListener
public static record SculkSensorListener.class_6999(GameEvent gameEvent, int distance, Vec3d pos, @Nullable Entity sourceEntity)
extends Record
- Mappings:
Namespace Name official ctz$aintermediary net/minecraft/class_5718$class_6999named net/minecraft/world/event/listener/SculkSensorListener$class_6999official aintermediary comp_440named gameEventofficial bintermediary comp_441named distanceofficial cintermediary comp_442named posofficial dintermediary comp_443named sourceEntity
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionclass_6999(GameEvent gameEvent, int int2, Vec3d vec3d, @Nullable Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionintdistance()Returns the value of thedistancerecord 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.pos()Returns the value of theposrecord component.Returns the value of thesourceEntityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
gameEvent
The field for thegameEventrecord component. -
distance
private final int distanceThe field for thedistancerecord component. -
pos
The field for theposrecord component. -
sourceEntity
The field for thesourceEntityrecord component.
-
-
Constructor Details
-
class_6999
-
-
Method Details
-
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
-
sourceEntity
Returns the value of thesourceEntityrecord component.- Returns:
- the value of the
sourceEntityrecord component
-