Package net.minecraft.world.level.timers
Part 1/1
FunctionCallback
- Full name:
net.minecraft.world.level.timers.FunctionCallback - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/FunctionCallback.java - Type:
class - Modifiers:
public - Implements:
TimerCallback<MinecraftServer>
net.minecraft.world.level.timers.FunctionCallback#FunctionCallback(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionCallback.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FunctionCallback ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: functionId.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
FunctionCallback instance = new FunctionCallback(resourceLocation);
net.minecraft.world.level.timers.FunctionCallback#handle(MinecraftServer,TimerQueue<MinecraftServer>,long)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionCallback.java:17 - Modifiers:
public - Return:
void
คืออะไร
จัดการ handle
ทำงานยังไง
เรียกต่อ: getFunctions(), get(), ifPresent(), execute(), getGameLoopSender().
Parameters
MinecraftServer minecraftServerTimerQueue<MinecraftServer> timerQueuelong l
ตัวอย่างใช้งาน
FunctionCallback instance = ...;
MinecraftServer minecraftServer = ...;
TimerQueue<MinecraftServer> timerQueue = ...;
instance.handle(minecraftServer, timerQueue, 0L);
FunctionCallback$Serializer
- Full name:
net.minecraft.world.level.timers.FunctionCallback$Serializer - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/FunctionCallback.java - Type:
class - Modifiers:
public static - Extends:
TimerCallback.Serializer<MinecraftServer, FunctionCallback>
net.minecraft.world.level.timers.FunctionCallback$Serializer#deserialize(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionCallback.java:32 - Modifiers:
public - Return:
FunctionCallback
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล deserialize
ทำงานยังไง
เรียกต่อ: parse(), getString(). สร้างออบเจ็กต์: FunctionCallback. คืนค่า: new FunctionCallback(resourceLocation).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
FunctionCallback.Serializer instance = ...;
CompoundTag compoundTag = ...;
FunctionCallback result = instance.deserialize(compoundTag);
net.minecraft.world.level.timers.FunctionCallback$Serializer#serialize(CompoundTag,FunctionCallback)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionCallback.java:28 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง serialize
ทำงานยังไง
เรียกต่อ: putString(), toString().
Parameters
CompoundTag compoundTagFunctionCallback functionCallback
ตัวอย่างใช้งาน
FunctionCallback.Serializer instance = ...;
CompoundTag compoundTag = ...;
FunctionCallback functionCallback = ...;
instance.serialize(compoundTag, functionCallback);
net.minecraft.world.level.timers.FunctionCallback$Serializer#Serializer()
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionCallback.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FunctionCallback.Serializer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: withDefaultNamespace().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FunctionTagCallback
- Full name:
net.minecraft.world.level.timers.FunctionTagCallback - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/FunctionTagCallback.java - Type:
class - Modifiers:
public - Implements:
TimerCallback<MinecraftServer>
net.minecraft.world.level.timers.FunctionTagCallback#FunctionTagCallback(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionTagCallback.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FunctionTagCallback ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: tagId.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
FunctionTagCallback instance = new FunctionTagCallback(resourceLocation);
net.minecraft.world.level.timers.FunctionTagCallback#handle(MinecraftServer,TimerQueue<MinecraftServer>,long)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionTagCallback.java:17 - Modifiers:
public - Return:
void
คืออะไร
จัดการ handle
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getFunctions(), getTag(), execute(), getGameLoopSender().
Parameters
MinecraftServer minecraftServerTimerQueue<MinecraftServer> timerQueuelong l
ตัวอย่างใช้งาน
FunctionTagCallback instance = ...;
MinecraftServer minecraftServer = ...;
TimerQueue<MinecraftServer> timerQueue = ...;
instance.handle(minecraftServer, timerQueue, 0L);
FunctionTagCallback$Serializer
- Full name:
net.minecraft.world.level.timers.FunctionTagCallback$Serializer - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/FunctionTagCallback.java - Type:
class - Modifiers:
public static - Extends:
TimerCallback.Serializer<MinecraftServer, FunctionTagCallback>
net.minecraft.world.level.timers.FunctionTagCallback$Serializer#deserialize(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionTagCallback.java:34 - Modifiers:
public - Return:
FunctionTagCallback
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล deserialize
ทำงานยังไง
เรียกต่อ: parse(), getString(). สร้างออบเจ็กต์: FunctionTagCallback. คืนค่า: new FunctionTagCallback(resourceLocation).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
FunctionTagCallback.Serializer instance = ...;
CompoundTag compoundTag = ...;
FunctionTagCallback result = instance.deserialize(compoundTag);
net.minecraft.world.level.timers.FunctionTagCallback$Serializer#serialize(CompoundTag,FunctionTagCallback)
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionTagCallback.java:30 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง serialize
ทำงานยังไง
เรียกต่อ: putString(), toString().
Parameters
CompoundTag compoundTagFunctionTagCallback functionTagCallback
ตัวอย่างใช้งาน
FunctionTagCallback.Serializer instance = ...;
CompoundTag compoundTag = ...;
FunctionTagCallback functionTagCallback = ...;
instance.serialize(compoundTag, functionTagCallback);
net.minecraft.world.level.timers.FunctionTagCallback$Serializer#Serializer()
- Origin:
common - Source:
net/minecraft/world/level/timers/FunctionTagCallback.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FunctionTagCallback.Serializer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: withDefaultNamespace().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TimerCallback
- Full name:
net.minecraft.world.level.timers.TimerCallback - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/TimerCallback.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.timers.TimerCallback#handle(T,TimerQueue<T>,long)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerCallback.java:8 - Modifiers: ``
- Return:
void
คืออะไร
จัดการ handle
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T objectTimerQueue<T> timerQueuelong l
ตัวอย่างใช้งาน
TimerCallback instance = ...;
T object = ...;
TimerQueue<T> timerQueue = ...;
instance.handle(object, timerQueue, 0L);
TimerCallbacks
- Full name:
net.minecraft.world.level.timers.TimerCallbacks - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/TimerCallbacks.java - Type:
class - Modifiers:
public
net.minecraft.world.level.timers.TimerCallbacks#deserialize(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerCallbacks.java:39 - Modifiers:
public - Return:
TimerCallback<C>
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล deserialize
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: tryParse(), getString(), get(), error(). มีจุด return อย่างน้อย 3 จุด.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TimerCallbacks instance = ...;
CompoundTag compoundTag = ...;
TimerCallback<C> result = instance.deserialize(compoundTag);
net.minecraft.world.level.timers.TimerCallbacks#register(TimerCallback.Serializer<C, ?>)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerCallbacks.java:21 - Modifiers:
public - Return:
TimerCallbacks<C>
คืออะไร
ลงทะเบียน register
ทำงานยังไง
เรียกต่อ: put(), getId(), getCls(). คืนค่า: this.
Parameters
TimerCallback.Serializer<C, ?> serializer
ตัวอย่างใช้งาน
TimerCallbacks instance = ...;
TimerCallback.Serializer<C, ?> serializer = ...;
TimerCallbacks<C> result = instance.register(serializer);
net.minecraft.world.level.timers.TimerCallbacks#serialize(T)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerCallbacks.java:31 - Modifiers:
public - Return:
CompoundTag
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง serialize
ทำงานยังไง
เรียกต่อ: getSerializer(), getClass(), putString(), getId(), toString(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
T timerCallback
ตัวอย่างใช้งาน
TimerCallbacks instance = ...;
T timerCallback = ...;
CompoundTag result = instance.serialize(timerCallback);
TimerQueue
- Full name:
net.minecraft.world.level.timers.TimerQueue - Package:
net.minecraft.world.level.timers - Source:
common—net/minecraft/world/level/timers/TimerQueue.java - Type:
class - Modifiers:
public
net.minecraft.world.level.timers.TimerQueue#getEventsIds()
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:84 - Modifiers:
public - Return:
Set<String>
คืออะไร
อ่านค่า Events Ids
ทำงานยังไง
เรียกต่อ: unmodifiableSet(), rowKeySet(). คืนค่า: Collections.unmodifiableSet(this.events.rowKeySet()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.timers.TimerQueue#remove(String)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:76 - Modifiers:
public - Return:
int
คืออะไร
ลบ remove
ทำงานยังไง
เรียกต่อ: row(), values(), forEach(), size(), clear(). คืนค่า: i.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.timers.TimerQueue#schedule(String,long,TimerCallback<T>)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:67 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ schedule ตาม implementation ของ TimerQueue
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: sequentialId. เรียกต่อ: contains(), plus(), put(), add(). สร้างออบเจ็กต์: TimerQueue.Event<>.
Parameters
String stringlong lTimerCallback<T> timerCallback
ตัวอย่างใช้งาน
TimerQueue instance = ...;
TimerCallback<T> timerCallback = ...;
instance.schedule("value", 0L, timerCallback);
net.minecraft.world.level.timers.TimerQueue#store()
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:106 - Modifiers:
public - Return:
ListTag
คืออะไร
ดำเนินการ store ตาม implementation ของ TimerQueue
ทำงานยังไง
เรียกต่อ: stream(), sorted(), createComparator(), map(), forEach(). สร้างออบเจ็กต์: ListTag. คืนค่า: listTag.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.timers.TimerQueue#tick(T,long)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:54 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: peek(), remove(), handle().
Parameters
T objectlong l
ตัวอย่างใช้งาน
net.minecraft.world.level.timers.TimerQueue#TimerQueue(TimerCallbacks<T>)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TimerQueue ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: callbacksRegistry.
Parameters
TimerCallbacks<T> timerCallbacks
ตัวอย่างใช้งาน
net.minecraft.world.level.timers.TimerQueue#TimerQueue(TimerCallbacks<T>,Stream<? extends Dynamic<?>>)
- Origin:
common - Source:
net/minecraft/world/level/timers/TimerQueue.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TimerQueue ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: sequentialId. เรียกต่อ: clear(), forEach(), convert(), getValue(), loadEvent(), warn().
Parameters
TimerCallbacks<T> timerCallbacksStream<? extends Dynamic<?>> stream
ตัวอย่างใช้งาน
TimerCallbacks<T> timerCallbacks = ...;
Stream<? extends Dynamic<?>> stream = ...;
TimerQueue instance = new TimerQueue(timerCallbacks, stream);