Skip to content

Package net.minecraft.util.profiling.jfr.event

Part 1/1


ChunkGenerationEvent

  • Full name: net.minecraft.util.profiling.jfr.event.ChunkGenerationEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/ChunkGenerationEvent.java
  • Type: class
  • Modifiers: public
  • Extends: Event

net.minecraft.util.profiling.jfr.event.ChunkGenerationEvent#ChunkGenerationEvent(ChunkPos,ResourceKey<Level>,String)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/ChunkGenerationEvent.java:43
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: targetStatus, level, chunkPosX, chunkPosZ, worldPosX, worldPosZ. เรียกต่อ: location(), toString(), getMinBlockX(), getMinBlockZ().

Parameters

  • ChunkPos chunkPos
  • ResourceKey<Level> resourceKey
  • String string

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

ChunkPos chunkPos = ...;
ResourceKey<Level> resourceKey = ...;
ChunkGenerationEvent instance = new ChunkGenerationEvent(chunkPos, resourceKey, "value");

ChunkRegionIoEvent

  • Full name: net.minecraft.util.profiling.jfr.event.ChunkRegionIoEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/ChunkRegionIoEvent.java
  • Type: class
  • Modifiers: public abstract
  • Extends: Event

net.minecraft.util.profiling.jfr.event.ChunkRegionIoEvent#ChunkRegionIoEvent(RegionStorageInfo,ChunkPos,RegionFileVersion,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/ChunkRegionIoEvent.java:51
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: regionPosX, regionPosZ, localChunkPosX, localChunkPosZ, chunkPosX, chunkPosZ. เรียกต่อ: getRegionX(), getRegionZ(), getRegionLocalX(), getRegionLocalZ(), level(), dimension(), location(), toString().

Parameters

  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos
  • RegionFileVersion regionFileVersion
  • int i

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

RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
RegionFileVersion regionFileVersion = ...;
ChunkRegionIoEvent instance = new ChunkRegionIoEvent(regionStorageInfo, chunkPos, regionFileVersion, 0);

ChunkRegionReadEvent

  • Full name: net.minecraft.util.profiling.jfr.event.ChunkRegionReadEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/ChunkRegionReadEvent.java
  • Type: class
  • Modifiers: public
  • Extends: ChunkRegionIoEvent

net.minecraft.util.profiling.jfr.event.ChunkRegionReadEvent#ChunkRegionReadEvent(RegionStorageInfo,ChunkPos,RegionFileVersion,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/ChunkRegionReadEvent.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos
  • RegionFileVersion regionFileVersion
  • int i

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

RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
RegionFileVersion regionFileVersion = ...;
ChunkRegionReadEvent instance = new ChunkRegionReadEvent(regionStorageInfo, chunkPos, regionFileVersion, 0);

ChunkRegionWriteEvent

  • Full name: net.minecraft.util.profiling.jfr.event.ChunkRegionWriteEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/ChunkRegionWriteEvent.java
  • Type: class
  • Modifiers: public
  • Extends: ChunkRegionIoEvent

net.minecraft.util.profiling.jfr.event.ChunkRegionWriteEvent#ChunkRegionWriteEvent(RegionStorageInfo,ChunkPos,RegionFileVersion,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/ChunkRegionWriteEvent.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos
  • RegionFileVersion regionFileVersion
  • int i

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

RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
RegionFileVersion regionFileVersion = ...;
ChunkRegionWriteEvent instance = new ChunkRegionWriteEvent(regionStorageInfo, chunkPos, regionFileVersion, 0);

NetworkSummaryEvent

  • Full name: net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java
  • Type: class
  • Modifiers: public
  • Extends: Event

net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent#NetworkSummaryEvent(String)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java:42
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: remoteAddress.

Parameters

  • String string

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

NetworkSummaryEvent instance = new NetworkSummaryEvent("value");

NetworkSummaryEvent$SumAggregation

  • Full name: net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent$SumAggregation
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java
  • Type: class
  • Modifiers: public static final

net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent$SumAggregation#commitEvent()

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java:79
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ commitEvent ตาม implementation ของ NetworkSummaryEvent$SumAggregation

ทำงานยังไง

เรียกต่อ: get(), commit().

Parameters

  • ไม่มี

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

NetworkSummaryEvent.SumAggregation instance = ...;
instance.commitEvent();

net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent$SumAggregation#SumAggregation(String)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java:64
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: event. เรียกต่อ: begin(). สร้างออบเจ็กต์: NetworkSummaryEvent.

Parameters

  • String string

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

