public virtual unsafe void SetVertexConsumer(global::Java.Util.Functions.IConsumer vertexConsumer) { if (id_setVertexConsumer_Ljava_util_function_Consumer_ == IntPtr.Zero) { id_setVertexConsumer_Ljava_util_function_Consumer_ = JNIEnv.GetMethodID(class_ref, "setVertexConsumer", "(Ljava/util/function/Consumer;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(vertexConsumer); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setVertexConsumer_Ljava_util_function_Consumer_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setVertexConsumer", "(Ljava/util/function/Consumer;)V"), __args); } } finally { } }
static void n_SetVertexConsumer_Ljava_util_function_Consumer_(IntPtr jnienv, IntPtr native__this, IntPtr native_vertexConsumer) { global::JavaGl.Obj.BasicWritableObj __this = global::Java.Lang.Object.GetObject <global::JavaGl.Obj.BasicWritableObj> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.Functions.IConsumer vertexConsumer = (global::Java.Util.Functions.IConsumer)global::Java.Lang.Object.GetObject <global::Java.Util.Functions.IConsumer> (native_vertexConsumer, JniHandleOwnership.DoNotTransfer); __this.SetVertexConsumer(vertexConsumer); }