Record Class ScribeAction.AcknowledgeLoss
java.lang.Object
java.lang.Record
johnsmith.enchantingoverhauled.menu.scribe.controller.ScribeAction.AcknowledgeLoss
- All Implemented Interfaces:
ScribeAction
- Enclosing interface:
ScribeAction
Action representing the player acknowledging they lost the game.
Triggers the Arcane Retribution penalty and forcibly kicks them from the menu.
-
Nested Class Summary
Nested classes/interfaces inherited from interface johnsmith.enchantingoverhauled.menu.scribe.controller.ScribeAction
ScribeAction.AcknowledgeLoss, ScribeAction.Lose, ScribeAction.Start, ScribeAction.TakeBook, ScribeAction.Win -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexecute(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container container, ScribeGridData gridData, net.minecraft.world.inventory.ContainerLevelAccess access) Executes the action, modifying the container and the player's state.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcknowledgeLoss
public AcknowledgeLoss()Creates an instance of aAcknowledgeLossrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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.