Record Class XpPickupHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.XpPickupHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
XpPickupHandler
public static record XpPickupHandler.Insert(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.ExperienceOrb orb)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.ExperienceOrb orb) 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.ExperienceOrborb()Returns the value of theorbrecord component.net.minecraft.world.entity.player.Playerplayer()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
public Insert(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.ExperienceOrb orb) Creates an instance of aInsertrecord class.- Parameters:
player- the value for theplayerrecord componentorb- the value for theorbrecord 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). -
player
public net.minecraft.world.entity.player.Player player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
orb
public net.minecraft.world.entity.ExperienceOrb orb()Returns the value of theorbrecord component.- Returns:
- the value of the
orbrecord component
-