Skip to content

Package net.minecraft.util.debugchart

Part 1/1


AbstractSampleLogger

  • Full name: net.minecraft.util.debugchart.AbstractSampleLogger
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/AbstractSampleLogger.java
  • Type: class
  • Modifiers: public abstract
  • Implements: SampleLogger

net.minecraft.util.debugchart.AbstractSampleLogger#AbstractSampleLogger(int,long[])

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:7
  • Modifiers: protected
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: sample, defaults. สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • int i
  • long[] ls

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

long[] ls = ...;
AbstractSampleLogger instance = new AbstractSampleLogger(0, ls);

net.minecraft.util.debugchart.AbstractSampleLogger#logFullSample(long[])

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:16
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ logFullSample ตาม implementation ของ AbstractSampleLogger

ทำงานยังไง

เรียกต่อ: arraycopy(), useSample(), resetSample().

Parameters

  • long[] ls

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

AbstractSampleLogger instance = ...;
long[] ls = ...;
instance.logFullSample(ls);

net.minecraft.util.debugchart.AbstractSampleLogger#logPartialSample(long,int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:30
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ logPartialSample ตาม implementation ของ AbstractSampleLogger

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. สร้างออบเจ็กต์: IndexOutOfBoundsException.

Parameters

  • long l
  • int i

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

AbstractSampleLogger instance = ...;
instance.logPartialSample(0L, 0);

net.minecraft.util.debugchart.AbstractSampleLogger#logSample(long)

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:23
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ logSample ตาม implementation ของ AbstractSampleLogger

ทำงานยังไง

เรียกต่อ: useSample(), resetSample().

Parameters

  • long l

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

AbstractSampleLogger instance = ...;
instance.logSample(0L);

net.minecraft.util.debugchart.AbstractSampleLogger#resetSample()

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:41
  • Modifiers: protected
  • Return: void

คืออะไร

รีเซ็ต Sample

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void resetSample() {
    super.resetSample();
}

net.minecraft.util.debugchart.AbstractSampleLogger#useSample()

  • Origin: common
  • Source: net/minecraft/util/debugchart/AbstractSampleLogger.java:39
  • Modifiers: protected abstract
  • Return: void

คืออะไร

ใช้งาน Sample

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

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

@Override
protected void useSample() {
    super.useSample();
}

DebugSampleSubscriptionTracker

  • Full name: net.minecraft.util.debugchart.DebugSampleSubscriptionTracker
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java
  • Type: class
  • Modifiers: public

net.minecraft.util.debugchart.DebugSampleSubscriptionTracker#broadcast(ClientboundDebugSamplePacket)

  • Origin: common
  • Source: net/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java:33
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ broadcast ตาม implementation ของ DebugSampleSubscriptionTracker

ทำงานยังไง

มีการวนลูป. เรียกต่อ: get(), debugSampleType(), keySet(), send().

Parameters

  • ClientboundDebugSamplePacket clientboundDebugSamplePacket

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

DebugSampleSubscriptionTracker instance = ...;
ClientboundDebugSamplePacket clientboundDebugSamplePacket = ...;
instance.broadcast(clientboundDebugSamplePacket);

net.minecraft.util.debugchart.DebugSampleSubscriptionTracker#DebugSampleSubscriptionTracker(PlayerList)

  • Origin: common
  • Source: net/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

มีการวนลูป. แก้ state: playerList, subscriptions. เรียกต่อ: values(), put(), newHashMap(). สร้างออบเจ็กต์: EnumMap<>.

Parameters

  • PlayerList playerList

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

PlayerList playerList = ...;
DebugSampleSubscriptionTracker instance = new DebugSampleSubscriptionTracker(playerList);

net.minecraft.util.debugchart.DebugSampleSubscriptionTracker#shouldLogSamples(RemoteDebugSampleType)

  • Origin: common
  • Source: net/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java:29
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Log Samples

ทำงานยังไง

เรียกต่อ: get(), isEmpty(). คืนค่า: !this.subscriptions.get(remoteDebugSampleType).isEmpty().

Parameters

  • RemoteDebugSampleType remoteDebugSampleType

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

DebugSampleSubscriptionTracker instance = ...;
RemoteDebugSampleType remoteDebugSampleType = ...;
boolean result = instance.shouldLogSamples(remoteDebugSampleType);