NetworkSummaryEvent.SumAggregation instance = new NetworkSummaryEvent.SumAggregation("value");

net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent$SumAggregation#trackReceivedPacket(int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java:74
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ trackReceivedPacket ตาม implementation ของ NetworkSummaryEvent$SumAggregation

ทำงานยังไง

เรียกต่อ: incrementAndGet(), addAndGet().

Parameters

  • int i

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

NetworkSummaryEvent.SumAggregation instance = ...;
instance.trackReceivedPacket(0);

net.minecraft.util.profiling.jfr.event.NetworkSummaryEvent$SumAggregation#trackSentPacket(int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent.java:69
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ trackSentPacket ตาม implementation ของ NetworkSummaryEvent$SumAggregation

ทำงานยังไง

เรียกต่อ: incrementAndGet(), addAndGet().

Parameters

  • int i

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

NetworkSummaryEvent.SumAggregation instance = ...;
instance.trackSentPacket(0);

PacketEvent

  • Full name: net.minecraft.util.profiling.jfr.event.PacketEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/PacketEvent.java
  • Type: class
  • Modifiers: public abstract
  • Extends: Event

net.minecraft.util.profiling.jfr.event.PacketEvent#PacketEvent(String,String,String,SocketAddress,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/PacketEvent.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: protocolId, packetDirection, packetId, remoteAddress, bytes. เรียกต่อ: toString().

Parameters

  • String string
  • String string2
  • String string3
  • SocketAddress socketAddress
  • int i

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

SocketAddress socketAddress = ...;
PacketEvent instance = new PacketEvent("value", "value", "value", socketAddress, 0);

PacketReceivedEvent

  • Full name: net.minecraft.util.profiling.jfr.event.PacketReceivedEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/PacketReceivedEvent.java
  • Type: class
  • Modifiers: public
  • Extends: PacketEvent

net.minecraft.util.profiling.jfr.event.PacketReceivedEvent#PacketReceivedEvent(String,String,String,SocketAddress,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/PacketReceivedEvent.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • String string
  • String string2
  • String string3
  • SocketAddress socketAddress
  • int i

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

SocketAddress socketAddress = ...;
PacketReceivedEvent instance = new PacketReceivedEvent("value", "value", "value", socketAddress, 0);

PacketSentEvent

  • Full name: net.minecraft.util.profiling.jfr.event.PacketSentEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/PacketSentEvent.java
  • Type: class
  • Modifiers: public
  • Extends: PacketEvent

net.minecraft.util.profiling.jfr.event.PacketSentEvent#PacketSentEvent(String,String,String,SocketAddress,int)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/PacketSentEvent.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • String string
  • String string2
  • String string3
  • SocketAddress socketAddress
  • int i

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

SocketAddress socketAddress = ...;
PacketSentEvent instance = new PacketSentEvent("value", "value", "value", socketAddress, 0);

ServerTickTimeEvent

  • Full name: net.minecraft.util.profiling.jfr.event.ServerTickTimeEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/ServerTickTimeEvent.java
  • Type: class
  • Modifiers: public
  • Extends: Event

net.minecraft.util.profiling.jfr.event.ServerTickTimeEvent#ServerTickTimeEvent(float)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/ServerTickTimeEvent.java:27
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: averageTickDurationNanos.

Parameters

  • float f

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

ServerTickTimeEvent instance = new ServerTickTimeEvent(0.0F);

StructureGenerationEvent

  • Full name: net.minecraft.util.profiling.jfr.event.StructureGenerationEvent
  • Package: net.minecraft.util.profiling.jfr.event
  • Source: commonnet/minecraft/util/profiling/jfr/event/StructureGenerationEvent.java
  • Type: class
  • Modifiers: public
  • Extends: Event

net.minecraft.util.profiling.jfr.event.StructureGenerationEvent#StructureGenerationEvent(ChunkPos,Holder<Structure>,ResourceKey<Level>)

  • Origin: common
  • Source: net/minecraft/util/profiling/jfr/event/StructureGenerationEvent.java:42
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: chunkPosX, chunkPosZ, structure, level. เรียกต่อ: getRegisteredName(), location(), toString().

Parameters

  • ChunkPos chunkPos
  • Holder<Structure> holder
  • ResourceKey<Level> resourceKey

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

ChunkPos chunkPos = ...;
Holder<Structure> holder = ...;
ResourceKey<Level> resourceKey = ...;
StructureGenerationEvent instance = new StructureGenerationEvent(chunkPos, holder, resourceKey);