Record Class BedrockPlayerControllers.Surface
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockPlayerControllers.Surface
- Enclosing class:
BedrockPlayerControllers
-
Constructor Summary
ConstructorsConstructorDescriptionSurface(String controller, String geometry, List<String> textures, Map<String, String> materials, BedrockPlayerControllers.Uv uv, List<BedrockPlayerControllers.Visibility> visibility, boolean ignoreLighting, float lightMultiplier) Creates an instance of aSurfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollerrecord component.final booleanIndicates whether some other object is "equal to" this one.geometry()Returns the value of thegeometryrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreLightingrecord component.floatReturns the value of thelightMultiplierrecord component.Returns the value of thematerialsrecord component.booleantextures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.uv()Returns the value of theuvrecord component.Returns the value of thevisibilityrecord component.
-
Constructor Details
-
Surface
public Surface(String controller, String geometry, List<String> textures, Map<String, String> materials, BedrockPlayerControllers.Uv uv, List<BedrockPlayerControllers.Visibility> visibility, boolean ignoreLighting, float lightMultiplier) Creates an instance of aSurfacerecord class.- Parameters:
controller- the value for thecontrollerrecord componentgeometry- the value for thegeometryrecord componenttextures- the value for thetexturesrecord componentmaterials- the value for thematerialsrecord componentuv- the value for theuvrecord componentvisibility- the value for thevisibilityrecord componentignoreLighting- the value for theignoreLightingrecord componentlightMultiplier- the value for thelightMultiplierrecord component
-
-
Method Details
-
nativeBody
public boolean nativeBody() -
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. -
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
geometry
Returns the value of thegeometryrecord component.- Returns:
- the value of the
geometryrecord component
-
textures
-
materials
-
uv
Returns the value of theuvrecord component.- Returns:
- the value of the
uvrecord component
-
visibility
Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
ignoreLighting
public boolean ignoreLighting()Returns the value of theignoreLightingrecord component.- Returns:
- the value of the
ignoreLightingrecord component
-
lightMultiplier
public float lightMultiplier()Returns the value of thelightMultiplierrecord component.- Returns:
- the value of the
lightMultiplierrecord component
-