net.minecraft.util.debugchart.DebugSampleSubscriptionTracker#subscribe(ServerPlayer,RemoteDebugSampleType)

  • Origin: common
  • Source: net/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java:39
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ subscribe ตาม implementation ของ DebugSampleSubscriptionTracker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOp(), getGameProfile(), add(), SubscriptionRequest(). สร้างออบเจ็กต์: DebugSampleSubscriptionTracker.SubscriptionRequest.

Parameters

  • ServerPlayer serverPlayer
  • RemoteDebugSampleType remoteDebugSampleType

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

DebugSampleSubscriptionTracker instance = ...;
ServerPlayer serverPlayer = ...;
RemoteDebugSampleType remoteDebugSampleType = ...;
instance.subscribe(serverPlayer, remoteDebugSampleType);

net.minecraft.util.debugchart.DebugSampleSubscriptionTracker#tick(int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/DebugSampleSubscriptionTracker.java:45
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

เรียกต่อ: getMillis(), handleSubscriptions(), handleUnsubscriptions().

Parameters

  • int i

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

DebugSampleSubscriptionTracker instance = ...;
instance.tick(0);

LocalSampleLogger

  • Full name: net.minecraft.util.debugchart.LocalSampleLogger
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/LocalSampleLogger.java
  • Type: class
  • Modifiers: public
  • Extends: AbstractSampleLogger
  • Implements: SampleStorage

net.minecraft.util.debugchart.LocalSampleLogger#capacity()

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:29
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ capacity ตาม implementation ของ LocalSampleLogger

ทำงานยังไง

คืนค่า: this.samples.length.

Parameters

  • ไม่มี

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

LocalSampleLogger instance = ...;
int result = instance.capacity();

net.minecraft.util.debugchart.LocalSampleLogger#get(int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:39
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า get

ทำงานยังไง

คืนค่า: this.get(i, 0).

Parameters

  • int i

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

LocalSampleLogger instance = ...;
long result = instance.get(0);

net.minecraft.util.debugchart.LocalSampleLogger#get(int,int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:44
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า get

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: wrapIndex(). สร้างออบเจ็กต์: IndexOutOfBoundsException. คืนค่า: ls[j].

Parameters

  • int i
  • int j

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

LocalSampleLogger instance = ...;
long result = instance.get(0, 0);

net.minecraft.util.debugchart.LocalSampleLogger#LocalSampleLogger(int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:9
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i

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

LocalSampleLogger instance = new LocalSampleLogger(0);

net.minecraft.util.debugchart.LocalSampleLogger#LocalSampleLogger(int,long[])

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:13
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: samples.

Parameters

  • int i
  • long[] ls

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

long[] ls = ...;
LocalSampleLogger instance = new LocalSampleLogger(0, ls);

net.minecraft.util.debugchart.LocalSampleLogger#reset()

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:62
  • Modifiers: public
  • Return: void

คืออะไร

รีเซ็ต reset

ทำงานยังไง

แก้ state: start, size.

Parameters

  • ไม่มี

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

LocalSampleLogger instance = ...;
instance.reset();

net.minecraft.util.debugchart.LocalSampleLogger#size()

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:34
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ size ตาม implementation ของ LocalSampleLogger

ทำงานยังไง

คืนค่า: this.size.

Parameters

  • ไม่มี

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

LocalSampleLogger instance = ...;
int result = instance.size();

net.minecraft.util.debugchart.LocalSampleLogger#useSample()

  • Origin: common
  • Source: net/minecraft/util/debugchart/LocalSampleLogger.java:18
  • Modifiers: protected
  • Return: void

คืออะไร

ใช้งาน Sample

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: size, start. เรียกต่อ: wrapIndex(), arraycopy().

Parameters

  • ไม่มี

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

@Override
protected void useSample() {
    super.useSample();
}

RemoteSampleLogger

  • Full name: net.minecraft.util.debugchart.RemoteSampleLogger
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/RemoteSampleLogger.java
  • Type: class
  • Modifiers: public
  • Extends: AbstractSampleLogger

net.minecraft.util.debugchart.RemoteSampleLogger#RemoteSampleLogger(int,DebugSampleSubscriptionTracker,RemoteDebugSampleType)

  • Origin: common
  • Source: net/minecraft/util/debugchart/RemoteSampleLogger.java:9
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • DebugSampleSubscriptionTracker debugSampleSubscriptionTracker
  • RemoteDebugSampleType remoteDebugSampleType

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

