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