Skip to content

Package com.mojang.blaze3d.platform

Part 1/1


ClientShutdownWatchdog

  • Full name: com.mojang.blaze3d.platform.ClientShutdownWatchdog
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/ClientShutdownWatchdog.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.ClientShutdownWatchdog#startShutdownWatchdog(File,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ClientShutdownWatchdog.java:15
  • Modifiers: public static
  • Return: void

คืออะไร

เริ่ม Shutdown Watchdog

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: sleep(), createWatchdogCrashReport(), saveReport(), setDaemon(), setName(), start(). สร้างออบเจ็กต์: Thread.

Parameters

  • File file
  • long l

ตัวอย่างใช้งาน

File file = ...;
ClientShutdownWatchdog.startShutdownWatchdog(file, 0L);

ClipboardManager

  • Full name: com.mojang.blaze3d.platform.ClipboardManager
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/ClipboardManager.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.ClipboardManager#getClipboard(long,GLFWErrorCallbackI)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ClipboardManager.java:19
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Clipboard

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: glfwSetErrorCallback(), glfwGetClipboardString(), filterBrokenSurrogates(), free(). คืนค่า: string.

Parameters

  • long l
  • GLFWErrorCallbackI gLFWErrorCallbackI

ตัวอย่างใช้งาน

ClipboardManager instance = ...;
GLFWErrorCallbackI gLFWErrorCallbackI = ...;
String result = instance.getClipboard(0L, gLFWErrorCallbackI);

com.mojang.blaze3d.platform.ClipboardManager#setClipboard(long,String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ClipboardManager.java:39
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Clipboard

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getBytes(), capacity(), pushClipboard(), memAlloc(), memFree().

Parameters

  • long l
  • String string

ตัวอย่างใช้งาน

ClipboardManager instance = ...;
instance.setClipboard(0L, "value");

DebugMemoryUntracker

  • Full name: com.mojang.blaze3d.platform.DebugMemoryUntracker
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/DebugMemoryUntracker.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.DebugMemoryUntracker#untrack(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/DebugMemoryUntracker.java:31
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ untrack ตาม implementation ของ DebugMemoryUntracker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: invoke(). สร้างออบเจ็กต์: RuntimeException.

Parameters

  • long l

ตัวอย่างใช้งาน

DebugMemoryUntracker.untrack(0L);

com.mojang.blaze3d.platform.DebugMemoryUntracker#untrack(Pointer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/DebugMemoryUntracker.java:41
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ untrack ตาม implementation ของ DebugMemoryUntracker

ทำงานยังไง

เรียกต่อ: address().

Parameters

  • Pointer pointer

ตัวอย่างใช้งาน

Pointer pointer = ...;
DebugMemoryUntracker.untrack(pointer);

DisplayData

  • Full name: com.mojang.blaze3d.platform.DisplayData
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/DisplayData.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.DisplayData#DisplayData(int,int,OptionalInt,OptionalInt,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/DisplayData.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ DisplayData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: width, height, fullscreenWidth, fullscreenHeight, isFullscreen.

Parameters

  • int i
  • int j
  • OptionalInt optionalInt
  • OptionalInt optionalInt2
  • boolean bl

ตัวอย่างใช้งาน

OptionalInt optionalInt = ...;
OptionalInt optionalInt2 = ...;
DisplayData instance = new DisplayData(0, 0, optionalInt, optionalInt2, true);

FramerateLimitTracker

  • Full name: com.mojang.blaze3d.platform.FramerateLimitTracker
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/FramerateLimitTracker.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.FramerateLimitTracker#FramerateLimitTracker(Options,Minecraft)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/FramerateLimitTracker.java:23
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ FramerateLimitTracker ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: options, minecraft, framerateLimit. เรียกต่อ: framerateLimit(), get().

Parameters

  • Options options
  • Minecraft minecraft

ตัวอย่างใช้งาน

Options options = ...;
Minecraft minecraft = ...;
FramerateLimitTracker instance = new FramerateLimitTracker(options, minecraft);

com.mojang.blaze3d.platform.FramerateLimitTracker#getFramerateLimit()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/FramerateLimitTracker.java:29
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Framerate Limit

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: inactivityFpsLimit(), get(), getWindow(), isIconified(), getMillis(), min(), getOverlay(). มีจุด return อย่างน้อย 4 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

FramerateLimitTracker instance = ...;
int result = instance.getFramerateLimit();

com.mojang.blaze3d.platform.FramerateLimitTracker#onInputReceived()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/FramerateLimitTracker.java:53
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Input Received

ทำงานยังไง

แก้ state: latestInputTime. เรียกต่อ: getMillis().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

FramerateLimitTracker instance = ...;
instance.onInputReceived();

com.mojang.blaze3d.platform.FramerateLimitTracker#setFramerateLimit(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/FramerateLimitTracker.java:49
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Framerate Limit

ทำงานยังไง

แก้ state: framerateLimit.

Parameters

  • int i

ตัวอย่างใช้งาน

FramerateLimitTracker instance = ...;
instance.setFramerateLimit(0);

GlDebug

  • Full name: com.mojang.blaze3d.platform.GlDebug
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/GlDebug.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.GlDebug#enableDebugCallback(int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:124
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ enableDebugCallback ตาม implementation ของ GlDebug

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getCapabilities(), glEnable(), size(), glDebugMessageControl(), get(), glDebugMessageCallback(), make(), create().

Parameters

  • int i
  • boolean bl

ตัวอย่างใช้งาน

GlDebug.enableDebugCallback(0, true);

com.mojang.blaze3d.platform.GlDebug#getLastOpenGlDebugMessages()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:108
  • Modifiers: public static
  • Return: List<String>

คืออะไร

อ่านค่า Last Open Gl Debug Messages

ทำงานยังไง

มีการวนลูป ; มีส่วนที่ synchronize การทำงาน. เรียกต่อ: newArrayListWithCapacity(), size(), add(). คืนค่า: list.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

List<String> result = GlDebug.getLastOpenGlDebugMessages();

com.mojang.blaze3d.platform.GlDebug#isDebugEnabled()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:120
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Debug Enabled

ทำงานยังไง

คืนค่า: debugEnabled.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

boolean result = GlDebug.isDebugEnabled();

com.mojang.blaze3d.platform.GlDebug#severityToString(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:76
  • Modifiers: public static
  • Return: String

คืออะไร

ดำเนินการ severityToString ตาม implementation ของ GlDebug

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: printUnknownToken(). มีจุด return อย่างน้อย 5 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

String result = GlDebug.severityToString(0);

com.mojang.blaze3d.platform.GlDebug#sourceToString(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:36
  • Modifiers: public static
  • Return: String

คืออะไร

ดำเนินการ sourceToString ตาม implementation ของ GlDebug

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: printUnknownToken(). มีจุด return อย่างน้อย 7 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

String result = GlDebug.sourceToString(0);

com.mojang.blaze3d.platform.GlDebug#typeToString(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlDebug.java:55
  • Modifiers: public static
  • Return: String

คืออะไร

ดำเนินการ typeToString ตาม implementation ของ GlDebug

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: printUnknownToken(). มีจุด return อย่างน้อย 8 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

String result = GlDebug.typeToString(0);

GlStateManager

  • Full name: com.mojang.blaze3d.platform.GlStateManager
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/GlStateManager.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.GlStateManager#_activeTexture(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:513
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _activeTexture ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glActiveTexture().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._activeTexture(0);

com.mojang.blaze3d.platform.GlStateManager#_bindTexture(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:579
  • Modifiers: public static
  • Return: void

คืออะไร

ผูก Texture

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), glBindTexture().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._bindTexture(0);

com.mojang.blaze3d.platform.GlStateManager#_blendEquation(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:128
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _blendEquation ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glBlendEquation().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._blendEquation(0);

com.mojang.blaze3d.platform.GlStateManager#_blendFunc(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:108
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _blendFunc ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glBlendFunc().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._blendFunc(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_blendFuncSeparate(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:117
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _blendFuncSeparate ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glBlendFuncSeparate().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager._blendFuncSeparate(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_clear(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:690
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง _clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), glClear(), _getError().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._clear(0);

com.mojang.blaze3d.platform.GlStateManager#_clearColor(float,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:680
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Color

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glClearColor().

Parameters

  • float f
  • float g
  • float h
  • float i

ตัวอย่างใช้งาน

GlStateManager._clearColor(0.0F, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.platform.GlStateManager#_clearDepth(double)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:675
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Depth

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glClearDepth().

Parameters

  • double d

ตัวอย่างใช้งาน

GlStateManager._clearDepth(0.0D);

com.mojang.blaze3d.platform.GlStateManager#_clearStencil(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:685
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Stencil

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glClearStencil().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._clearStencil(0);

com.mojang.blaze3d.platform.GlStateManager#_colorMask(boolean,boolean,boolean,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:636
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _colorMask ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glColorMask().

Parameters

  • boolean bl
  • boolean bl2
  • boolean bl3
  • boolean bl4

ตัวอย่างใช้งาน

GlStateManager._colorMask(true, true, true, true);

com.mojang.blaze3d.platform.GlStateManager#_deleteTexture(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:549
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _deleteTexture ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: assertOnRenderThreadOrInit(), glDeleteTextures(), setValue().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._deleteTexture(0);

com.mojang.blaze3d.platform.GlStateManager#_deleteTextures(int[])

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:563
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _deleteTextures ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: assertOnRenderThreadOrInit(), glDeleteTextures(), setValue().

Parameters

  • int[] is

ตัวอย่างใช้งาน

int[] is = ...;
GlStateManager._deleteTextures(is);

com.mojang.blaze3d.platform.GlStateManager#_depthFunc(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:82
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _depthFunc ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), glDepthFunc().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._depthFunc(0);

com.mojang.blaze3d.platform.GlStateManager#_depthMask(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:90
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _depthMask ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glDepthMask().

Parameters

  • boolean bl

ตัวอย่างใช้งาน

GlStateManager._depthMask(true);

com.mojang.blaze3d.platform.GlStateManager#_disableBlend()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:98
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableBlend ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disableBlend();

com.mojang.blaze3d.platform.GlStateManager#_disableColorLogicOp()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:500
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableColorLogicOp ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disableColorLogicOp();

com.mojang.blaze3d.platform.GlStateManager#_disableCull()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:466
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableCull ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disableCull();

com.mojang.blaze3d.platform.GlStateManager#_disableDepthTest()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:72
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableDepthTest ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disableDepthTest();

com.mojang.blaze3d.platform.GlStateManager#_disablePolygonOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:481
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disablePolygonOffset ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disablePolygonOffset();

com.mojang.blaze3d.platform.GlStateManager#_disableScissorTest()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:57
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableScissorTest ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), disable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._disableScissorTest();

com.mojang.blaze3d.platform.GlStateManager#_disableVertexAttribArray(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:718
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _disableVertexAttribArray ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glDisableVertexAttribArray().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._disableVertexAttribArray(0);

com.mojang.blaze3d.platform.GlStateManager#_drawElements(int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:723
  • Modifiers: public static
  • Return: void

คืออะไร

วาด Elements

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glDrawElements().

Parameters

  • int i
  • int j
  • int k
  • long l

ตัวอย่างใช้งาน

GlStateManager._drawElements(0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_enableBlend()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:103
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableBlend ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enableBlend();

com.mojang.blaze3d.platform.GlStateManager#_enableColorLogicOp()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:495
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableColorLogicOp ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enableColorLogicOp();

com.mojang.blaze3d.platform.GlStateManager#_enableCull()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:461
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableCull ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enableCull();

com.mojang.blaze3d.platform.GlStateManager#_enableDepthTest()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:77
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableDepthTest ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enableDepthTest();

com.mojang.blaze3d.platform.GlStateManager#_enablePolygonOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:476
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enablePolygonOffset ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enablePolygonOffset();

com.mojang.blaze3d.platform.GlStateManager#_enableScissorTest()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:62
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableScissorTest ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), enable().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlStateManager._enableScissorTest();

com.mojang.blaze3d.platform.GlStateManager#_enableVertexAttribArray(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:713
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _enableVertexAttribArray ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glEnableVertexAttribArray().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._enableVertexAttribArray(0);

com.mojang.blaze3d.platform.GlStateManager#_genTexture()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:535
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _genTexture ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), setValue(), glGenTextures(). คืนค่า: GL11.glGenTextures().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager._genTexture();

com.mojang.blaze3d.platform.GlStateManager#_genTextures(int[])

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:542
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _genTextures ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), setValue(), glGenTextures().

