Record Class LivingDeathHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.living.LivingDeathHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
LivingDeathHandler
public static record LivingDeathHandler.Insert(net.minecraft.world.entity.LivingEntity living, net.minecraft.world.damagesource.DamageSource source)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(net.minecraft.world.entity.LivingEntity living, net.minecraft.world.damagesource.DamageSource source) Creates an instance of aInsertrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.net.minecraft.world.damagesource.DamageSourcesource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
public Insert(net.minecraft.world.entity.LivingEntity living, net.minecraft.world.damagesource.DamageSource source) Creates an instance of aInsertrecord class.- Parameters:
living- the value for thelivingrecord componentsource- the value for thesourcerecord 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
-
source
public net.minecraft.world.damagesource.DamageSource source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-