Class PhysicsMaterialResult

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class PhysicsMaterialResult extends Result<PhysicsMaterialRef>
Either an error or a PhysicsMaterialRef. (native type: Result<Ref<PhysicsMaterial>>)
  • Method Details

    • get

      public PhysicsMaterialRef get()
      Return the PhysicsMaterialRef.
      Specified by:
      get in class Result<PhysicsMaterialRef>
      Returns:
      a new JVM object with a new native object assigned
    • getError

      protected String getError(long resultVa)
      Description copied from class: Result
      Return the error message.
      Specified by:
      getError in class Result<PhysicsMaterialRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      a string of text
    • hasError

      protected boolean hasError(long resultVa)
      Description copied from class: Result
      Test whether an error occurred.
      Specified by:
      hasError in class Result<PhysicsMaterialRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if error, otherwise false
    • isValid

      protected boolean isValid(long resultVa)
      Description copied from class: Result
      Test whether the value returned by get() is valid.
      Specified by:
      isValid in class Result<PhysicsMaterialRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if valid, otherwise false