Package net.minecraft.client.gui.components.debugchart
Part 1/1
AbstractDebugChart
- Full name:
net.minecraft.client.gui.components.debugchart.AbstractDebugChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java - Type:
class - Modifiers:
public abstract
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#AbstractDebugChart(Font,SampleStorage)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:20 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractDebugChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: font, sampleStorage.
Parameters
Font fontSampleStorage sampleStorage
ตัวอย่างใช้งาน
Font font = ...;
SampleStorage sampleStorage = ...;
AbstractDebugChart instance = new AbstractDebugChart(font, sampleStorage);
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#drawAdditionalDimensions(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:80 - Modifiers:
protected - Return:
void
คืออะไร
วาด Additional Dimensions
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void drawAdditionalDimensions(GuiGraphics guiGraphics, int i, int j, int k) {
super.drawAdditionalDimensions(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#drawChart(GuiGraphics,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:33 - Modifiers:
public - Return:
void
คืออะไร
วาด Chart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: guiHeight(), fill(), guiOverlay(), max(), capacity(), size(), getValueForAggregation(), min().
Parameters
GuiGraphics guiGraphicsint iint j
ตัวอย่างใช้งาน
AbstractDebugChart instance = ...;
GuiGraphics guiGraphics = ...;
instance.drawChart(guiGraphics, 0, 0);
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#drawDimensions(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:68 - Modifiers:
protected - Return:
void
คืออะไร
วาด Dimensions
ทำงานยังไง
เรียกต่อ: drawMainDimension(), drawAdditionalDimensions().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void drawDimensions(GuiGraphics guiGraphics, int i, int j, int k) {
super.drawDimensions(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#drawMainDimension(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:73 - Modifiers:
protected - Return:
void
คืออะไร
วาด Main Dimension
ทำงานยังไง
เรียกต่อ: get(), getSampleHeight(), getSampleColor(), fill(), guiOverlay().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void drawMainDimension(GuiGraphics guiGraphics, int i, int j, int k) {
super.drawMainDimension(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#drawStringWithShade(GuiGraphics,String,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:90 - Modifiers:
protected - Return:
void
คืออะไร
วาด String With Shade
ทำงานยังไง
เรียกต่อ: fill(), guiOverlay(), width(), drawString().
Parameters
GuiGraphics guiGraphicsString stringint iint j
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void drawStringWithShade(GuiGraphics guiGraphics, String string, int i, int j) {
super.drawStringWithShade(guiGraphics, string, i, j);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getFullHeight()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:29 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Full Height
ทำงานยังไง
คืนค่า: 60 + 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getSampleColor(double,double,int,double,int,double,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:101 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
เรียกต่อ: clamp(), lerp(). คืนค่า: d < f ? ARGB.lerp((float)((d - e) / (f - e)), i, j) : ARGB.lerp((float)((d - f) / (g - f)), j, k).
Parameters
double ddouble eint idouble fint jdouble gint k
ตัวอย่างใช้งาน
@Override
protected int getSampleColor(double d, double e, int i, double f, int j, double g, int k) {
return super.getSampleColor(d, e, i, f, j, g, k);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getSampleColor(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:99 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getSampleHeight(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:97 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Sample Height
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getValueForAggregation(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:83 - Modifiers:
protected - Return:
long
คืออะไร
อ่านค่า Value For Aggregation
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.sampleStorage.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#getWidth(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:25 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Width
ทำงานยังไง
เรียกต่อ: min(), capacity(). คืนค่า: Math.min(this.sampleStorage.capacity() + 2, i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#renderAdditionalLinesAndLabels(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:87 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Additional Lines And Labels
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int i, int j, int k) {
super.renderAdditionalLinesAndLabels(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.AbstractDebugChart#toDisplayString(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/AbstractDebugChart.java:95 - Modifiers:
protected abstract - Return:
String
คืออะไร
ดำเนินการ toDisplayString ตาม implementation ของ AbstractDebugChart
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
double d
ตัวอย่างใช้งาน
BandwidthDebugChart
- Full name:
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java - Type:
class - Modifiers:
public - Extends:
AbstractDebugChart
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart#BandwidthDebugChart(Font,SampleStorage)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BandwidthDebugChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontSampleStorage sampleStorage
ตัวอย่างใช้งาน
Font font = ...;
SampleStorage sampleStorage = ...;
BandwidthDebugChart instance = new BandwidthDebugChart(font, sampleStorage);
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart#getSampleColor(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java:64 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
เรียกต่อ: toBytesPerSecond(). คืนค่า: this.getSampleColor(toBytesPerSecond(l), 0.0, -16711681, 8192.0, -6250241, 1.048576E7, -65536).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart#getSampleHeight(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java:55 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Height
ทำงานยังไง
เรียกต่อ: getSampleHeightInternal(), toBytesPerSecond(). คืนค่า: getSampleHeightInternal(toBytesPerSecond(d)).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart#renderAdditionalLinesAndLabels(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java:25 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Additional Lines And Labels
ทำงานยังไง
เรียกต่อ: drawLabeledLineAtValue(), drawStringWithShade(), toDisplayStringInternal(), getSampleHeightInternal().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int i, int j, int k) {
super.renderAdditionalLinesAndLabels(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart#toDisplayString(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/BandwidthDebugChart.java:42 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ toDisplayString ตาม implementation ของ BandwidthDebugChart
ทำงานยังไง
เรียกต่อ: toDisplayStringInternal(), toBytesPerSecond(). คืนค่า: toDisplayStringInternal(toBytesPerSecond(d)).
Parameters
double d
ตัวอย่างใช้งาน
FpsDebugChart
- Full name:
net.minecraft.client.gui.components.debugchart.FpsDebugChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/FpsDebugChart.java - Type:
class - Modifiers:
public - Extends:
AbstractDebugChart
net.minecraft.client.gui.components.debugchart.FpsDebugChart#FpsDebugChart(Font,SampleStorage)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/FpsDebugChart.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FpsDebugChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontSampleStorage sampleStorage
ตัวอย่างใช้งาน
Font font = ...;
SampleStorage sampleStorage = ...;
FpsDebugChart instance = new FpsDebugChart(font, sampleStorage);
net.minecraft.client.gui.components.debugchart.FpsDebugChart#getSampleColor(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/FpsDebugChart.java:42 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
เรียกต่อ: toMilliseconds(). คืนค่า: this.getSampleColor(toMilliseconds(l), 0.0, -16711936, 28.0, -256, 56.0, -65536).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.FpsDebugChart#getSampleHeight(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/FpsDebugChart.java:37 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Height
ทำงานยังไง
เรียกต่อ: round(), toMilliseconds(). คืนค่า: (int)Math.round(toMilliseconds(d) * 60.0 / 33.333333333333336).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.FpsDebugChart#renderAdditionalLinesAndLabels(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/FpsDebugChart.java:21 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Additional Lines And Labels
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: drawStringWithShade(), hLine(), guiOverlay(), getInstance(), framerateLimit(), get(), getSampleHeight().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int i, int j, int k) {
super.renderAdditionalLinesAndLabels(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.FpsDebugChart#toDisplayString(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/FpsDebugChart.java:32 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ toDisplayString ตาม implementation ของ FpsDebugChart
ทำงานยังไง
เรียกต่อ: format(), round(), toMilliseconds(). คืนค่า: String.format(Locale.ROOT, "%d ms", (int)Math.round(toMilliseconds(d))).
Parameters
double d
ตัวอย่างใช้งาน
PingDebugChart
- Full name:
net.minecraft.client.gui.components.debugchart.PingDebugChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/PingDebugChart.java - Type:
class - Modifiers:
public - Extends:
AbstractDebugChart
net.minecraft.client.gui.components.debugchart.PingDebugChart#getSampleColor(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/PingDebugChart.java:33 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
คืนค่า: this.getSampleColor(l, 0.0, -16711936, 250.0, -256, 500.0, -65536).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.PingDebugChart#getSampleHeight(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/PingDebugChart.java:28 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Height
ทำงานยังไง
เรียกต่อ: round(). คืนค่า: (int)Math.round(d * 60.0 / 500.0).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.PingDebugChart#PingDebugChart(Font,SampleStorage)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/PingDebugChart.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PingDebugChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontSampleStorage sampleStorage
ตัวอย่างใช้งาน
Font font = ...;
SampleStorage sampleStorage = ...;
PingDebugChart instance = new PingDebugChart(font, sampleStorage);
net.minecraft.client.gui.components.debugchart.PingDebugChart#renderAdditionalLinesAndLabels(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/PingDebugChart.java:18 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Additional Lines And Labels
ทำงานยังไง
เรียกต่อ: drawStringWithShade().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int i, int j, int k) {
super.renderAdditionalLinesAndLabels(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.PingDebugChart#toDisplayString(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/PingDebugChart.java:23 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ toDisplayString ตาม implementation ของ PingDebugChart
ทำงานยังไง
เรียกต่อ: format(), round(). คืนค่า: String.format(Locale.ROOT, "%d ms", (int)Math.round(d)).
Parameters
double d
ตัวอย่างใช้งาน
ProfilerPieChart
- Full name:
net.minecraft.client.gui.components.debugchart.ProfilerPieChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.components.debugchart.ProfilerPieChart#ProfilerPieChart(Font)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ProfilerPieChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: font.
Parameters
Font font
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.ProfilerPieChart#profilerPieChartKeyPress(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java:134 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ profilerPieChartKeyPress ตาม implementation ของ ProfilerPieChart
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: profilerTreePath. เรียกต่อ: getTimes(), isEmpty(), remove(), lastIndexOf(), substring(), size(), equals(), get().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.ProfilerPieChart#render(GuiGraphics)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java:43 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getTimes(), removeFirst(), guiWidth(), size(), guiHeight(), fill(), drawSpecial(), floor(). สร้างออบเจ็กต์: DecimalFormat, StringBuilder.
Parameters
GuiGraphics guiGraphics
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.ProfilerPieChart#setBottomOffset(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java:39 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Bottom Offset
ทำงานยังไง
แก้ state: bottomOffset.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.ProfilerPieChart#setPieChartResults(ProfileResults)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/ProfilerPieChart.java:35 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pie Chart Results
ทำงานยังไง
แก้ state: profilerPieChartResults.
Parameters
ProfileResults profileResults
ตัวอย่างใช้งาน
ProfilerPieChart instance = ...;
ProfileResults profileResults = ...;
instance.setPieChartResults(profileResults);
TpsDebugChart
- Full name:
net.minecraft.client.gui.components.debugchart.TpsDebugChart - Package:
net.minecraft.client.gui.components.debugchart - Source:
clientOnly—net/minecraft/client/gui/components/debugchart/TpsDebugChart.java - Type:
class - Modifiers:
public - Extends:
AbstractDebugChart
net.minecraft.client.gui.components.debugchart.TpsDebugChart#drawAdditionalDimensions(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:32 - Modifiers:
protected - Return:
void
คืออะไร
วาด Additional Dimensions
ทำงานยังไง
เรียกต่อ: get(), ordinal(), getSampleHeight(), fill(), guiOverlay().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void drawAdditionalDimensions(GuiGraphics guiGraphics, int i, int j, int k) {
super.drawAdditionalDimensions(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.TpsDebugChart#getSampleColor(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:60 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Color
ทำงานยังไง
เรียกต่อ: get(), toMilliseconds(). คืนค่า: this.getSampleColor(toMilliseconds(l), f, -16711936, f * 1.125, -256, f * 1.25, -65536).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.TpsDebugChart#getSampleHeight(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:55 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Sample Height
ทำงานยังไง
เรียกต่อ: round(), toMilliseconds(), get(), floatValue(). คืนค่า: (int)Math.round(toMilliseconds(d) * 60.0 / this.msptSupplier.get().floatValue()).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.TpsDebugChart#getValueForAggregation(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:45 - Modifiers:
protected - Return:
long
คืออะไร
อ่านค่า Value For Aggregation
ทำงานยังไง
เรียกต่อ: get(), ordinal(). คืนค่า: this.sampleStorage.get(i) - this.sampleStorage.get(i, TpsDebugDimensions.IDLE.ordinal()).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.TpsDebugChart#renderAdditionalLinesAndLabels(GuiGraphics,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:26 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Additional Lines And Labels
ทำงานยังไง
เรียกต่อ: get(), drawStringWithShade(), format().
Parameters
GuiGraphics guiGraphicsint iint jint k
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int i, int j, int k) {
super.renderAdditionalLinesAndLabels(guiGraphics, i, j, k);
}
net.minecraft.client.gui.components.debugchart.TpsDebugChart#toDisplayString(double)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:50 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ toDisplayString ตาม implementation ของ TpsDebugChart
ทำงานยังไง
เรียกต่อ: format(), round(), toMilliseconds(). คืนค่า: String.format(Locale.ROOT, "%d ms", (int)Math.round(toMilliseconds(d))).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.debugchart.TpsDebugChart#TpsDebugChart(Font,SampleStorage,Supplier<Float>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/debugchart/TpsDebugChart.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TpsDebugChart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: msptSupplier.
Parameters
Font fontSampleStorage sampleStorageSupplier<Float> supplier
ตัวอย่างใช้งาน
Font font = ...;
SampleStorage sampleStorage = ...;
Supplier<Float> supplier = ...;
TpsDebugChart instance = new TpsDebugChart(font, sampleStorage, supplier);