Record Class PlayerManagementDraggableWidget.PlayerManagementButtons

java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.client.screens.team.widgets.PlayerManagementDraggableWidget.PlayerManagementButtons
Enclosing class:
PlayerManagementDraggableWidget

public static record PlayerManagementDraggableWidget.PlayerManagementButtons(boolean removeMembers, boolean promoteMembers, boolean demoteMembers, boolean transferOwnership, boolean invitePlayer) extends Record
  • Field Details

    • REMOVE_MEMBERS_SPRITES

      public static final net.minecraft.client.gui.components.WidgetSprites REMOVE_MEMBERS_SPRITES
    • PROMOTE_MEMBERS_SPRITES

      public static final net.minecraft.client.gui.components.WidgetSprites PROMOTE_MEMBERS_SPRITES
    • DEMOTE_MEMBERS_SPRITES

      public static final net.minecraft.client.gui.components.WidgetSprites DEMOTE_MEMBERS_SPRITES
    • TRANSFER_OWNERSHIP_SPRITES

      public static final net.minecraft.client.gui.components.WidgetSprites TRANSFER_OWNERSHIP_SPRITES
    • INVITE_PLAYER_SPRITES

      public static final net.minecraft.client.gui.components.WidgetSprites INVITE_PLAYER_SPRITES
  • Constructor Details

    • PlayerManagementButtons

      public PlayerManagementButtons(boolean removeMembers, boolean promoteMembers, boolean demoteMembers, boolean transferOwnership, boolean invitePlayer)
      Creates an instance of a PlayerManagementButtons record class.
      Parameters:
      removeMembers - the value for the removeMembers record component
      promoteMembers - the value for the promoteMembers record component
      demoteMembers - the value for the demoteMembers record component
      transferOwnership - the value for the transferOwnership record component
      invitePlayer - the value for the invitePlayer record component
  • Method Details

    • getSprites

      public Map<PlayerManagementDraggableWidget.PlayerManagementButtonType,net.minecraft.client.gui.components.WidgetSprites> getSprites()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • removeMembers

      public boolean removeMembers()
      Returns the value of the removeMembers record component.
      Returns:
      the value of the removeMembers record component
    • promoteMembers

      public boolean promoteMembers()
      Returns the value of the promoteMembers record component.
      Returns:
      the value of the promoteMembers record component
    • demoteMembers

      public boolean demoteMembers()
      Returns the value of the demoteMembers record component.
      Returns:
      the value of the demoteMembers record component
    • transferOwnership

      public boolean transferOwnership()
      Returns the value of the transferOwnership record component.
      Returns:
      the value of the transferOwnership record component
    • invitePlayer

      public boolean invitePlayer()
      Returns the value of the invitePlayer record component.
      Returns:
      the value of the invitePlayer record component