Record Class LivingHealHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.living.LivingHealHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
LivingHealHandler
public static record LivingHealHandler.Insert(net.minecraft.world.entity.LivingEntity living, InsertSetter<Float> amount)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(net.minecraft.world.entity.LivingEntity living, InsertSetter<Float> amount) Creates an instance of aInsertrecord class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord 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
Creates an instance of aInsertrecord class.- Parameters:
living- the value for thelivingrecord componentamount- the value for theamountrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-