Record Class LivingFallHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.living.LivingFallHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
- LivingFallHandler
public static record LivingFallHandler.Insert(net.minecraft.world.entity.LivingEntity living, InsertSetter<Float> distance, InsertSetter<Float> damageMultiplier, InsertCanceller cancel)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(net.minecraft.world.entity.LivingEntity living, InsertSetter<Float> distance, InsertSetter<Float> damageMultiplier, InsertCanceller cancel) Creates an instance of aInsertrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncancel()Returns the value of thecancelrecord component.Returns the value of thedamageMultiplierrecord component.distance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.entity.LivingEntityliving()Returns the value of thelivingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
public Insert(net.minecraft.world.entity.LivingEntity living, InsertSetter<Float> distance, InsertSetter<Float> damageMultiplier, InsertCanceller cancel) Creates an instance of aInsertrecord class.- Parameters:
living- the value for thelivingrecord componentdistance- the value for thedistancerecord componentdamageMultiplier- the value for thedamageMultiplierrecord componentcancel- the value for thecancelrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
living
public net.minecraft.world.entity.LivingEntity living()Returns the value of thelivingrecord component.- Returns:
- the value of the
livingrecord component
-
distance
Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
damageMultiplier
Returns the value of thedamageMultiplierrecord component.- Returns:
- the value of the
damageMultiplierrecord component
-
cancel
Returns the value of thecancelrecord component.- Returns:
- the value of the
cancelrecord component
-