DebugSampleSubscriptionTracker debugSampleSubscriptionTracker = ...;
RemoteDebugSampleType remoteDebugSampleType = ...;
RemoteSampleLogger instance = new RemoteSampleLogger(0, debugSampleSubscriptionTracker, remoteDebugSampleType);

net.minecraft.util.debugchart.RemoteSampleLogger#RemoteSampleLogger(int,DebugSampleSubscriptionTracker,RemoteDebugSampleType,long[])

  • Origin: common
  • Source: net/minecraft/util/debugchart/RemoteSampleLogger.java:13
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: subscriptionTracker, sampleType.

Parameters

  • int i
  • DebugSampleSubscriptionTracker debugSampleSubscriptionTracker
  • RemoteDebugSampleType remoteDebugSampleType
  • long[] ls

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

DebugSampleSubscriptionTracker debugSampleSubscriptionTracker = ...;
RemoteDebugSampleType remoteDebugSampleType = ...;
long[] ls = ...;
RemoteSampleLogger instance = new RemoteSampleLogger(0, debugSampleSubscriptionTracker, remoteDebugSampleType, ls);

net.minecraft.util.debugchart.RemoteSampleLogger#useSample()

  • Origin: common
  • Source: net/minecraft/util/debugchart/RemoteSampleLogger.java:19
  • Modifiers: protected
  • Return: void

คืออะไร

ใช้งาน Sample

ทำงานยังไง

เรียกต่อ: broadcast(), clone(). สร้างออบเจ็กต์: ClientboundDebugSamplePacket.

Parameters

  • ไม่มี

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

@Override
protected void useSample() {
    super.useSample();
}

SampleLogger

  • Full name: net.minecraft.util.debugchart.SampleLogger
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/SampleLogger.java
  • Type: interface
  • Modifiers: public

net.minecraft.util.debugchart.SampleLogger#logFullSample(long[])

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleLogger.java:4
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ logFullSample ตาม implementation ของ SampleLogger

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • long[] ls

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

SampleLogger instance = ...;
long[] ls = ...;
instance.logFullSample(ls);

net.minecraft.util.debugchart.SampleLogger#logPartialSample(long,int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleLogger.java:8
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ logPartialSample ตาม implementation ของ SampleLogger

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • long l
  • int i

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

SampleLogger instance = ...;
instance.logPartialSample(0L, 0);

net.minecraft.util.debugchart.SampleLogger#logSample(long)

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleLogger.java:6
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ logSample ตาม implementation ของ SampleLogger

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • long l

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

SampleLogger instance = ...;
instance.logSample(0L);

SampleStorage

  • Full name: net.minecraft.util.debugchart.SampleStorage
  • Package: net.minecraft.util.debugchart
  • Source: commonnet/minecraft/util/debugchart/SampleStorage.java
  • Type: interface
  • Modifiers: public

net.minecraft.util.debugchart.SampleStorage#capacity()

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleStorage.java:4
  • Modifiers: ``
  • Return: int

คืออะไร

ดำเนินการ capacity ตาม implementation ของ SampleStorage

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

SampleStorage instance = ...;
int result = instance.capacity();

net.minecraft.util.debugchart.SampleStorage#get(int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleStorage.java:8
  • Modifiers: ``
  • Return: long

คืออะไร

อ่านค่า get

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i

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

SampleStorage instance = ...;
long result = instance.get(0);

net.minecraft.util.debugchart.SampleStorage#get(int,int)

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleStorage.java:10
  • Modifiers: ``
  • Return: long

คืออะไร

อ่านค่า get

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j

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

SampleStorage instance = ...;
long result = instance.get(0, 0);

net.minecraft.util.debugchart.SampleStorage#reset()

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleStorage.java:12
  • Modifiers: ``
  • Return: void

คืออะไร

รีเซ็ต reset

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

SampleStorage instance = ...;
instance.reset();

net.minecraft.util.debugchart.SampleStorage#size()

  • Origin: common
  • Source: net/minecraft/util/debugchart/SampleStorage.java:6
  • Modifiers: ``
  • Return: int

คืออะไร

ดำเนินการ size ตาม implementation ของ SampleStorage

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

SampleStorage instance = ...;
int result = instance.size();