Parameters

  • int[] is

ตัวอย่างใช้งาน

int[] is = ...;
GlStateManager._genTextures(is);

com.mojang.blaze3d.platform.GlStateManager#_getActiveTexture()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:587
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Active Texture

ทำงานยังไง

คืนค่า: activeTexture + 33984.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager._getActiveTexture();

com.mojang.blaze3d.platform.GlStateManager#_getError()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:743
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Error

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glGetError(). คืนค่า: GL11.glGetError().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager._getError();

com.mojang.blaze3d.platform.GlStateManager#_getInteger(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:753
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Integer

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glGetInteger(). คืนค่า: GL11.glGetInteger(i).

Parameters

  • int i

ตัวอย่างใช้งาน

int result = GlStateManager._getInteger(0);

com.mojang.blaze3d.platform.GlStateManager#_getString(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:748
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า String

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glGetString(). คืนค่า: GL11.glGetString(i).

Parameters

  • int i

ตัวอย่างใช้งาน

String result = GlStateManager._getString(0);

com.mojang.blaze3d.platform.GlStateManager#_getTexImage(int,int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:622
  • Modifiers: public static
  • Return: void

คืออะไร

อ่านค่า Tex Image

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glGetTexImage().

Parameters

  • int i
  • int j
  • int k
  • int l
  • long m

ตัวอย่างใช้งาน

