Record Class PlayerRestoreHandler.Insert
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.insert.handler.living.player.PlayerRestoreHandler.Insert
- All Implemented Interfaces:
InsertHandler.Insert
- Enclosing class:
PlayerRestoreHandler
public static record PlayerRestoreHandler.Insert(net.minecraft.world.entity.player.Player thisPlayer, net.minecraft.world.entity.player.Player thatPlayer, boolean keepEverything)
extends Record
implements InsertHandler.Insert
-
Constructor Summary
ConstructorsConstructorDescriptionInsert(net.minecraft.world.entity.player.Player thisPlayer, net.minecraft.world.entity.player.Player thatPlayer, boolean keepEverything) 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.booleanReturns the value of thekeepEverythingrecord component.net.minecraft.world.entity.player.PlayerReturns the value of thethatPlayerrecord component.net.minecraft.world.entity.player.PlayerReturns the value of thethisPlayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
public Insert(net.minecraft.world.entity.player.Player thisPlayer, net.minecraft.world.entity.player.Player thatPlayer, boolean keepEverything) Creates an instance of aInsertrecord class.- Parameters:
thisPlayer- the value for thethisPlayerrecord componentthatPlayer- the value for thethatPlayerrecord componentkeepEverything- the value for thekeepEverythingrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
thisPlayer
public net.minecraft.world.entity.player.Player thisPlayer()Returns the value of thethisPlayerrecord component.- Returns:
- the value of the
thisPlayerrecord component
-
thatPlayer
public net.minecraft.world.entity.player.Player thatPlayer()Returns the value of thethatPlayerrecord component.- Returns:
- the value of the
thatPlayerrecord component
-
keepEverything
public boolean keepEverything()Returns the value of thekeepEverythingrecord component.- Returns:
- the value of the
keepEverythingrecord component
-