Package net.minecraft.client.resources.server
Part 1/1
DownloadedPackSource
- Full name:
net.minecraft.client.resources.server.DownloadedPackSource - Package:
net.minecraft.client.resources.server - Source:
clientOnly—net/minecraft/client/resources/server/DownloadedPackSource.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.client.resources.server.DownloadedPackSource#allowServerPacks()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:382 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ allowServerPacks ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#cleanupAfterDisconnect()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:416 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cleanupAfterDisconnect ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
แก้ state: packFeedback. เรียกต่อ: popAll(), resetPromptStatus().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#close()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:422 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#configureForLocalWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:376 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ configureForLocalWorld ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
แก้ state: packType, packFeedback. เรียกต่อ: allowServerPacks().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#configureForServerControl(Connection,ServerPackManager.PackPromptStatus)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:361 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ configureForServerControl ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
แยกกรณีด้วย switch. แก้ state: packType, packFeedback. เรียกต่อ: createPackResponseSender(), allowServerPacks(), rejectServerPacks(), resetPromptStatus().
Parameters
Connection connectionServerPackManager.PackPromptStatus packPromptStatus
ตัวอย่างใช้งาน
DownloadedPackSource instance = ...;
Connection connection = ...;
ServerPackManager.PackPromptStatus packPromptStatus = ...;
instance.configureForServerControl(connection, packPromptStatus);
net.minecraft.client.resources.server.DownloadedPackSource#createRepositorySource()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:256 - Modifiers:
public - Return:
RepositorySource
คืออะไร
สร้าง Repository Source
ทำงานยังไง
เรียกต่อ: loadPacks(). คืนค่า: consumer -> this.packSource.loadPacks(consumer).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#DownloadedPackSource(Minecraft,Path,GameConfig.UserData)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:84 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DownloadedPackSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการจัดการ exception. แก้ state: minecraft, downloadQueue, manager. เรียกต่อ: createDownloader(), reportUpdate(), reportFinalResult(), createReloadConfig(), createUpdateScheduler(). สร้างออบเจ็กต์: DownloadQueue, UncheckedIOException, ServerPackManager, PackLoadFeedback.
Parameters
Minecraft minecraftPath pathGameConfig.UserData userData
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
Path path = ...;
GameConfig.UserData userData = ...;
DownloadedPackSource instance = new DownloadedPackSource(minecraft, path, userData);
net.minecraft.client.resources.server.DownloadedPackSource#onRecovery()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:282 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Recovery
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: packSource. เรียกต่อ: onFailure(), loadRequestedPacks(), packsToLoad(), warn(), of(), configureSource().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#onRecoveryFailure()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:295 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Recovery Failure
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pendingReload, packSource. เรียกต่อ: onFailure().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#onReloadSuccess()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:303 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Reload Success
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pendingReload. เรียกต่อ: onSuccess().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#popAll()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:328 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popAll ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#popPack(UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:324 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPack ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#pushLocalPack(UUID,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:320 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pushLocalPack ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
UUID uUIDPath path
ตัวอย่างใช้งาน
DownloadedPackSource instance = ...;
UUID uUID = ...;
Path path = ...;
instance.pushLocalPack(uUID, path);
net.minecraft.client.resources.server.DownloadedPackSource#pushPack(UUID,URL,String)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:315 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pushPack ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
เรียกต่อ: tryParseSha1Hash().
Parameters
UUID uUIDURL uRLString string
ตัวอย่างใช้งาน
DownloadedPackSource instance = ...;
UUID uUID = ...;
URL uRL = ...;
instance.pushPack(uUID, uRL, "value");
net.minecraft.client.resources.server.DownloadedPackSource#rejectServerPacks()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:386 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ rejectServerPacks ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.DownloadedPackSource#waitForPackFeedback(UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/DownloadedPackSource.java:390 - Modifiers:
public - Return:
CompletableFuture<Void>
คืออะไร
ดำเนินการ waitForPackFeedback ตาม implementation ของ DownloadedPackSource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: packFeedback. เรียกต่อ: reportUpdate(), reportFinalResult(), equals(), complete(), completeExceptionally(). สร้างออบเจ็กต์: CompletableFuture<>, PackLoadFeedback, IllegalStateException. คืนค่า: completableFuture.
Parameters
UUID uUID
ตัวอย่างใช้งาน
DownloadedPackSource instance = ...;
UUID uUID = ...;
CompletableFuture<Void> result = instance.waitForPackFeedback(uUID);
PackDownloader
- Full name:
net.minecraft.client.resources.server.PackDownloader - Package:
net.minecraft.client.resources.server - Source:
clientOnly—net/minecraft/client/resources/server/PackDownloader.java - Type:
interface - Modifiers:
public
net.minecraft.client.resources.server.PackDownloader#download(Map<UUID, DownloadRequest>,Consumer<BatchResult>)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/PackDownloader.java:13 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ download ตาม implementation ของ PackDownloader
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Map<UUID, DownloadRequest> mapConsumer<BatchResult> consumer
ตัวอย่างใช้งาน
PackDownloader instance = ...;
Map<UUID, DownloadRequest> map = ...;
Consumer<BatchResult> consumer = ...;
instance.download(map, consumer);
PackLoadFeedback
- Full name:
net.minecraft.client.resources.server.PackLoadFeedback - Package:
net.minecraft.client.resources.server - Source:
clientOnly—net/minecraft/client/resources/server/PackLoadFeedback.java - Type:
interface - Modifiers:
public
net.minecraft.client.resources.server.PackLoadFeedback#reportFinalResult(UUID,PackLoadFeedback.FinalResult)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/PackLoadFeedback.java:11 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ reportFinalResult ตาม implementation ของ PackLoadFeedback
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
UUID uUIDPackLoadFeedback.FinalResult finalResult
ตัวอย่างใช้งาน
PackLoadFeedback instance = ...;
UUID uUID = ...;
PackLoadFeedback.FinalResult finalResult = ...;
instance.reportFinalResult(uUID, finalResult);
net.minecraft.client.resources.server.PackLoadFeedback#reportUpdate(UUID,PackLoadFeedback.Update)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/PackLoadFeedback.java:9 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ reportUpdate ตาม implementation ของ PackLoadFeedback
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
UUID uUIDPackLoadFeedback.Update update
ตัวอย่างใช้งาน
PackLoadFeedback instance = ...;
UUID uUID = ...;
PackLoadFeedback.Update update = ...;
instance.reportUpdate(uUID, update);
PackReloadConfig
- Full name:
net.minecraft.client.resources.server.PackReloadConfig - Package:
net.minecraft.client.resources.server - Source:
clientOnly—net/minecraft/client/resources/server/PackReloadConfig.java - Type:
interface - Modifiers:
public
net.minecraft.client.resources.server.PackReloadConfig#scheduleReload(PackReloadConfig.Callbacks)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/PackReloadConfig.java:11 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ scheduleReload ตาม implementation ของ PackReloadConfig
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
PackReloadConfig.Callbacks callbacks
ตัวอย่างใช้งาน
PackReloadConfig instance = ...;
PackReloadConfig.Callbacks callbacks = ...;
instance.scheduleReload(callbacks);
ServerPackManager
- Full name:
net.minecraft.client.resources.server.ServerPackManager - Package:
net.minecraft.client.resources.server - Source:
clientOnly—net/minecraft/client/resources/server/ServerPackManager.java - Type:
class - Modifiers:
public
net.minecraft.client.resources.server.ServerPackManager#allowServerPacks()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:122 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ allowServerPacks ตาม implementation ของ ServerPackManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: packPromptStatus. เรียกต่อ: isRemoved(), acceptPack(), registerForUpdate().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.ServerPackManager#popAll()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:114 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popAll ตาม implementation ของ ServerPackManager
ทำงานยังไง
มีการวนลูป. เรียกต่อ: setRemovalReasonIfNotSet(), registerForUpdate().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.ServerPackManager#popPack(UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:106 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPack ตาม implementation ของ ServerPackManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: findPackInfo(), setRemovalReasonIfNotSet(), registerForUpdate().
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.ServerPackManager#pushLocalPack(UUID,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:62 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pushLocalPack ตาม implementation ของ ServerPackManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: packPromptStatus. เรียกต่อ: reportFinalResult(), toUri(), toURL(), ServerPackData(), pushNewPack(). สร้างออบเจ็กต์: IllegalStateException, ServerPackManager.ServerPackData.
Parameters
UUID uUIDPath path
ตัวอย่างใช้งาน
ServerPackManager instance = ...;
UUID uUID = ...;
Path path = ...;
instance.pushLocalPack(uUID, path);
net.minecraft.client.resources.server.ServerPackManager#pushPack(UUID,URL,HashCode)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:54 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pushPack ตาม implementation ของ ServerPackManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: packPromptStatus. เรียกต่อ: reportFinalResult(), pushNewPack(), ServerPackData(). สร้างออบเจ็กต์: ServerPackManager.ServerPackData.
Parameters
UUID uUIDURL uRLHashCode hashCode
ตัวอย่างใช้งาน
ServerPackManager instance = ...;
UUID uUID = ...;
URL uRL = ...;
HashCode hashCode = ...;
instance.pushPack(uUID, uRL, hashCode);
net.minecraft.client.resources.server.ServerPackManager#rejectServerPacks()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:134 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ rejectServerPacks ตาม implementation ของ ServerPackManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: packPromptStatus. เรียกต่อ: setRemovalReasonIfNotSet(), registerForUpdate().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.ServerPackManager#resetPromptStatus()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:146 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Prompt Status
ทำงานยังไง
แก้ state: packPromptStatus.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.server.ServerPackManager#ServerPackManager(PackDownloader,PackLoadFeedback,PackReloadConfig,Runnable,ServerPackManager.PackPromptStatus)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ServerPackManager ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: downloader, packLoadFeedback, reloadConfig, updateRequest, packPromptStatus.
Parameters
PackDownloader packDownloaderPackLoadFeedback packLoadFeedbackPackReloadConfig packReloadConfigRunnable runnableServerPackManager.PackPromptStatus packPromptStatus
ตัวอย่างใช้งาน
PackDownloader packDownloader = ...;
PackLoadFeedback packLoadFeedback = ...;
PackReloadConfig packReloadConfig = ...;
Runnable runnable = ...;
ServerPackManager.PackPromptStatus packPromptStatus = ...;
ServerPackManager instance = new ServerPackManager(packDownloader, packLoadFeedback, packReloadConfig, runnable, packPromptStatus);
net.minecraft.client.resources.server.ServerPackManager#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/server/ServerPackManager.java:150 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: updateDownloads(), triggerReloadIfNeeded(), cleanupRemovedPacks().
Parameters
- ไม่มี