Record Class BedrockPlayerControllers.Surface

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockPlayerControllers.Surface
Enclosing class:
BedrockPlayerControllers

public static record BedrockPlayerControllers.Surface(String controller, String geometry, List<String> textures, Map<String,String> materials, BedrockPlayerControllers.Uv uv, List<BedrockPlayerControllers.Visibility> visibility, boolean ignoreLighting, float lightMultiplier) extends Record
  • 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 a Surface record class.
      Parameters:
      controller - the value for the controller record component
      geometry - the value for the geometry record component
      textures - the value for the textures record component
      materials - the value for the materials record component
      uv - the value for the uv record component
      visibility - the value for the visibility record component
      ignoreLighting - the value for the ignoreLighting record component
      lightMultiplier - the value for the lightMultiplier record component
  • Method Details

    • nativeBody

      public boolean nativeBody()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • controller

      public String controller()
      Returns the value of the controller record component.
      Returns:
      the value of the controller record component
    • geometry

      public String geometry()
      Returns the value of the geometry record component.
      Returns:
      the value of the geometry record component
    • textures

      public List<String> textures()
      Returns the value of the textures record component.
      Returns:
      the value of the textures record component
    • materials

      public Map<String,String> materials()
      Returns the value of the materials record component.
      Returns:
      the value of the materials record component
    • uv

      Returns the value of the uv record component.
      Returns:
      the value of the uv record component
    • visibility

      Returns the value of the visibility record component.
      Returns:
      the value of the visibility record component
    • ignoreLighting

      public boolean ignoreLighting()
      Returns the value of the ignoreLighting record component.
      Returns:
      the value of the ignoreLighting record component
    • lightMultiplier

      public float lightMultiplier()
      Returns the value of the lightMultiplier record component.
      Returns:
      the value of the lightMultiplier record component