faceFromIndex

@Contract(value = null -> null)
static Direction faceFromIndex(int faceIndex)

Use to decode a result from toFaceIndex.Return value will be null if encoded value was null.Can also be used for no-allocation iteration of values,optionally including the null face. (Use < or <= NULL_FACE_ID to exclude or include the null value, respectively.)

Sources

jvm source
Link copied to clipboard