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 Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.gui.components.WidgetSpritesstatic final net.minecraft.client.gui.components.WidgetSpritesstatic final net.minecraft.client.gui.components.WidgetSpritesstatic final net.minecraft.client.gui.components.WidgetSpritesstatic final net.minecraft.client.gui.components.WidgetSprites -
Constructor Summary
ConstructorsConstructorDescriptionPlayerManagementButtons(boolean removeMembers, boolean promoteMembers, boolean demoteMembers, boolean transferOwnership, boolean invitePlayer) Creates an instance of aPlayerManagementButtonsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedemoteMembersrecord component.final booleanIndicates whether some other object is "equal to" this one.Map<PlayerManagementDraggableWidget.PlayerManagementButtonType, net.minecraft.client.gui.components.WidgetSprites> final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinvitePlayerrecord component.booleanReturns the value of thepromoteMembersrecord component.booleanReturns the value of theremoveMembersrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransferOwnershiprecord component.
-
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 aPlayerManagementButtonsrecord class.- Parameters:
removeMembers- the value for theremoveMembersrecord componentpromoteMembers- the value for thepromoteMembersrecord componentdemoteMembers- the value for thedemoteMembersrecord componenttransferOwnership- the value for thetransferOwnershiprecord componentinvitePlayer- the value for theinvitePlayerrecord component
-
-
Method Details
-
getSprites
public Map<PlayerManagementDraggableWidget.PlayerManagementButtonType,net.minecraft.client.gui.components.WidgetSprites> getSprites() -
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. All components in this record class are compared with '=='. -
removeMembers
public boolean removeMembers()Returns the value of theremoveMembersrecord component.- Returns:
- the value of the
removeMembersrecord component
-
promoteMembers
public boolean promoteMembers()Returns the value of thepromoteMembersrecord component.- Returns:
- the value of the
promoteMembersrecord component
-
demoteMembers
public boolean demoteMembers()Returns the value of thedemoteMembersrecord component.- Returns:
- the value of the
demoteMembersrecord component
-
transferOwnership
public boolean transferOwnership()Returns the value of thetransferOwnershiprecord component.- Returns:
- the value of the
transferOwnershiprecord component
-
invitePlayer
public boolean invitePlayer()Returns the value of theinvitePlayerrecord component.- Returns:
- the value of the
invitePlayerrecord component
-