GlStateManager._getTexImage(0, 0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_getTexLevelParameter(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:531
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Tex Level Parameter

ทำงานยังไง

เรียกต่อ: glGetTexLevelParameteri(). คืนค่า: GL11.glGetTexLevelParameteri(i, j, k).

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

int result = GlStateManager._getTexLevelParameter(0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBindAttribLocation(int,int,CharSequence)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:270
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBindAttribLocation ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glBindAttribLocation().

Parameters

  • int i
  • int j
  • CharSequence charSequence

ตัวอย่างใช้งาน

CharSequence charSequence = ...;
GlStateManager._glBindAttribLocation(0, 0, charSequence);

com.mojang.blaze3d.platform.GlStateManager#_glBindBuffer(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:287
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBindBuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBindBuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._glBindBuffer(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBindFramebuffer(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:352
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBindFramebuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: assertOnRenderThreadOrInit(), update(), glBindFramebuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._glBindFramebuffer(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBindRenderbuffer(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:371
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBindRenderbuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBindRenderbuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._glBindRenderbuffer(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBindVertexArray(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:292
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBindVertexArray ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBindVertexArray().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glBindVertexArray(0);

com.mojang.blaze3d.platform.GlStateManager#_glBlitFrameBuffer(int,int,int,int,int,int,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:366
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBlitFrameBuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBlitFramebuffer().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • int p
  • int q
  • int r

ตัวอย่างใช้งาน

GlStateManager._glBlitFrameBuffer(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBufferData(int,ByteBuffer,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:297
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBufferData ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBufferData().

Parameters

  • int i
  • ByteBuffer byteBuffer
  • int j

ตัวอย่างใช้งาน

ByteBuffer byteBuffer = ...;
GlStateManager._glBufferData(0, byteBuffer, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBufferData(int,long,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:307
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBufferData ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBufferData().

Parameters

  • int i
  • long l
  • int j

ตัวอย่างใช้งาน

GlStateManager._glBufferData(0, 0L, 0);

com.mojang.blaze3d.platform.GlStateManager#_glBufferSubData(int,int,ByteBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:302
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glBufferSubData ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glBufferSubData().

Parameters

  • int i
  • int j
  • ByteBuffer byteBuffer

ตัวอย่างใช้งาน

ByteBuffer byteBuffer = ...;
GlStateManager._glBufferSubData(0, 0, byteBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glClientWaitSync(long,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:763
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _glClientWaitSync ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glClientWaitSync(). คืนค่า: GL32.glClientWaitSync(l, i, m).

Parameters

  • long l
  • int i
  • long m

ตัวอย่างใช้งาน

int result = GlStateManager._glClientWaitSync(0L, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_glCopyTexSubImage2D(int,int,int,int,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:342
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glCopyTexSubImage2D ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glCopyTexSubImage2D().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • int p

ตัวอย่างใช้งาน

GlStateManager._glCopyTexSubImage2D(0, 0, 0, 0, 0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glDeleteBuffers(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:329
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDeleteBuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glBindBuffer(), glBufferData(), setValue(), glDeleteBuffers().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glDeleteBuffers(0);

com.mojang.blaze3d.platform.GlStateManager#_glDeleteFramebuffers(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:381
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDeleteFramebuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glDeleteFramebuffers().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glDeleteFramebuffers(0);

com.mojang.blaze3d.platform.GlStateManager#_glDeleteRenderbuffers(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:376
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDeleteRenderbuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glDeleteRenderbuffers().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glDeleteRenderbuffers(0);

com.mojang.blaze3d.platform.GlStateManager#_glDeleteSync(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:768
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDeleteSync ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glDeleteSync().

Parameters

  • long l

ตัวอย่างใช้งาน

GlStateManager._glDeleteSync(0L);

com.mojang.blaze3d.platform.GlStateManager#_glDeleteVertexArrays(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:347
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDeleteVertexArrays ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glDeleteVertexArrays().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glDeleteVertexArrays(0);

com.mojang.blaze3d.platform.GlStateManager#_glDrawPixels(int,int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:698
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glDrawPixels ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glDrawPixels().

Parameters

  • int i
  • int j
  • int k
  • int l
  • long m

ตัวอย่างใช้งาน

GlStateManager._glDrawPixels(0, 0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_glFenceSync(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:758
  • Modifiers: public static
  • Return: long

คืออะไร

ดำเนินการ _glFenceSync ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glFenceSync(). คืนค่า: GL32.glFenceSync(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

long result = GlStateManager._glFenceSync(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glFramebufferRenderbuffer(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:401
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glFramebufferRenderbuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glFramebufferRenderbuffer().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager._glFramebufferRenderbuffer(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glFramebufferTexture2D(int,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:411
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glFramebufferTexture2D ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glFramebufferTexture2D().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m

ตัวอย่างใช้งาน

GlStateManager._glFramebufferTexture2D(0, 0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glGenBuffers()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:275
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _glGenBuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), setValue(), glGenBuffers(). คืนค่า: GL15.glGenBuffers().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager._glGenBuffers();

com.mojang.blaze3d.platform.GlStateManager#_glGenVertexArrays()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:282
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _glGenVertexArrays ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glGenVertexArrays(). คืนค่า: GL30.glGenVertexArrays().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager._glGenVertexArrays();

com.mojang.blaze3d.platform.GlStateManager#_glGetAttribLocation(int,CharSequence)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:265
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _glGetAttribLocation ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glGetAttribLocation(). คืนค่า: GL20.glGetAttribLocation(i, charSequence).

Parameters

  • int i
  • CharSequence charSequence

ตัวอย่างใช้งาน

CharSequence charSequence = ...;
int result = GlStateManager._glGetAttribLocation(0, charSequence);

com.mojang.blaze3d.platform.GlStateManager#_glGetUniformLocation(int,CharSequence)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:200
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ _glGetUniformLocation ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glGetUniformLocation(). คืนค่า: GL20.glGetUniformLocation(i, charSequence).

Parameters

  • int i
  • CharSequence charSequence

ตัวอย่างใช้งาน

CharSequence charSequence = ...;
int result = GlStateManager._glGetUniformLocation(0, charSequence);

com.mojang.blaze3d.platform.GlStateManager#_glMapBuffer(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:312
  • Modifiers: public static
  • Return: ByteBuffer

คืออะไร

ดำเนินการ _glMapBuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glMapBuffer(). คืนค่า: GL15.glMapBuffer(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

ByteBuffer result = GlStateManager._glMapBuffer(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glMapBufferRange(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:318
  • Modifiers: public static
  • Return: ByteBuffer

คืออะไร

ดำเนินการ _glMapBufferRange ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glMapBufferRange(). คืนค่า: GL30.glMapBufferRange(i, j, k, l).

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

ByteBuffer result = GlStateManager._glMapBufferRange(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glRenderbufferStorage(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:396
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glRenderbufferStorage ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glRenderbufferStorage().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager._glRenderbufferStorage(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glUniform1(int,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:215
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform1 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform1fv().

Parameters

  • int i
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniform1(0, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform1(int,IntBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:205
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform1 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform1iv().

Parameters

  • int i
  • IntBuffer intBuffer

ตัวอย่างใช้งาน

IntBuffer intBuffer = ...;
GlStateManager._glUniform1(0, intBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform1i(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:210
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform1i ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform1i().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._glUniform1i(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_glUniform2(int,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:225
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform2 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform2fv().

Parameters

  • int i
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniform2(0, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform2(int,IntBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:220
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform2 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform2iv().

Parameters

  • int i
  • IntBuffer intBuffer

ตัวอย่างใช้งาน

IntBuffer intBuffer = ...;
GlStateManager._glUniform2(0, intBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform3(int,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:235
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform3 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform3fv().

Parameters

  • int i
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniform3(0, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform3(int,IntBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:230
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform3 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform3iv().

Parameters

  • int i
  • IntBuffer intBuffer

ตัวอย่างใช้งาน

IntBuffer intBuffer = ...;
GlStateManager._glUniform3(0, intBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform4(int,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:245
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform4 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform4fv().

Parameters

  • int i
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniform4(0, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniform4(int,IntBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:240
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniform4 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniform4iv().

Parameters

  • int i
  • IntBuffer intBuffer

ตัวอย่างใช้งาน

IntBuffer intBuffer = ...;
GlStateManager._glUniform4(0, intBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniformMatrix2(int,boolean,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:250
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniformMatrix2 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniformMatrix2fv().

Parameters

  • int i
  • boolean bl
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniformMatrix2(0, true, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniformMatrix3(int,boolean,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:255
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniformMatrix3 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniformMatrix3fv().

Parameters

  • int i
  • boolean bl
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniformMatrix3(0, true, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUniformMatrix4(int,boolean,FloatBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:260
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUniformMatrix4 ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUniformMatrix4fv().

Parameters

  • int i
  • boolean bl
  • FloatBuffer floatBuffer

ตัวอย่างใช้งาน

FloatBuffer floatBuffer = ...;
GlStateManager._glUniformMatrix4(0, true, floatBuffer);

com.mojang.blaze3d.platform.GlStateManager#_glUnmapBuffer(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:324
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUnmapBuffer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glUnmapBuffer().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glUnmapBuffer(0);

com.mojang.blaze3d.platform.GlStateManager#_glUseProgram(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:180
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _glUseProgram ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glUseProgram().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._glUseProgram(0);

com.mojang.blaze3d.platform.GlStateManager#_logicOp(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:505
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _logicOp ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glLogicOp().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._logicOp(0);

com.mojang.blaze3d.platform.GlStateManager#_pixelStore(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:728
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _pixelStore ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glPixelStorei().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._pixelStore(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_polygonMode(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:471
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _polygonMode ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glPolygonMode().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager._polygonMode(0, 0);

com.mojang.blaze3d.platform.GlStateManager#_polygonOffset(float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:486
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _polygonOffset ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glPolygonOffset().

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

GlStateManager._polygonOffset(0.0F, 0.0F);

com.mojang.blaze3d.platform.GlStateManager#_readPixels(int,int,int,int,int,int,ByteBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:733
  • Modifiers: public static
  • Return: void

คืออะไร

อ่าน Pixels

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glReadPixels().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • ByteBuffer byteBuffer

ตัวอย่างใช้งาน

ByteBuffer byteBuffer = ...;
GlStateManager._readPixels(0, 0, 0, 0, 0, 0, byteBuffer);

com.mojang.blaze3d.platform.GlStateManager#_readPixels(int,int,int,int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:738
  • Modifiers: public static
  • Return: void

คืออะไร

อ่าน Pixels

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glReadPixels().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • long o

ตัวอย่างใช้งาน

GlStateManager._readPixels(0, 0, 0, 0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_scissorBox(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:67
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _scissorBox ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glScissor().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager._scissorBox(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_stencilFunc(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:647
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _stencilFunc ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glStencilFunc().

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GlStateManager._stencilFunc(0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_stencilMask(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:657
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _stencilMask ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glStencilMask().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager._stencilMask(0);

com.mojang.blaze3d.platform.GlStateManager#_stencilOp(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:665
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _stencilOp ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glStencilOp().

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GlStateManager._stencilOp(0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_texImage2D(int,int,int,int,int,int,int,int,IntBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:591
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _texImage2D ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glTexImage2D().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • int p
  • IntBuffer intBuffer

ตัวอย่างใช้งาน

IntBuffer intBuffer = ...;
GlStateManager._texImage2D(0, 0, 0, 0, 0, 0, 0, 0, intBuffer);

com.mojang.blaze3d.platform.GlStateManager#_texParameter(int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:521
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _texParameter ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glTexParameterf().

Parameters

  • int i
  • int j
  • float f

ตัวอย่างใช้งาน

GlStateManager._texParameter(0, 0, 0.0F);

com.mojang.blaze3d.platform.GlStateManager#_texParameter(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:526
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _texParameter ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glTexParameteri().

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GlStateManager._texParameter(0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#_texSubImage2D(int,int,int,int,int,int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:596
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _texSubImage2D ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glTexSubImage2D().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • int p
  • long q

ตัวอย่างใช้งาน

GlStateManager._texSubImage2D(0, 0, 0, 0, 0, 0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_vertexAttribIPointer(int,int,int,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:708
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _vertexAttribIPointer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glVertexAttribIPointer().

Parameters

  • int i
  • int j
  • int k
  • int l
  • long m

ตัวอย่างใช้งาน

GlStateManager._vertexAttribIPointer(0, 0, 0, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_vertexAttribPointer(int,int,int,boolean,int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:703
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _vertexAttribPointer ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glVertexAttribPointer().

Parameters

  • int i
  • int j
  • int k
  • boolean bl
  • int l
  • long m

ตัวอย่างใช้งาน

GlStateManager._vertexAttribPointer(0, 0, 0, true, 0, 0L);

com.mojang.blaze3d.platform.GlStateManager#_viewport(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:627
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _viewport ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), glViewport().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager._viewport(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#getBoundFramebuffer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:416
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Bound Framebuffer

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), _getInteger(). คืนค่า: _getInteger(36006).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.getBoundFramebuffer();

com.mojang.blaze3d.platform.GlStateManager#glActiveTexture(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:421
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glActiveTexture ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager.glActiveTexture(0);

com.mojang.blaze3d.platform.GlStateManager#glAttachShader(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:138
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glAttachShader ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

GlStateManager.glAttachShader(0, 0);

com.mojang.blaze3d.platform.GlStateManager#glBlendFuncSeparate(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:426
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glBlendFuncSeparate ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

GlStateManager.glBlendFuncSeparate(0, 0, 0, 0);

com.mojang.blaze3d.platform.GlStateManager#glCheckFramebufferStatus(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:406
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glCheckFramebufferStatus ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(). คืนค่า: GL30.glCheckFramebufferStatus(i).

Parameters

  • int i

ตัวอย่างใช้งาน

int result = GlStateManager.glCheckFramebufferStatus(0);

com.mojang.blaze3d.platform.GlStateManager#glCompileShader(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:170
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glCompileShader ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager.glCompileShader(0);

com.mojang.blaze3d.platform.GlStateManager#glCreateProgram()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:185
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glCreateProgram ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glCreateProgram().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.glCreateProgram();

com.mojang.blaze3d.platform.GlStateManager#glCreateShader(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:148
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glCreateShader ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glCreateShader(i).

Parameters

  • int i

ตัวอย่างใช้งาน

int result = GlStateManager.glCreateShader(0);

com.mojang.blaze3d.platform.GlStateManager#glDeleteProgram(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:190
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glDeleteProgram ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager.glDeleteProgram(0);

com.mojang.blaze3d.platform.GlStateManager#glDeleteShader(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:143
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glDeleteShader ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager.glDeleteShader(0);

com.mojang.blaze3d.platform.GlStateManager#glGenFramebuffers()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:386
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glGenFramebuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(). คืนค่า: GL30.glGenFramebuffers().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.glGenFramebuffers();

com.mojang.blaze3d.platform.GlStateManager#glGenRenderbuffers()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:391
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glGenRenderbuffers ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(). คืนค่า: GL30.glGenRenderbuffers().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.glGenRenderbuffers();

com.mojang.blaze3d.platform.GlStateManager#glGetProgrami(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:133
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glGetProgrami ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glGetProgrami(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

int result = GlStateManager.glGetProgrami(0, 0);

com.mojang.blaze3d.platform.GlStateManager#glGetProgramInfoLog(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:436
  • Modifiers: public static
  • Return: String

คืออะไร

ดำเนินการ glGetProgramInfoLog ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glGetProgramInfoLog(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

String result = GlStateManager.glGetProgramInfoLog(0, 0);

com.mojang.blaze3d.platform.GlStateManager#glGetShaderi(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:175
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ glGetShaderi ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glGetShaderi(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

int result = GlStateManager.glGetShaderi(0, 0);

com.mojang.blaze3d.platform.GlStateManager#glGetShaderInfoLog(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:431
  • Modifiers: public static
  • Return: String

คืออะไร

ดำเนินการ glGetShaderInfoLog ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(). คืนค่า: GL20.glGetShaderInfoLog(i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

String result = GlStateManager.glGetShaderInfoLog(0, 0);

com.mojang.blaze3d.platform.GlStateManager#glLinkProgram(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:195
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glLinkProgram ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread().

Parameters

  • int i

ตัวอย่างใช้งาน

GlStateManager.glLinkProgram(0);

com.mojang.blaze3d.platform.GlStateManager#glShaderSource(int,String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:153
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ glShaderSource ตาม implementation ของ GlStateManager

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: assertOnRenderThread(), getBytes(), memAlloc(), put(), flip(), stackPush(), mallocPointer(), nglShaderSource().

Parameters

  • int i
  • String string

ตัวอย่างใช้งาน

GlStateManager.glShaderSource(0, "value");

com.mojang.blaze3d.platform.GlStateManager#setupGui3DDiffuseLighting(Vector3f,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:452
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupGui3DDiffuseLighting ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), scaling(), rotateYXZ(), setupLevelDiffuseLighting(). สร้างออบเจ็กต์: Matrix4f.

Parameters

  • Vector3f vector3f
  • Vector3f vector3f2

ตัวอย่างใช้งาน

Vector3f vector3f = ...;
Vector3f vector3f2 = ...;
GlStateManager.setupGui3DDiffuseLighting(vector3f, vector3f2);

com.mojang.blaze3d.platform.GlStateManager#setupGuiFlatDiffuseLighting(Vector3f,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:446
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupGuiFlatDiffuseLighting ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), rotationY(), rotateX(), setupLevelDiffuseLighting(). สร้างออบเจ็กต์: Matrix4f.

Parameters

  • Vector3f vector3f
  • Vector3f vector3f2

ตัวอย่างใช้งาน

Vector3f vector3f = ...;
Vector3f vector3f2 = ...;
GlStateManager.setupGuiFlatDiffuseLighting(vector3f, vector3f2);

com.mojang.blaze3d.platform.GlStateManager#setupLevelDiffuseLighting(Vector3f,Vector3f,Matrix4f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:441
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupLevelDiffuseLighting ตาม implementation ของ GlStateManager

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), setShaderLights(), transformDirection(). สร้างออบเจ็กต์: Vector3f.

Parameters

  • Vector3f vector3f
  • Vector3f vector3f2
  • Matrix4f matrix4f

ตัวอย่างใช้งาน

Vector3f vector3f = ...;
Vector3f vector3f2 = ...;
Matrix4f matrix4f = ...;
GlStateManager.setupLevelDiffuseLighting(vector3f, vector3f2, matrix4f);

com.mojang.blaze3d.platform.GlStateManager#upload(int,int,int,int,int,NativeImage.Format,IntBuffer,Consumer<IntBuffer>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:601
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ GlStateManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOnRenderThreadOrInit(), recordRenderCall(), _upload().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • NativeImage.Format format
  • IntBuffer intBuffer
  • Consumer<IntBuffer> consumer

ตัวอย่างใช้งาน

NativeImage.Format format = ...;
IntBuffer intBuffer = ...;
Consumer<IntBuffer> consumer = ...;
GlStateManager.upload(0, 0, 0, 0, 0, format, intBuffer, consumer);

GlStateManager$Viewport

  • Full name: com.mojang.blaze3d.platform.GlStateManager$Viewport
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/GlStateManager.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.platform.GlStateManager$Viewport#height()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:985
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ height ตาม implementation ของ GlStateManager$Viewport

ทำงานยังไง

คืนค่า: INSTANCE.height.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.Viewport.height();

com.mojang.blaze3d.platform.GlStateManager$Viewport#width()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:981
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ width ตาม implementation ของ GlStateManager$Viewport

ทำงานยังไง

คืนค่า: INSTANCE.width.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.Viewport.width();

com.mojang.blaze3d.platform.GlStateManager$Viewport#x()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:973
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ x ตาม implementation ของ GlStateManager$Viewport

ทำงานยังไง

คืนค่า: INSTANCE.x.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.Viewport.x();

com.mojang.blaze3d.platform.GlStateManager$Viewport#y()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlStateManager.java:977
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ y ตาม implementation ของ GlStateManager$Viewport

ทำงานยังไง

คืนค่า: INSTANCE.y.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = GlStateManager.Viewport.y();

GlUtil

  • Full name: com.mojang.blaze3d.platform.GlUtil
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/GlUtil.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.GlUtil#allocateMemory(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:11
  • Modifiers: public static
  • Return: ByteBuffer

คืออะไร

ดำเนินการ allocateMemory ตาม implementation ของ GlUtil

ทำงานยังไง

เรียกต่อ: memAlloc(). คืนค่า: MemoryUtil.memAlloc(i).

Parameters

  • int i

ตัวอย่างใช้งาน

ByteBuffer result = GlUtil.allocateMemory(0);

com.mojang.blaze3d.platform.GlUtil#freeMemory(Buffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:15
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ freeMemory ตาม implementation ของ GlUtil

ทำงานยังไง

เรียกต่อ: memFree().

Parameters

  • Buffer buffer

ตัวอย่างใช้งาน

Buffer buffer = ...;
GlUtil.freeMemory(buffer);

com.mojang.blaze3d.platform.GlUtil#getCpuInfo()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:23
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Cpu Info

ทำงานยังไง

เรียกต่อ: _getCpuInfo(). คืนค่า: GLX._getCpuInfo().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GlUtil.getCpuInfo();

com.mojang.blaze3d.platform.GlUtil#getOpenGLVersion()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:31
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Open GLVersion

ทำงานยังไง

เรียกต่อ: _getString(). คืนค่า: GlStateManager._getString(7938).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GlUtil.getOpenGLVersion();

com.mojang.blaze3d.platform.GlUtil#getRenderer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:27
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Renderer

ทำงานยังไง

เรียกต่อ: _getString(). คืนค่า: GlStateManager._getString(7937).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GlUtil.getRenderer();

com.mojang.blaze3d.platform.GlUtil#getVendor()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GlUtil.java:19
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Vendor

ทำงานยังไง

เรียกต่อ: _getString(). คืนค่า: GlStateManager._getString(7936).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GlUtil.getVendor();

GLX

  • Full name: com.mojang.blaze3d.platform.GLX
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/GLX.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.GLX#_getCpuInfo()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:104
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Cpu Info

ทำงานยังไง

คืนค่า: cpuInfo == null ? "<unknown>" : cpuInfo.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GLX._getCpuInfo();

com.mojang.blaze3d.platform.GLX#_getLWJGLVersion()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:55
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า LWJGLVersion

ทำงานยังไง

เรียกต่อ: getVersion(). คืนค่า: Version.getVersion().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GLX._getLWJGLVersion();

com.mojang.blaze3d.platform.GLX#_getRefreshRate(Window)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:44
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Refresh Rate

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glfwGetWindowMonitor(), getWindow(), glfwGetPrimaryMonitor(), glfwGetVideoMode(), refreshRate(). คืนค่า: gLFWVidMode == null ? 0 : gLFWVidMode.refreshRate().

Parameters

  • Window window

ตัวอย่างใช้งาน

Window window = ...;
int result = GLX._getRefreshRate(window);

com.mojang.blaze3d.platform.GLX#_init(int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:93
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ _init ตาม implementation ของ GLX

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getHardware(), getProcessor(), format(), getLogicalProcessorCount(), getProcessorIdentifier(), getName(), replaceAll(), enableDebugCallback(). สร้างออบเจ็กต์: SystemInfo.

Parameters

  • int i
  • boolean bl

ตัวอย่างใช้งาน

GLX._init(0, true);

com.mojang.blaze3d.platform.GLX#_initGlfw()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:59
  • Modifiers: public static
  • Return: LongSupplier

คืออะไร

ดำเนินการ _initGlfw ตาม implementation ของ GLX

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: checkGlfwError(), format(), newArrayList(), glfwSetErrorCallback(), memUTF8(), add(), glfwInit(), on(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: longSupplier.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

LongSupplier result = GLX._initGlfw();

com.mojang.blaze3d.platform.GLX#_renderCrosshair(int,boolean,boolean,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:108
  • Modifiers: public static
  • Return: void

คืออะไร

เรนเดอร์ Crosshair

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), _depthMask(), _disableCull(), setShader(), renderThreadTesselator(), begin(), lineWidth(), addVertex().

Parameters

  • int i
  • boolean bl
  • boolean bl2
  • boolean bl3

ตัวอย่างใช้งาน

GLX._renderCrosshair(0, true, true, true);

com.mojang.blaze3d.platform.GLX#_setGlfwErrorCallback(GLFWErrorCallbackI)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:82
  • Modifiers: public static
  • Return: void

คืออะไร

กำหนดค่า Glfw Error Callback

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: glfwSetErrorCallback(), free().

Parameters

  • GLFWErrorCallbackI gLFWErrorCallbackI

ตัวอย่างใช้งาน

GLFWErrorCallbackI gLFWErrorCallbackI = ...;
GLX._setGlfwErrorCallback(gLFWErrorCallbackI);

com.mojang.blaze3d.platform.GLX#_shouldClose(Window)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:89
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Close

ทำงานยังไง

เรียกต่อ: glfwWindowShouldClose(), getWindow(). คืนค่า: GLFW.glfwWindowShouldClose(window.getWindow()).

Parameters

  • Window window

ตัวอย่างใช้งาน

Window window = ...;
boolean result = GLX._shouldClose(window);

com.mojang.blaze3d.platform.GLX#getOpenGLVersionString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:37
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Open GLVersion String

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glfwGetCurrentContext(), _getString().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = GLX.getOpenGLVersionString();

com.mojang.blaze3d.platform.GLX#make(Supplier<T>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:157
  • Modifiers: public static
  • Return: T

คืออะไร

สร้าง make

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: supplier.get().

Parameters

  • Supplier<T> supplier

ตัวอย่างใช้งาน

Supplier<T> supplier = ...;
T result = GLX.make(supplier);

com.mojang.blaze3d.platform.GLX#make(T,Consumer<T>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/GLX.java:161
  • Modifiers: public static
  • Return: T

คืออะไร

สร้าง make

ทำงานยังไง

เรียกต่อ: accept(). คืนค่า: object.

Parameters

  • T object
  • Consumer<T> consumer

ตัวอย่างใช้งาน

T object = ...;
Consumer<T> consumer = ...;
T result = GLX.make(object, consumer);

IconSet

  • Full name: com.mojang.blaze3d.platform.IconSet
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/IconSet.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.platform.IconSet#getMacIcon(PackResources)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/IconSet.java:34
  • Modifiers: public
  • Return: IoSupplier<InputStream>

คืออะไร

อ่านค่า Mac Icon

ทำงานยังไง

เรียกต่อ: getFile(). คืนค่า: this.getFile(packResources, "minecraft.icns").

Parameters

  • PackResources packResources

Throws

  • IOException

ตัวอย่างใช้งาน

IconSet instance = ...;
PackResources packResources = ...;
IoSupplier<InputStream> result = instance.getMacIcon(packResources);

com.mojang.blaze3d.platform.IconSet#getStandardIcons(PackResources)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/IconSet.java:24
  • Modifiers: public
  • Return: List<IoSupplier<InputStream>>

คืออะไร

อ่านค่า Standard Icons

ทำงานยังไง

เรียกต่อ: of(), getFile().

Parameters

  • PackResources packResources

Throws

  • IOException

ตัวอย่างใช้งาน

IconSet instance = ...;
PackResources packResources = ...;
List<IoSupplier<InputStream>> result = instance.getStandardIcons(packResources);

InputConstants

  • Full name: com.mojang.blaze3d.platform.InputConstants
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/InputConstants.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.InputConstants#getKey(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:161
  • Modifiers: public static
  • Return: InputConstants.Key

คืออะไร

อ่านค่า Key

ทำงานยังไง

เรียกต่อ: getOrCreate(). คืนค่า: i == -1 ? InputConstants.Type.SCANCODE.getOrCreate(j) : InputConstants.Type.KEYSYM.getOrCreate(i).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

InputConstants.Key result = InputConstants.getKey(0, 0);

com.mojang.blaze3d.platform.InputConstants#getKey(String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:165
  • Modifiers: public static
  • Return: InputConstants.Key

คืออะไร

อ่านค่า Key

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: containsKey(), get(), values(), startsWith(), substring(), length(), parseInt(), getOrCreate(). สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string

ตัวอย่างใช้งาน

InputConstants.Key result = InputConstants.getKey("value");

com.mojang.blaze3d.platform.InputConstants#grabOrReleaseMouse(long,int,double,double)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:207
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ grabOrReleaseMouse ตาม implementation ของ InputConstants

ทำงานยังไง

เรียกต่อ: glfwSetCursorPos(), glfwSetInputMode().

Parameters

  • long l
  • int i
  • double d
  • double e

ตัวอย่างใช้งาน

InputConstants.grabOrReleaseMouse(0L, 0, 0.0D, 0.0D);

com.mojang.blaze3d.platform.InputConstants#isKeyDown(long,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:185
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Key Down

ทำงานยังไง

เรียกต่อ: glfwGetKey(). คืนค่า: GLFW.glfwGetKey(l, i) == 1.

Parameters

  • long l
  • int i

ตัวอย่างใช้งาน

boolean result = InputConstants.isKeyDown(0L, 0);

com.mojang.blaze3d.platform.InputConstants#isRawMouseInputSupported()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:212
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Raw Mouse Input Supported

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: invokeExact(). สร้างออบเจ็กต์: RuntimeException. คืนค่า: GLFW_RAW_MOUSE_MOTION_SUPPORTED != null && (boolean)GLFW_RAW_MOUSE_MOTION_SUPPORTED.invokeExact().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

boolean result = InputConstants.isRawMouseInputSupported();

com.mojang.blaze3d.platform.InputConstants#setupKeyboardCallbacks(long,GLFWKeyCallbackI,GLFWCharModsCallbackI)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:189
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupKeyboardCallbacks ตาม implementation ของ InputConstants

ทำงานยังไง

เรียกต่อ: glfwSetKeyCallback(), glfwSetCharModsCallback().

Parameters

  • long l
  • GLFWKeyCallbackI gLFWKeyCallbackI
  • GLFWCharModsCallbackI gLFWCharModsCallbackI

ตัวอย่างใช้งาน

GLFWKeyCallbackI gLFWKeyCallbackI = ...;
GLFWCharModsCallbackI gLFWCharModsCallbackI = ...;
InputConstants.setupKeyboardCallbacks(0L, gLFWKeyCallbackI, gLFWCharModsCallbackI);

com.mojang.blaze3d.platform.InputConstants#setupMouseCallbacks(long,GLFWCursorPosCallbackI,GLFWMouseButtonCallbackI,GLFWScrollCallbackI,GLFWDropCallbackI)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:194
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupMouseCallbacks ตาม implementation ของ InputConstants

ทำงานยังไง

เรียกต่อ: glfwSetCursorPosCallback(), glfwSetMouseButtonCallback(), glfwSetScrollCallback(), glfwSetDropCallback().

Parameters

  • long l
  • GLFWCursorPosCallbackI gLFWCursorPosCallbackI
  • GLFWMouseButtonCallbackI gLFWMouseButtonCallbackI
  • GLFWScrollCallbackI gLFWScrollCallbackI
  • GLFWDropCallbackI gLFWDropCallbackI

ตัวอย่างใช้งาน

GLFWCursorPosCallbackI gLFWCursorPosCallbackI = ...;
GLFWMouseButtonCallbackI gLFWMouseButtonCallbackI = ...;
GLFWScrollCallbackI gLFWScrollCallbackI = ...;
GLFWDropCallbackI gLFWDropCallbackI = ...;
InputConstants.setupMouseCallbacks(0L, gLFWCursorPosCallbackI, gLFWMouseButtonCallbackI, gLFWScrollCallbackI, gLFWDropCallbackI);

com.mojang.blaze3d.platform.InputConstants#updateRawMouseInput(long,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:220
  • Modifiers: public static
  • Return: void

คืออะไร

อัปเดต Raw Mouse Input

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRawMouseInputSupported(), glfwSetInputMode().

Parameters

  • long l
  • boolean bl

ตัวอย่างใช้งาน

InputConstants.updateRawMouseInput(0L, true);

InputConstants$Key

  • Full name: com.mojang.blaze3d.platform.InputConstants$Key
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/InputConstants.java
  • Type: class
  • Modifiers: public static final

com.mojang.blaze3d.platform.InputConstants$Key#equals(Object)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:286
  • Modifiers: public
  • Return: boolean

คืออะไร

เปรียบเทียบความเท่ากัน equals

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: value, type. เรียกต่อ: getClass(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • Object object

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
Object object = ...;
boolean result = instance.equals(object);

com.mojang.blaze3d.platform.InputConstants$Key#getDisplayName()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:274
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Display Name

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: (Component)this.displayName.get().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
Component result = instance.getDisplayName();

com.mojang.blaze3d.platform.InputConstants$Key#getName()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:270
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
String result = instance.getName();

com.mojang.blaze3d.platform.InputConstants$Key#getNumericKeyValue()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:278
  • Modifiers: public
  • Return: OptionalInt

คืออะไร

อ่านค่า Numeric Key Value

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: of(), empty(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
OptionalInt result = instance.getNumericKeyValue();

com.mojang.blaze3d.platform.InputConstants$Key#getType()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:262
  • Modifiers: public
  • Return: InputConstants.Type

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: this.type.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
InputConstants.Type result = instance.getType();

com.mojang.blaze3d.platform.InputConstants$Key#getValue()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:266
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Value

ทำงานยังไง

คืนค่า: this.value.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
int result = instance.getValue();

com.mojang.blaze3d.platform.InputConstants$Key#hashCode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:298
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ hashCode ตาม implementation ของ InputConstants$Key

ทำงานยังไง

เรียกต่อ: hash(). คืนค่า: Objects.hash(this.type, this.value).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
int result = instance.hashCode();

com.mojang.blaze3d.platform.InputConstants$Key#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:303
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ InputConstants$Key

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

InputConstants.Key instance = ...;
String result = instance.toString();

InputConstants$Type

  • Full name: com.mojang.blaze3d.platform.InputConstants$Type
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/InputConstants.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.platform.InputConstants$Type#getOrCreate(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/InputConstants.java:343
  • Modifiers: public
  • Return: InputConstants.Key

คืออะไร

อ่านค่า Or Create

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: computeIfAbsent(), Key(). สร้างออบเจ็กต์: InputConstants.Key. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

InputConstants.Type instance = ...;
InputConstants.Key result = instance.getOrCreate(0);

Lighting

  • Full name: com.mojang.blaze3d.platform.Lighting
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/Lighting.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.Lighting#setupFor3DItems()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:30
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupFor3DItems ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setupGui3DDiffuseLighting().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Lighting.setupFor3DItems();

com.mojang.blaze3d.platform.Lighting#setupForEntityInInventory()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:34
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupForEntityInInventory ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setShaderLights().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Lighting.setupForEntityInInventory();

com.mojang.blaze3d.platform.Lighting#setupForEntityInInventory(Quaternionf)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:38
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupForEntityInInventory ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setShaderLights(), transform(). สร้างออบเจ็กต์: Vector3f.

Parameters

  • Quaternionf quaternionf

ตัวอย่างใช้งาน

Quaternionf quaternionf = ...;
Lighting.setupForEntityInInventory(quaternionf);

com.mojang.blaze3d.platform.Lighting#setupForFlatItems()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:26
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupForFlatItems ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setupGuiFlatDiffuseLighting().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Lighting.setupForFlatItems();

com.mojang.blaze3d.platform.Lighting#setupLevel()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupLevel ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setupLevelDiffuseLighting().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Lighting.setupLevel();

com.mojang.blaze3d.platform.Lighting#setupNetherLevel()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Lighting.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setupNetherLevel ตาม implementation ของ Lighting

ทำงานยังไง

เรียกต่อ: setupLevelDiffuseLighting().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Lighting.setupNetherLevel();

MacosUtil

  • Full name: com.mojang.blaze3d.platform.MacosUtil
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/MacosUtil.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.MacosUtil#clearResizableBit(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/MacosUtil.java:26
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Resizable Bit

ทำงานยังไง

เรียกต่อ: getNsWindow(), ifPresent(), getStyleMask(), send().

Parameters

  • long l

ตัวอย่างใช้งาน

MacosUtil.clearResizableBit(0L);

com.mojang.blaze3d.platform.MacosUtil#exitNativeFullscreen(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/MacosUtil.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ exitNativeFullscreen ตาม implementation ของ MacosUtil

ทำงานยังไง

เรียกต่อ: getNsWindow(), filter(), ifPresent().

Parameters

  • long l

ตัวอย่างใช้งาน

MacosUtil.exitNativeFullscreen(0L);

com.mojang.blaze3d.platform.MacosUtil#loadIcon(IoSupplier<InputStream>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/MacosUtil.java:50
  • Modifiers: public static
  • Return: void

คืออะไร

โหลด Icon

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: get(), getEncoder(), encodeToString(), readAllBytes(), getInstance(), sendProxy(), send().

Parameters

  • IoSupplier<InputStream> ioSupplier

Throws

  • IOException

ตัวอย่างใช้งาน

IoSupplier<InputStream> ioSupplier = ...;
MacosUtil.loadIcon(ioSupplier);

Monitor

  • Full name: com.mojang.blaze3d.platform.Monitor
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/Monitor.java
  • Type: class
  • Modifiers: public final

com.mojang.blaze3d.platform.Monitor#getCurrentMode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:66
  • Modifiers: public
  • Return: VideoMode

คืออะไร

อ่านค่า Current Mode

ทำงานยังไง

คืนค่า: this.currentMode.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
VideoMode result = instance.getCurrentMode();

com.mojang.blaze3d.platform.Monitor#getMode(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:78
  • Modifiers: public
  • Return: VideoMode

คืออะไร

อ่านค่า Mode

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.videoModes.get(i).

Parameters

  • int i

ตัวอย่างใช้งาน

Monitor instance = ...;
VideoMode result = instance.getMode(0);

com.mojang.blaze3d.platform.Monitor#getModeCount()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:82
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Mode Count

ทำงานยังไง

เรียกต่อ: size(). คืนค่า: this.videoModes.size().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
int result = instance.getModeCount();

com.mojang.blaze3d.platform.Monitor#getMonitor()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:86
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Monitor

ทำงานยังไง

คืนค่า: this.monitor.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
long result = instance.getMonitor();

com.mojang.blaze3d.platform.Monitor#getPreferredVidMode(Optional<VideoMode>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:48
  • Modifiers: public
  • Return: VideoMode

คืออะไร

อ่านค่า Preferred Vid Mode

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isPresent(), get(), equals(), getCurrentMode(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Optional<VideoMode> optional

ตัวอย่างใช้งาน

Monitor instance = ...;
Optional<VideoMode> optional = ...;
VideoMode result = instance.getPreferredVidMode(optional);

com.mojang.blaze3d.platform.Monitor#getVideoModeIndex(VideoMode)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:62
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Video Mode Index

ทำงานยังไง

เรียกต่อ: indexOf(). คืนค่า: this.videoModes.indexOf(videoMode).

Parameters

  • VideoMode videoMode

ตัวอย่างใช้งาน

Monitor instance = ...;
VideoMode videoMode = ...;
int result = instance.getVideoModeIndex(videoMode);

com.mojang.blaze3d.platform.Monitor#getX()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:70
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
int result = instance.getX();

com.mojang.blaze3d.platform.Monitor#getY()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:74
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
int result = instance.getY();

com.mojang.blaze3d.platform.Monitor#Monitor(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Monitor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: monitor, videoModes. เรียกต่อ: newArrayList(), refreshVideoModes().

Parameters

  • long l

ตัวอย่างใช้งาน

Monitor instance = new Monitor(0L);

com.mojang.blaze3d.platform.Monitor#refreshVideoModes()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:27
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ refreshVideoModes ตาม implementation ของ Monitor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: x, y, currentMode. เรียกต่อ: clear(), glfwGetVideoModes(), limit(), position(), getRedBits(), getGreenBits(), getBlueBits(), add(). สร้างออบเจ็กต์: VideoMode.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
instance.refreshVideoModes();

com.mojang.blaze3d.platform.Monitor#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Monitor.java:90
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ Monitor

ทำงานยังไง

เรียกต่อ: format(). คืนค่า: String.format(Locale.ROOT, "Monitor[%s %sx%s %s]", this.monitor, this.x, this.y, this.currentMode).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Monitor instance = ...;
String result = instance.toString();

MonitorCreator

  • Full name: com.mojang.blaze3d.platform.MonitorCreator
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/MonitorCreator.java
  • Type: interface
  • Modifiers: public

com.mojang.blaze3d.platform.MonitorCreator#createMonitor(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/MonitorCreator.java:8
  • Modifiers: ``
  • Return: Monitor

คืออะไร

สร้าง Monitor

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • long l

ตัวอย่างใช้งาน

MonitorCreator instance = ...;
Monitor result = instance.createMonitor(0L);

NativeImage

  • Full name: com.mojang.blaze3d.platform.NativeImage
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/NativeImage.java
  • Type: class
  • Modifiers: public final
  • Implements: AutoCloseable

com.mojang.blaze3d.platform.NativeImage#applyToAllPixels(IntUnaryOperator)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:263
  • Modifiers: public
  • Return: void

คืออะไร

นำไปใช้ To All Pixels

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: format(), checkAllocated(), memIntBuffer(), fromABGR(), get(), applyAsInt(), put(), toABGR(). สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • IntUnaryOperator intUnaryOperator

ตัวอย่างใช้งาน

NativeImage instance = ...;
IntUnaryOperator intUnaryOperator = ...;
instance.applyToAllPixels(intUnaryOperator);

com.mojang.blaze3d.platform.NativeImage#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:180
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: pixels. เรียกต่อ: nstbi_image_free(), nmemFree(), free().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.close();

com.mojang.blaze3d.platform.NativeImage#copyFrom(NativeImage)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:458
  • Modifiers: public
  • Return: void

คืออะไร

คัดลอก From

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: width. เรียกต่อ: format(), components(), checkAllocated(), memCopy(), min(), getWidth(), getHeight(). สร้างออบเจ็กต์: UnsupportedOperationException.

Parameters

  • NativeImage nativeImage

ตัวอย่างใช้งาน

NativeImage instance = ...;
NativeImage nativeImage = ...;
instance.copyFrom(nativeImage);

com.mojang.blaze3d.platform.NativeImage#copyFromFont(FT_Face,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:399
  • Modifiers: public
  • Return: boolean

คืออะไร

คัดลอก From Font

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: components(), checkError(), FT_Load_Glyph(), requireNonNull(), glyph(), bitmap(), pixel_mode(), width(). สร้างออบเจ็กต์: IllegalArgumentException, IllegalStateException. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • FT_Face fT_Face
  • int i

ตัวอย่างใช้งาน

NativeImage instance = ...;
FT_Face fT_Face = ...;
boolean result = instance.copyFromFont(fT_Face, 0);

com.mojang.blaze3d.platform.NativeImage#copyRect(int,int,int,int,int,int,boolean,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:488
  • Modifiers: public
  • Return: void

คืออะไร

คัดลอก Rect

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.copyRect(0, 0, 0, 0, 0, 0, true, true);

com.mojang.blaze3d.platform.NativeImage#copyRect(NativeImage,int,int,int,int,int,int,boolean,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:492
  • Modifiers: public
  • Return: void

คืออะไร

คัดลอก Rect

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getPixelABGR(), setPixelABGR().

Parameters

  • NativeImage nativeImage
  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

NativeImage instance = ...;
NativeImage nativeImage = ...;
instance.copyRect(nativeImage, 0, 0, 0, 0, 0, 0, true, true);

com.mojang.blaze3d.platform.NativeImage#downloadDepthBuffer(float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:378
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ downloadDepthBuffer ตาม implementation ของ NativeImage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), components(), checkAllocated(), setPackPixelStoreState(), _readPixels(). สร้างออบเจ็กต์: IllegalStateException.

Parameters

  • float f

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.downloadDepthBuffer(0.0F);

com.mojang.blaze3d.platform.NativeImage#downloadTexture(int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:364
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ downloadTexture ตาม implementation ของ NativeImage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: assertOnRenderThread(), checkAllocated(), setPackPixelStoreState(), _getTexImage(), glFormat(), hasAlpha(), getHeight(), getWidth().

Parameters

  • int i
  • boolean bl

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.downloadTexture(0, true);

com.mojang.blaze3d.platform.NativeImage#drawPixels()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:389
  • Modifiers: public
  • Return: void

คืออะไร

วาด Pixels

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), setUnpackPixelStoreState(), _glDrawPixels(), glFormat().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.drawPixels();

com.mojang.blaze3d.platform.NativeImage#fillRect(int,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:480
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fillRect ตาม implementation ของ NativeImage

ทำงานยังไง

มีการวนลูป. เรียกต่อ: setPixel().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.fillRect(0, 0, 0, 0, 0);

com.mojang.blaze3d.platform.NativeImage#flipY()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:503
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flipY ตาม implementation ของ NativeImage

ทำงานยังไง

มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: checkAllocated(), components(), getWidth(), nmemAlloc(), getHeight(), memCopy(), nmemFree().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.flipY();

com.mojang.blaze3d.platform.NativeImage#format()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:203
  • Modifiers: public
  • Return: NativeImage.Format

คืออะไร

ดำเนินการ format ตาม implementation ของ NativeImage

ทำงานยังไง

คืนค่า: this.format.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
NativeImage.Format result = instance.format();

com.mojang.blaze3d.platform.NativeImage#getHeight()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:199
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Height

ทำงานยังไง

คืนค่า: this.height.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
int result = instance.getHeight();

com.mojang.blaze3d.platform.NativeImage#getLuminanceOrAlpha(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:300
  • Modifiers: public
  • Return: byte

คืออะไร

อ่านค่า Luminance Or Alpha

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasLuminanceOrAlpha(), format(), isOutsideBounds(), bounds(), components(), luminanceOrAlphaOffset(), memGetByte(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: MemoryUtil.memGetByte(this.pixels + k).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

NativeImage instance = ...;
byte result = instance.getLuminanceOrAlpha(0, 0);

com.mojang.blaze3d.platform.NativeImage#getPixel(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:221
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Pixel

ทำงานยังไง

เรียกต่อ: fromABGR(), getPixelABGR(). คืนค่า: ARGB.fromABGR(this.getPixelABGR(i, j)).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

NativeImage instance = ...;
int result = instance.getPixel(0, 0);

com.mojang.blaze3d.platform.NativeImage#getPixels()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:290
  • Modifiers: public
  • Return: int[]

คืออะไร

อ่านค่า Pixels

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getPixelsABGR(), fromABGR(). คืนค่า: is.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
int[] result = instance.getPixels();

com.mojang.blaze3d.platform.NativeImage#getPixelsABGR()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:279
  • Modifiers: public
  • Return: int[]

คืออะไร

อ่านค่า Pixels ABGR

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: format(), checkAllocated(), memIntBuffer(), get(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: is.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
int[] result = instance.getPixelsABGR();

com.mojang.blaze3d.platform.NativeImage#getWidth()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:195
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Width

ทำงานยังไง

คืนค่า: this.width.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
int result = instance.getWidth();

com.mojang.blaze3d.platform.NativeImage#makePixelArray()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:313
  • Modifiers: public
  • Return: int[]

คืออะไร

สร้าง Pixel Array

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: checkAllocated(), getWidth(), getHeight(), getPixel(). สร้างออบเจ็กต์: UnsupportedOperationException. คืนค่า: is.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
int[] result = instance.makePixelArray();

com.mojang.blaze3d.platform.NativeImage#mappedCopy(IntUnaryOperator)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:243
  • Modifiers: public
  • Return: NativeImage

คืออะไร

ดำเนินการ mappedCopy ตาม implementation ของ NativeImage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: format(), checkAllocated(), memIntBuffer(), fromABGR(), get(), applyAsInt(), put(), toABGR(). สร้างออบเจ็กต์: IllegalArgumentException, NativeImage. คืนค่า: nativeImage.

Parameters

  • IntUnaryOperator intUnaryOperator

ตัวอย่างใช้งาน

NativeImage instance = ...;
IntUnaryOperator intUnaryOperator = ...;
NativeImage result = instance.mappedCopy(intUnaryOperator);

com.mojang.blaze3d.platform.NativeImage#NativeImage(int,int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:54
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NativeImage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • int j
  • boolean bl

ตัวอย่างใช้งาน

NativeImage instance = new NativeImage(0, 0, true);

com.mojang.blaze3d.platform.NativeImage#NativeImage(NativeImage.Format,int,int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:58
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NativeImage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: format, width, height, size, useStbFree, pixels. เรียกต่อ: components(), nmemCalloc(), nmemAlloc(), malloc(). สร้างออบเจ็กต์: IllegalStateException, IllegalArgumentException.

Parameters

  • NativeImage.Format format
  • int i
  • int j
  • boolean bl

ตัวอย่างใช้งาน

NativeImage.Format format = ...;
NativeImage instance = new NativeImage(format, 0, 0, true);

com.mojang.blaze3d.platform.NativeImage#read(byte[])

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:123
  • Modifiers: public static
  • Return: NativeImage

คืออะไร

อ่าน read

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: stackGet(), getPointer(), memAlloc(), putAndRead(), memFree(), stackPush(), malloc(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • byte[] bs

Throws

  • IOException

ตัวอย่างใช้งาน

byte[] bs = ...;
NativeImage result = NativeImage.read(bs);

com.mojang.blaze3d.platform.NativeImage#read(ByteBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:119
  • Modifiers: public static
  • Return: NativeImage

คืออะไร

อ่าน read

ทำงานยังไง

คืนค่า: read(NativeImage.Format.RGBA, byteBuffer).

Parameters

  • ByteBuffer byteBuffer

Throws

  • IOException

ตัวอย่างใช้งาน

ByteBuffer byteBuffer = ...;
NativeImage result = NativeImage.read(byteBuffer);

com.mojang.blaze3d.platform.NativeImage#read(InputStream)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:102
  • Modifiers: public static
  • Return: NativeImage

คืออะไร

อ่าน read

ทำงานยังไง

คืนค่า: read(NativeImage.Format.RGBA, inputStream).

Parameters

  • InputStream inputStream

Throws

  • IOException

ตัวอย่างใช้งาน

InputStream inputStream = ...;
NativeImage result = NativeImage.read(inputStream);

com.mojang.blaze3d.platform.NativeImage#read(NativeImage.Format,ByteBuffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:148
  • Modifiers: public static
  • Return: NativeImage

คืออะไร

อ่าน read

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: supportedByStb(), memAddress(), validateHeader(), stackPush(), mallocInt(), stbi_load_from_memory(), stbi_failure_reason(), malloc(). สร้างออบเจ็กต์: UnsupportedOperationException, IllegalArgumentException, IOException, NativeImage. คืนค่า: new NativeImage(format == null ? NativeImage.Format.getStbFormat(intBuffer3.get(0)) : format, intBuffer.get(0), intBuffer2.get(0), true, l).

Parameters

  • NativeImage.Format format
  • ByteBuffer byteBuffer

Throws

  • IOException

ตัวอย่างใช้งาน

NativeImage.Format format = ...;
ByteBuffer byteBuffer = ...;
NativeImage result = NativeImage.read(format, byteBuffer);

com.mojang.blaze3d.platform.NativeImage#read(NativeImage.Format,InputStream)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:106
  • Modifiers: public static
  • Return: NativeImage

คืออะไร

อ่าน read

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: readResource(), rewind(), memFree(), closeQuietly(). คืนค่า: read(format, byteBuffer).

Parameters

  • NativeImage.Format format
  • InputStream inputStream

Throws

  • IOException

ตัวอย่างใช้งาน

NativeImage.Format format = ...;
InputStream inputStream = ...;
NativeImage result = NativeImage.read(format, inputStream);

com.mojang.blaze3d.platform.NativeImage#resizeSubRectTo(int,int,int,int,NativeImage)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:522
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ resizeSubRectTo ตาม implementation ของ NativeImage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: checkAllocated(), format(), components(), nstbir_resize_uint8(), getWidth(), getHeight(). สร้างออบเจ็กต์: UnsupportedOperationException.

Parameters

  • int i
  • int j
  • int k
  • int l
  • NativeImage nativeImage

ตัวอย่างใช้งาน

NativeImage instance = ...;
NativeImage nativeImage = ...;
instance.resizeSubRectTo(0, 0, 0, 0, nativeImage);

com.mojang.blaze3d.platform.NativeImage#setPixel(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:239
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Pixel

ทำงานยังไง

เรียกต่อ: setPixelABGR(), toABGR().

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.setPixel(0, 0, 0);

com.mojang.blaze3d.platform.NativeImage#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:93
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ NativeImage

ทำงานยังไง

คืนค่า: "NativeImage[" + this.format + " " + this.width + "x" + this.height + "@" + this.pixels + (this.useStbFree ? "S" : "N") + "]".

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
String result = instance.toString();

com.mojang.blaze3d.platform.NativeImage#untrack()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:534
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ untrack ตาม implementation ของ NativeImage

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.untrack();

com.mojang.blaze3d.platform.NativeImage#upload(int,int,int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:331
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ NativeImage

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • int j
  • int k
  • boolean bl

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.upload(0, 0, 0, true);

com.mojang.blaze3d.platform.NativeImage#upload(int,int,int,int,int,int,int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:335
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ NativeImage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOnRenderThreadOrInit(), recordRenderCall(), _upload().

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • boolean bl

ตัวอย่างใช้งาน

NativeImage instance = ...;
instance.upload(0, 0, 0, 0, 0, 0, 0, true);

com.mojang.blaze3d.platform.NativeImage#writeToFile(File)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:395
  • Modifiers: public
  • Return: void

คืออะไร

เขียน To File

ทำงานยังไง

เรียกต่อ: toPath().

Parameters

  • File file

Throws

  • IOException

ตัวอย่างใช้งาน

NativeImage instance = ...;
File file = ...;
instance.writeToFile(file);

com.mojang.blaze3d.platform.NativeImage#writeToFile(Path)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:424
  • Modifiers: public
  • Return: void

คืออะไร

เขียน To File

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: supportedByStb(), checkAllocated(), newByteChannel(), writeToChannel(), toAbsolutePath(), stbi_failure_reason(). สร้างออบเจ็กต์: UnsupportedOperationException, IOException.

Parameters

  • Path path

Throws

  • IOException

ตัวอย่างใช้งาน

NativeImage instance = ...;
Path path = ...;
instance.writeToFile(path);

NativeImage$Format

  • Full name: com.mojang.blaze3d.platform.NativeImage$Format
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/NativeImage.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.platform.NativeImage$Format#alphaOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:643
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ alphaOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.alphaOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.alphaOffset();

com.mojang.blaze3d.platform.NativeImage$Format#blueOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:635
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ blueOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.blueOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.blueOffset();

com.mojang.blaze3d.platform.NativeImage$Format#components()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:589
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ components ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.components.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.components();

com.mojang.blaze3d.platform.NativeImage$Format#glFormat()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:603
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ glFormat ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.glFormat.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.glFormat();

com.mojang.blaze3d.platform.NativeImage$Format#greenOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:631
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ greenOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.greenOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.greenOffset();

com.mojang.blaze3d.platform.NativeImage$Format#hasAlpha()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:623
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Alpha

ทำงานยังไง

คืนค่า: this.hasAlpha.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasAlpha();

com.mojang.blaze3d.platform.NativeImage$Format#hasBlue()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:615
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Blue

ทำงานยังไง

คืนค่า: this.hasBlue.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasBlue();

com.mojang.blaze3d.platform.NativeImage$Format#hasGreen()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:611
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Green

ทำงานยังไง

คืนค่า: this.hasGreen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasGreen();

com.mojang.blaze3d.platform.NativeImage$Format#hasLuminance()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:619
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Luminance

ทำงานยังไง

คืนค่า: this.hasLuminance.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasLuminance();

com.mojang.blaze3d.platform.NativeImage$Format#hasLuminanceOrAlpha()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:659
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Luminance Or Alpha

ทำงานยังไง

คืนค่า: this.hasLuminance || this.hasAlpha.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasLuminanceOrAlpha();

com.mojang.blaze3d.platform.NativeImage$Format#hasLuminanceOrBlue()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:655
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Luminance Or Blue

ทำงานยังไง

คืนค่า: this.hasLuminance || this.hasBlue.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasLuminanceOrBlue();

com.mojang.blaze3d.platform.NativeImage$Format#hasLuminanceOrGreen()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:651
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Luminance Or Green

ทำงานยังไง

คืนค่า: this.hasLuminance || this.hasGreen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasLuminanceOrGreen();

com.mojang.blaze3d.platform.NativeImage$Format#hasLuminanceOrRed()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:647
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Luminance Or Red

ทำงานยังไง

คืนค่า: this.hasLuminance || this.hasRed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasLuminanceOrRed();

com.mojang.blaze3d.platform.NativeImage$Format#hasRed()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:607
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Red

ทำงานยังไง

คืนค่า: this.hasRed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.hasRed();

com.mojang.blaze3d.platform.NativeImage$Format#luminanceOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:639
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ luminanceOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.luminanceOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.luminanceOffset();

com.mojang.blaze3d.platform.NativeImage$Format#luminanceOrAlphaOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:675
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ luminanceOrAlphaOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.hasLuminance ? this.luminanceOffset : this.alphaOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.luminanceOrAlphaOffset();

com.mojang.blaze3d.platform.NativeImage$Format#luminanceOrBlueOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:671
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ luminanceOrBlueOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.hasLuminance ? this.luminanceOffset : this.blueOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.luminanceOrBlueOffset();

com.mojang.blaze3d.platform.NativeImage$Format#luminanceOrGreenOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:667
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ luminanceOrGreenOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.hasLuminance ? this.luminanceOffset : this.greenOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.luminanceOrGreenOffset();

com.mojang.blaze3d.platform.NativeImage$Format#luminanceOrRedOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:663
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ luminanceOrRedOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.hasLuminance ? this.luminanceOffset : this.redOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.luminanceOrRedOffset();

com.mojang.blaze3d.platform.NativeImage$Format#redOffset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:627
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ redOffset ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.redOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
int result = instance.redOffset();

com.mojang.blaze3d.platform.NativeImage$Format#setPackPixelStoreState()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:593
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Pack Pixel Store State

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), _pixelStore(), components().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
instance.setPackPixelStoreState();

com.mojang.blaze3d.platform.NativeImage$Format#setUnpackPixelStoreState()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:598
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Unpack Pixel Store State

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), _pixelStore(), components().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
instance.setUnpackPixelStoreState();

com.mojang.blaze3d.platform.NativeImage$Format#supportedByStb()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:679
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ supportedByStb ตาม implementation ของ NativeImage$Format

ทำงานยังไง

คืนค่า: this.supportedByStb.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.Format instance = ...;
boolean result = instance.supportedByStb();

NativeImage$InternalGlFormat

  • Full name: com.mojang.blaze3d.platform.NativeImage$InternalGlFormat
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/NativeImage.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.platform.NativeImage$InternalGlFormat#glFormat()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/NativeImage.java:711
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ glFormat ตาม implementation ของ NativeImage$InternalGlFormat

ทำงานยังไง

คืนค่า: this.glFormat.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NativeImage.InternalGlFormat instance = ...;
int result = instance.glFormat();

ScreenManager

  • Full name: com.mojang.blaze3d.platform.ScreenManager
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/ScreenManager.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.ScreenManager#clamp(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ScreenManager.java:90
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ clamp ตาม implementation ของ ScreenManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

int result = ScreenManager.clamp(0, 0, 0);

com.mojang.blaze3d.platform.ScreenManager#findBestMonitor(Window)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ScreenManager.java:49
  • Modifiers: public
  • Return: Monitor

คืออะไร

ค้นหา Best Monitor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: glfwGetWindowMonitor(), getWindow(), getMonitor(), getX(), getScreenWidth(), getY(), getScreenHeight(), glfwGetPrimaryMonitor(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Window window

ตัวอย่างใช้งาน

ScreenManager instance = ...;
Window window = ...;
Monitor result = instance.findBestMonitor(window);

com.mojang.blaze3d.platform.ScreenManager#getMonitor(long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ScreenManager.java:44
  • Modifiers: public
  • Return: Monitor

คืออะไร

อ่านค่า Monitor

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.monitors.get(l).

Parameters

  • long l

ตัวอย่างใช้งาน

ScreenManager instance = ...;
Monitor result = instance.getMonitor(0L);

com.mojang.blaze3d.platform.ScreenManager#ScreenManager(MonitorCreator)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ScreenManager.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ScreenManager ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: monitorCreator. เรียกต่อ: glfwSetMonitorCallback(), glfwGetMonitors(), limit(), get(), put(), createMonitor().

Parameters

  • MonitorCreator monitorCreator

ตัวอย่างใช้งาน

MonitorCreator monitorCreator = ...;
ScreenManager instance = new ScreenManager(monitorCreator);

com.mojang.blaze3d.platform.ScreenManager#shutdown()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/ScreenManager.java:98
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ shutdown ตาม implementation ของ ScreenManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), glfwSetMonitorCallback(), free().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ScreenManager instance = ...;
instance.shutdown();

TextureUtil

  • Full name: com.mojang.blaze3d.platform.TextureUtil
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/TextureUtil.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.platform.TextureUtil#generateTextureId()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:29
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ generateTextureId ตาม implementation ของ TextureUtil

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), current(), nextInt(), _genTextures(), _genTexture(), _deleteTextures(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

int result = TextureUtil.generateTextureId();

com.mojang.blaze3d.platform.TextureUtil#getDebugTexturePath()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:134
  • Modifiers: public static
  • Return: Path

คืออะไร

อ่านค่า Debug Texture Path

ทำงานยังไง

เรียกต่อ: of(). คืนค่า: getDebugTexturePath(Path.of(".")).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Path result = TextureUtil.getDebugTexturePath();

com.mojang.blaze3d.platform.TextureUtil#getDebugTexturePath(Path)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:130
  • Modifiers: public static
  • Return: Path

คืออะไร

อ่านค่า Debug Texture Path

ทำงานยังไง

เรียกต่อ: resolve(). คืนค่า: path.resolve("screenshots").resolve("debug").

Parameters

  • Path path

ตัวอย่างใช้งาน

Path path = ...;
Path result = TextureUtil.getDebugTexturePath(path);

com.mojang.blaze3d.platform.TextureUtil#prepareImage(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:47
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ prepareImage ตาม implementation ของ TextureUtil

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

TextureUtil.prepareImage(0, 0, 0);

com.mojang.blaze3d.platform.TextureUtil#prepareImage(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:55
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ prepareImage ตาม implementation ของ TextureUtil

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

TextureUtil.prepareImage(0, 0, 0, 0);

com.mojang.blaze3d.platform.TextureUtil#prepareImage(NativeImage.InternalGlFormat,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:51
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ prepareImage ตาม implementation ของ TextureUtil

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • NativeImage.InternalGlFormat internalGlFormat
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

NativeImage.InternalGlFormat internalGlFormat = ...;
TextureUtil.prepareImage(internalGlFormat, 0, 0, 0);

com.mojang.blaze3d.platform.TextureUtil#prepareImage(NativeImage.InternalGlFormat,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:59
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ prepareImage ตาม implementation ของ TextureUtil

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: assertOnRenderThreadOrInit(), bind(), _texParameter(), _texImage2D(), glFormat().

Parameters

  • NativeImage.InternalGlFormat internalGlFormat
  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

NativeImage.InternalGlFormat internalGlFormat = ...;
TextureUtil.prepareImage(internalGlFormat, 0, 0, 0, 0);

com.mojang.blaze3d.platform.TextureUtil#readResource(InputStream)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:79
  • Modifiers: public static
  • Return: ByteBuffer

คืออะไร

อ่าน Resource

ทำงานยังไง

เรียกต่อ: newChannel(), size().

Parameters

  • InputStream inputStream

Throws

  • IOException

ตัวอย่างใช้งาน

InputStream inputStream = ...;
ByteBuffer result = TextureUtil.readResource(inputStream);

com.mojang.blaze3d.platform.TextureUtil#releaseTextureId(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:42
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ releaseTextureId ตาม implementation ของ TextureUtil

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), _deleteTexture().

Parameters

  • int i

ตัวอย่างใช้งาน

TextureUtil.releaseTextureId(0);

com.mojang.blaze3d.platform.TextureUtil#writeAsPNG(Path,String,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:103
  • Modifiers: public static
  • Return: void

คืออะไร

เขียน As PNG

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Path path
  • String string
  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

Path path = ...;
TextureUtil.writeAsPNG(path, "value", 0, 0, 0, 0);

com.mojang.blaze3d.platform.TextureUtil#writeAsPNG(Path,String,int,int,int,int,IntUnaryOperator)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/TextureUtil.java:107
  • Modifiers: public static
  • Return: void

คืออะไร

เขียน As PNG

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: assertOnRenderThread(), bind(), downloadTexture(), applyToAllPixels(), resolve(), writeToFile(), debug(), toAbsolutePath(). สร้างออบเจ็กต์: NativeImage.

Parameters

  • Path path
  • String string
  • int i
  • int j
  • int k
  • int l
  • IntUnaryOperator intUnaryOperator

ตัวอย่างใช้งาน

Path path = ...;
IntUnaryOperator intUnaryOperator = ...;
TextureUtil.writeAsPNG(path, "value", 0, 0, 0, 0, intUnaryOperator);

VideoMode

  • Full name: com.mojang.blaze3d.platform.VideoMode
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/VideoMode.java
  • Type: class
  • Modifiers: public final

com.mojang.blaze3d.platform.VideoMode#equals(Object)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:75
  • Modifiers: public
  • Return: boolean

คืออะไร

เปรียบเทียบความเท่ากัน equals

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: width, height, redBits, greenBits, blueBits, refreshRate. เรียกต่อ: getClass(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Object object

ตัวอย่างใช้งาน

VideoMode instance = ...;
Object object = ...;
boolean result = instance.equals(object);

com.mojang.blaze3d.platform.VideoMode#getBlueBits()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:67
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Blue Bits

ทำงานยังไง

คืนค่า: this.blueBits.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getBlueBits();

com.mojang.blaze3d.platform.VideoMode#getGreenBits()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:63
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Green Bits

ทำงานยังไง

คืนค่า: this.greenBits.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getGreenBits();

com.mojang.blaze3d.platform.VideoMode#getHeight()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:55
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Height

ทำงานยังไง

คืนค่า: this.height.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getHeight();

com.mojang.blaze3d.platform.VideoMode#getRedBits()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:59
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Red Bits

ทำงานยังไง

คืนค่า: this.redBits.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getRedBits();

com.mojang.blaze3d.platform.VideoMode#getRefreshRate()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:71
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Refresh Rate

ทำงานยังไง

คืนค่า: this.refreshRate.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getRefreshRate();

com.mojang.blaze3d.platform.VideoMode#getWidth()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Width

ทำงานยังไง

คืนค่า: this.width.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.getWidth();

com.mojang.blaze3d.platform.VideoMode#hashCode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:92
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ hashCode ตาม implementation ของ VideoMode

ทำงานยังไง

เรียกต่อ: hash(). คืนค่า: Objects.hash(this.width, this.height, this.redBits, this.greenBits, this.blueBits, this.refreshRate).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
int result = instance.hashCode();

com.mojang.blaze3d.platform.VideoMode#read(String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:102
  • Modifiers: public static
  • Return: Optional<VideoMode>

คืออะไร

อ่าน read

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: empty(), matcher(), matches(), parseInt(), group(), of(). สร้างออบเจ็กต์: VideoMode. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • String string

ตัวอย่างใช้งาน

Optional<VideoMode> result = VideoMode.read("value");

com.mojang.blaze3d.platform.VideoMode#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:97
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ VideoMode

ทำงานยังไง

เรียกต่อ: format(), s(). คืนค่า: String.format(Locale.ROOT, "%sx%s@%s (%sbit)", this.width, this.height, this.refreshRate, this.redBits + this.greenBits + this.blueBits).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
String result = instance.toString();

com.mojang.blaze3d.platform.VideoMode#VideoMode(Buffer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VideoMode ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: width, height, redBits, greenBits, blueBits, refreshRate. เรียกต่อ: width(), height(), redBits(), greenBits(), blueBits(), refreshRate().

Parameters

  • Buffer buffer

ตัวอย่างใช้งาน

Buffer buffer = ...;
VideoMode instance = new VideoMode(buffer);

com.mojang.blaze3d.platform.VideoMode#VideoMode(GLFWVidMode)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:42
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VideoMode ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: width, height, redBits, greenBits, blueBits, refreshRate. เรียกต่อ: width(), height(), redBits(), greenBits(), blueBits(), refreshRate().

Parameters

  • GLFWVidMode gLFWVidMode

ตัวอย่างใช้งาน

GLFWVidMode gLFWVidMode = ...;
VideoMode instance = new VideoMode(gLFWVidMode);

com.mojang.blaze3d.platform.VideoMode#VideoMode(int,int,int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VideoMode ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: width, height, redBits, greenBits, blueBits, refreshRate.

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • int n

ตัวอย่างใช้งาน

VideoMode instance = new VideoMode(0, 0, 0, 0, 0, 0);

com.mojang.blaze3d.platform.VideoMode#write()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/VideoMode.java:137
  • Modifiers: public
  • Return: String

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: format(). คืนค่า: String.format(Locale.ROOT, "%sx%s@%s:%s", this.width, this.height, this.refreshRate, this.redBits + this.greenBits + this.blueBits).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VideoMode instance = ...;
String result = instance.write();

Window

  • Full name: com.mojang.blaze3d.platform.Window
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/Window.java
  • Type: class
  • Modifiers: public final
  • Implements: AutoCloseable

com.mojang.blaze3d.platform.Window#calculateScale(int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:387
  • Modifiers: public
  • Return: int

คืออะไร

คำนวณ Scale

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. คืนค่า: j.

Parameters

  • int i
  • boolean bl

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.calculateScale(0, true);

com.mojang.blaze3d.platform.Window#changeFullscreenVideoMode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:317
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ changeFullscreenVideoMode ตาม implementation ของ Window

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: dirty. เรียกต่อ: setMode(), resizeDisplay().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
instance.changeFullscreenVideoMode();

com.mojang.blaze3d.platform.Window#checkGlfwError(BiConsumer<Integer, String>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:142
  • Modifiers: public static
  • Return: void

คืออะไร

ตรวจสอบ Glfw Error

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: stackPush(), mallocPointer(), glfwGetError(), get(), memUTF8(), accept().

Parameters

  • BiConsumer<Integer, String> biConsumer

ตัวอย่างใช้งาน

BiConsumer<Integer, String> biConsumer = ...;
Window.checkGlfwError(biConsumer);

com.mojang.blaze3d.platform.Window#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:229
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), glfwFreeCallbacks(), glfwDestroyWindow(), glfwTerminate().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
instance.close();

com.mojang.blaze3d.platform.Window#defaultErrorCallback(int,long)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:208
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ defaultErrorCallback ตาม implementation ของ Window

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), memUTF8(), error().

Parameters

  • int i
  • long l

ตัวอย่างใช้งาน

Window instance = ...;
instance.defaultErrorCallback(0, 0L);

com.mojang.blaze3d.platform.Window#findBestMonitor()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:469
  • Modifiers: public
  • Return: Monitor

คืออะไร

ค้นหา Best Monitor

ทำงานยังไง

คืนค่า: this.screenManager.findBestMonitor(this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
Monitor result = instance.findBestMonitor();

com.mojang.blaze3d.platform.Window#getGuiScale()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:465
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Gui Scale

ทำงานยังไง

คืนค่า: this.guiScale.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
double result = instance.getGuiScale();

com.mojang.blaze3d.platform.Window#getGuiScaledHeight()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:453
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Gui Scaled Height

ทำงานยังไง

คืนค่า: this.guiScaledHeight.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getGuiScaledHeight();

com.mojang.blaze3d.platform.Window#getGuiScaledWidth()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:449
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Gui Scaled Width

ทำงานยังไง

คืนค่า: this.guiScaledWidth.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getGuiScaledWidth();

com.mojang.blaze3d.platform.Window#getHeight()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:429
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Height

ทำงานยังไง

คืนค่า: this.framebufferHeight.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getHeight();

com.mojang.blaze3d.platform.Window#getPlatform()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:119
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Platform

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: glfwGetPlatform(), format(), unknown(). คืนค่า: switch (i) { case 0 -> "<error>".

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

String result = Window.getPlatform();

com.mojang.blaze3d.platform.Window#getPreferredFullscreenVideoMode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:305
  • Modifiers: public
  • Return: Optional<VideoMode>

คืออะไร

อ่านค่า Preferred Fullscreen Video Mode

ทำงานยังไง

คืนค่า: this.preferredFullscreenVideoMode.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
Optional<VideoMode> result = instance.getPreferredFullscreenVideoMode();

com.mojang.blaze3d.platform.Window#getRefreshRate()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:133
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Refresh Rate

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), _getRefreshRate(). คืนค่า: GLX._getRefreshRate(this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getRefreshRate();

com.mojang.blaze3d.platform.Window#getScreenHeight()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:445
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Screen Height

ทำงานยังไง

คืนค่า: this.height.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getScreenHeight();

com.mojang.blaze3d.platform.Window#getScreenWidth()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:441
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Screen Width

ทำงานยังไง

คืนค่า: this.width.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getScreenWidth();

com.mojang.blaze3d.platform.Window#getWidth()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:425
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Width

ทำงานยังไง

คืนค่า: this.framebufferWidth.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getWidth();

com.mojang.blaze3d.platform.Window#getWindow()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:413
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Window

ทำงานยังไง

คืนค่า: this.window.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
long result = instance.getWindow();

com.mojang.blaze3d.platform.Window#getX()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:457
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getX();

com.mojang.blaze3d.platform.Window#getY()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:461
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
int result = instance.getY();

com.mojang.blaze3d.platform.Window#isFullscreen()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:417
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Fullscreen

ทำงานยังไง

คืนค่า: this.fullscreen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
boolean result = instance.isFullscreen();

com.mojang.blaze3d.platform.Window#isIconified()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:421
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Iconified

ทำงานยังไง

คืนค่า: this.iconified.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
boolean result = instance.isIconified();

com.mojang.blaze3d.platform.Window#isMinimized()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:485
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Minimized

ทำงานยังไง

คืนค่า: this.minimized.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
boolean result = instance.isMinimized();

com.mojang.blaze3d.platform.Window#setDefaultErrorCallback()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:216
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Default Error Callback

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: glfwSetErrorCallback(), free().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
instance.setDefaultErrorCallback();

com.mojang.blaze3d.platform.Window#setErrorSection(String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:192
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Error Section

ทำงานยังไง

แก้ state: errorSection.

Parameters

  • String string

ตัวอย่างใช้งาน

Window instance = ...;
instance.setErrorSection("value");

com.mojang.blaze3d.platform.Window#setGuiScale(double)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:401
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Gui Scale

ทำงานยังไง

แก้ state: guiScale, guiScaledWidth, guiScaledHeight.

Parameters

  • double d

ตัวอย่างใช้งาน

Window instance = ...;
instance.setGuiScale(0.0D);

com.mojang.blaze3d.platform.Window#setHeight(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:437
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Height

ทำงานยังไง

แก้ state: framebufferHeight.

Parameters

  • int i

ตัวอย่างใช้งาน

Window instance = ...;
instance.setHeight(0);

com.mojang.blaze3d.platform.Window#setIcon(PackResources,IconSet)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:154
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Icon

ทำงานยังไง

แยกกรณีด้วย switch ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: glfwGetPlatform(), getStandardIcons(), size(), stackPush(), malloc(), read(), get(), memAlloc(). สร้างออบเจ็กต์: ArrayList<>.

Parameters

  • PackResources packResources
  • IconSet iconSet

Throws

  • IOException

ตัวอย่างใช้งาน

Window instance = ...;
PackResources packResources = ...;
IconSet iconSet = ...;
instance.setIcon(packResources, iconSet);

com.mojang.blaze3d.platform.Window#setPreferredFullscreenVideoMode(Optional<VideoMode>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:309
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Preferred Fullscreen Video Mode

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: preferredFullscreenVideoMode, dirty. เรียกต่อ: equals().

Parameters

  • Optional<VideoMode> optional

ตัวอย่างใช้งาน

Window instance = ...;
Optional<VideoMode> optional = ...;
instance.setPreferredFullscreenVideoMode(optional);

com.mojang.blaze3d.platform.Window#setTitle(String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:409
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Title

ทำงานยังไง

เรียกต่อ: glfwSetWindowTitle().

Parameters

  • String string

ตัวอย่างใช้งาน

Window instance = ...;
instance.setTitle("value");

com.mojang.blaze3d.platform.Window#setWidth(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:433
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Width

ทำงานยังไง

แก้ state: framebufferWidth.

Parameters

  • int i

ตัวอย่างใช้งาน

Window instance = ...;
instance.setWidth(0);

com.mojang.blaze3d.platform.Window#setWindowCloseCallback(Runnable)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:478
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Window Close Callback

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: glfwSetWindowCloseCallback(), run(), free().

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

Window instance = ...;
Runnable runnable = ...;
instance.setWindowCloseCallback(runnable);

com.mojang.blaze3d.platform.Window#setWindowed(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:367
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Windowed

ทำงานยังไง

แก้ state: windowedWidth, windowedHeight, fullscreen. เรียกต่อ: setMode().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

Window instance = ...;
instance.setWindowed(0, 0);

com.mojang.blaze3d.platform.Window#shouldClose()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:138
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Close

ทำงานยังไง

เรียกต่อ: _shouldClose(). คืนค่า: GLX._shouldClose(this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
boolean result = instance.shouldClose();

com.mojang.blaze3d.platform.Window#toggleFullScreen()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:363
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ toggleFullScreen ตาม implementation ของ Window

ทำงานยังไง

แก้ state: fullscreen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Window instance = ...;
instance.toggleFullScreen();

com.mojang.blaze3d.platform.Window#updateDisplay(TracyFrameCapture)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:297
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Display

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: actuallyFullscreen. เรียกต่อ: flipFrame(), updateFullscreen().

Parameters

  • TracyFrameCapture tracyFrameCapture

ตัวอย่างใช้งาน

Window instance = ...;
TracyFrameCapture tracyFrameCapture = ...;
instance.updateDisplay(tracyFrameCapture);

com.mojang.blaze3d.platform.Window#updateRawMouseInput(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:474
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Raw Mouse Input

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Window instance = ...;
instance.updateRawMouseInput(true);

com.mojang.blaze3d.platform.Window#updateVsync(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:223
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Vsync

ทำงานยังไง

แก้ state: vsync. เรียกต่อ: assertOnRenderThreadOrInit(), glfwSwapInterval().

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Window instance = ...;
instance.updateVsync(true);

com.mojang.blaze3d.platform.Window#Window(WindowEventHandler,ScreenManager,DisplayData,String,String)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/Window.java:67
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Window ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: screenManager, eventHandler, preferredFullscreenVideoMode, actuallyFullscreen, fullscreen, windowedWidth. เรียกต่อ: setBootErrorCallback(), setErrorSection(), read(), isPresent(), of(), getAsInt(), empty(), getMonitor(). สร้างออบเจ็กต์: VideoMode.

Parameters

  • WindowEventHandler windowEventHandler
  • ScreenManager screenManager
  • DisplayData displayData
  • String string
  • String string2

ตัวอย่างใช้งาน

WindowEventHandler windowEventHandler = ...;
ScreenManager screenManager = ...;
DisplayData displayData = ...;
Window instance = new Window(windowEventHandler, screenManager, displayData, "value", "value");

WindowEventHandler

  • Full name: com.mojang.blaze3d.platform.WindowEventHandler
  • Package: com.mojang.blaze3d.platform
  • Source: clientOnlycom/mojang/blaze3d/platform/WindowEventHandler.java
  • Type: interface
  • Modifiers: public

com.mojang.blaze3d.platform.WindowEventHandler#cursorEntered()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/WindowEventHandler.java:12
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ cursorEntered ตาม implementation ของ WindowEventHandler

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

WindowEventHandler instance = ...;
instance.cursorEntered();

com.mojang.blaze3d.platform.WindowEventHandler#resizeDisplay()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/WindowEventHandler.java:10
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ resizeDisplay ตาม implementation ของ WindowEventHandler

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

WindowEventHandler instance = ...;
instance.resizeDisplay();

com.mojang.blaze3d.platform.WindowEventHandler#setWindowActive(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/platform/WindowEventHandler.java:8
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Window Active

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • boolean bl

ตัวอย่างใช้งาน

WindowEventHandler instance = ...;
instance.setWindowActive(true);