Record Class BedrockPlayerControllers.Selection
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockPlayerControllers.Selection
- Enclosing class:
BedrockPlayerControllers
public static record BedrockPlayerControllers.Selection(boolean bodyVisible, List<BedrockPlayerControllers.Surface> surfaces)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSelection(boolean bodyVisible, List<BedrockPlayerControllers.Surface> surfaces) Creates an instance of aSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebodyVisiblerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.surfaces()Returns the value of thesurfacesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Selection
Creates an instance of aSelectionrecord class.- Parameters:
bodyVisible- the value for thebodyVisiblerecord componentsurfaces- the value for thesurfacesrecord 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. -
bodyVisible
public boolean bodyVisible()Returns the value of thebodyVisiblerecord component.- Returns:
- the value of the
bodyVisiblerecord component
-
surfaces
Returns the value of thesurfacesrecord component.- Returns:
- the value of the
surfacesrecord component
-