Package net.minecraft.client.gui.components.toasts
Part 1/1
AdvancementToast
- Full name:
net.minecraft.client.gui.components.toasts.AdvancementToast - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/AdvancementToast.java - Type:
class - Modifiers:
public - Implements:
Toast
net.minecraft.client.gui.components.toasts.AdvancementToast#AdvancementToast(AdvancementHolder)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/AdvancementToast.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AdvancementToast ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: advancement.
Parameters
AdvancementHolder advancementHolder
ตัวอย่างใช้งาน
AdvancementHolder advancementHolder = ...;
AdvancementToast instance = new AdvancementToast(advancementHolder);
net.minecraft.client.gui.components.toasts.AdvancementToast#getWantedVisibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/AdvancementToast.java:30 - Modifiers:
public - Return:
Toast.Visibility
คืออะไร
อ่านค่า Wanted Visibility
ทำงานยังไง
คืนค่า: this.wantedVisibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.AdvancementToast#render(GuiGraphics,Font,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/AdvancementToast.java:52 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: value(), display(), orElse(), blitSprite(), width(), height(), split(), getTitle().
Parameters
GuiGraphics guiGraphicsFont fontlong l
ตัวอย่างใช้งาน
AdvancementToast instance = ...;
GuiGraphics guiGraphics = ...;
Font font = ...;
instance.render(guiGraphics, font, 0L);
net.minecraft.client.gui.components.toasts.AdvancementToast#update(ToastManager,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/AdvancementToast.java:35 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: wantedVisibility, playedSound. เรียกต่อ: value(), display(), orElse(), getType(), getMinecraft(), getSoundManager(), play(), forUI().
Parameters
ToastManager toastManagerlong l
ตัวอย่างใช้งาน
AdvancementToast instance = ...;
ToastManager toastManager = ...;
instance.update(toastManager, 0L);
RecipeToast
- Full name:
net.minecraft.client.gui.components.toasts.RecipeToast - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/RecipeToast.java - Type:
class - Modifiers:
public - Implements:
Toast
net.minecraft.client.gui.components.toasts.RecipeToast#addOrUpdate(ToastManager,RecipeDisplay)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/RecipeToast.java:73 - Modifiers:
public static - Return:
void
คืออะไร
เพิ่ม Or Update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getToast(), addToast(), fromLevel(), getMinecraft(), craftingStation(), resolveForFirstStack(), result(), addItem(). สร้างออบเจ็กต์: RecipeToast.
Parameters
ToastManager toastManagerRecipeDisplay recipeDisplay
ตัวอย่างใช้งาน
ToastManager toastManager = ...;
RecipeDisplay recipeDisplay = ...;
RecipeToast.addOrUpdate(toastManager, recipeDisplay);
net.minecraft.client.gui.components.toasts.RecipeToast#getWantedVisibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/RecipeToast.java:32 - Modifiers:
public - Return:
Toast.Visibility
คืออะไร
อ่านค่า Wanted Visibility
ทำงานยังไง
คืนค่า: this.wantedVisibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.RecipeToast#render(GuiGraphics,Font,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/RecipeToast.java:55 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: blitSprite(), width(), height(), drawString(), get(), pose(), pushPose(), scale().
Parameters
GuiGraphics guiGraphicsFont fontlong l
ตัวอย่างใช้งาน
RecipeToast instance = ...;
GuiGraphics guiGraphics = ...;
Font font = ...;
instance.render(guiGraphics, font, 0L);
net.minecraft.client.gui.components.toasts.RecipeToast#update(ToastManager,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/RecipeToast.java:37 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastChanged, changed, wantedVisibility, displayedRecipeIndex. เรียกต่อ: isEmpty(), getNotificationDisplayTimeMultiplier(), max(), size().
Parameters
ToastManager toastManagerlong l
ตัวอย่างใช้งาน
SystemToast
- Full name:
net.minecraft.client.gui.components.toasts.SystemToast - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/SystemToast.java - Type:
class - Modifiers:
public - Implements:
Toast
net.minecraft.client.gui.components.toasts.SystemToast#add(ToastManager,SystemToast.SystemToastId,Component,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:115 - Modifiers:
public static - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: addToast(). สร้างออบเจ็กต์: SystemToast.
Parameters
ToastManager toastManagerSystemToast.SystemToastId systemToastIdComponent componentComponent component2
ตัวอย่างใช้งาน
ToastManager toastManager = ...;
SystemToast.SystemToastId systemToastId = ...;
Component component = ...;
Component component2 = ...;
SystemToast.add(toastManager, systemToastId, component, component2);
net.minecraft.client.gui.components.toasts.SystemToast#addOrUpdate(ToastManager,SystemToast.SystemToastId,Component,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:119 - Modifiers:
public static - Return:
void
คืออะไร
เพิ่ม Or Update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getToast(), add(), reset().
Parameters
ToastManager toastManagerSystemToast.SystemToastId systemToastIdComponent componentComponent component2
ตัวอย่างใช้งาน
ToastManager toastManager = ...;
SystemToast.SystemToastId systemToastId = ...;
Component component = ...;
Component component2 = ...;
SystemToast.addOrUpdate(toastManager, systemToastId, component, component2);
net.minecraft.client.gui.components.toasts.SystemToast#forceHide()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:70 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forceHide ตาม implementation ของ SystemToast
ทำงานยังไง
แก้ state: forceHide.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#forceHide(ToastManager,SystemToast.SystemToastId)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:128 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ forceHide ตาม implementation ของ SystemToast
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getToast().
Parameters
ToastManager toastManagerSystemToast.SystemToastId systemToastId
ตัวอย่างใช้งาน
ToastManager toastManager = ...;
SystemToast.SystemToastId systemToastId = ...;
SystemToast.forceHide(toastManager, systemToastId);
net.minecraft.client.gui.components.toasts.SystemToast#getToken()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:111 - Modifiers:
public - Return:
SystemToast.SystemToastId
คืออะไร
อ่านค่า Token
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#getWantedVisibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:74 - Modifiers:
public - Return:
Toast.Visibility
คืออะไร
อ่านค่า Wanted Visibility
ทำงานยังไง
คืนค่า: this.wantedVisibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#height()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:65 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ SystemToast
ทำงานยังไง
เรียกต่อ: max(), size(). คืนค่า: 20 + Math.max(this.messageLines.size(), 1) * 12.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#multiline(Minecraft,SystemToast.SystemToastId,Component,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:42 - Modifiers:
public static - Return:
SystemToast
คืออะไร
ดำเนินการ multiline ตาม implementation ของ SystemToast
ทำงานยังไง
เรียกต่อ: split(), max(), stream(), mapToInt(), orElse(). สร้างออบเจ็กต์: SystemToast. คืนค่า: new SystemToast(systemToastId, component, list, i + 30).
Parameters
Minecraft minecraftSystemToast.SystemToastId systemToastIdComponent componentComponent component2
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
SystemToast.SystemToastId systemToastId = ...;
Component component = ...;
Component component2 = ...;
SystemToast result = SystemToast.multiline(minecraft, systemToastId, component, component2);
net.minecraft.client.gui.components.toasts.SystemToast#onChunkLoadFailure(Minecraft,ChunkPos)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:169 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ Chunk Load Failure
ทำงานยังไง
เรียกต่อ: addOrUpdate(), getToastManager(), translatable(), translationArg(), withStyle().
Parameters
Minecraft minecraftChunkPos chunkPos
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
ChunkPos chunkPos = ...;
SystemToast.onChunkLoadFailure(minecraft, chunkPos);
net.minecraft.client.gui.components.toasts.SystemToast#onChunkSaveFailure(Minecraft,ChunkPos)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:178 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ Chunk Save Failure
ทำงานยังไง
เรียกต่อ: addOrUpdate(), getToastManager(), translatable(), translationArg(), withStyle().
Parameters
Minecraft minecraftChunkPos chunkPos
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
ChunkPos chunkPos = ...;
SystemToast.onChunkSaveFailure(minecraft, chunkPos);
net.minecraft.client.gui.components.toasts.SystemToast#onFileDropFailure(Minecraft,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:151 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ File Drop Failure
ทำงานยังไง
เรียกต่อ: add(), getToastManager(), translatable().
Parameters
Minecraft minecraftint i
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#onLowDiskSpace(Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:160 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ Low Disk Space
ทำงานยังไง
เรียกต่อ: addOrUpdate(), getToastManager(), translatable().
Parameters
Minecraft minecraft
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#onPackCopyFailure(Minecraft,String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:147 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ Pack Copy Failure
ทำงานยังไง
เรียกต่อ: add(), getToastManager(), translatable(), literal().
Parameters
Minecraft minecraftString string
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#onWorldAccessFailure(Minecraft,String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:135 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ World Access Failure
ทำงานยังไง
เรียกต่อ: add(), getToastManager(), translatable(), literal().
Parameters
Minecraft minecraftString string
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#onWorldDeleteFailure(Minecraft,String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:141 - Modifiers:
public static - Return:
void
คืออะไร
จัดการเหตุการณ์ World Delete Failure
ทำงานยังไง
เรียกต่อ: add(), getToastManager(), translatable(), literal().
Parameters
Minecraft minecraftString string
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#render(GuiGraphics,Font,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:91 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: blitSprite(), width(), height(), isEmpty(), drawString(), size(), get().
Parameters
GuiGraphics guiGraphicsFont fontlong l
ตัวอย่างใช้งาน
SystemToast instance = ...;
GuiGraphics guiGraphics = ...;
Font font = ...;
instance.render(guiGraphics, font, 0L);
net.minecraft.client.gui.components.toasts.SystemToast#reset(Component,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:105 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต reset
ทำงานยังไง
แก้ state: title, messageLines, changed. เรียกต่อ: nullToEmpty().
Parameters
Component componentComponent component2
ตัวอย่างใช้งาน
SystemToast instance = ...;
Component component = ...;
Component component2 = ...;
instance.reset(component, component2);
net.minecraft.client.gui.components.toasts.SystemToast#SystemToast(SystemToast.SystemToastId,Component,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SystemToast ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: nullToEmpty(), max(), getInstance(), width().
Parameters
SystemToast.SystemToastId systemToastIdComponent componentComponent component2
ตัวอย่างใช้งาน
SystemToast.SystemToastId systemToastId = ...;
Component component = ...;
Component component2 = ...;
SystemToast instance = new SystemToast(systemToastId, component, component2);
net.minecraft.client.gui.components.toasts.SystemToast#update(ToastManager,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:79 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastChanged, changed, wantedVisibility. เรียกต่อ: getNotificationDisplayTimeMultiplier().
Parameters
ToastManager toastManagerlong l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast#width()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:60 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ SystemToast
ทำงานยังไง
คืนค่า: this.width.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SystemToast$SystemToastId
- Full name:
net.minecraft.client.gui.components.toasts.SystemToast$SystemToastId - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/SystemToast.java - Type:
class - Modifiers:
public static
net.minecraft.client.gui.components.toasts.SystemToast$SystemToastId#SystemToastId()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:206 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SystemToast.SystemToastId ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.SystemToast$SystemToastId#SystemToastId(long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/SystemToast.java:202 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SystemToast.SystemToastId ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: displayTime.
Parameters
long l
ตัวอย่างใช้งาน
Toast
- Full name:
net.minecraft.client.gui.components.toasts.Toast - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/Toast.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.components.toasts.Toast#getToken()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:25 - Modifiers:
default - Return:
Object
คืออะไร
อ่านค่า Token
ทำงานยังไง
คืนค่า: NO_TOKEN.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.Toast#getWantedVisibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:19 - Modifiers: ``
- Return:
Toast.Visibility
คืออะไร
อ่านค่า Wanted Visibility
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.Toast#height()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:33 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ Toast
ทำงานยังไง
คืนค่า: 32.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.Toast#occcupiedSlotCount()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:37 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ occcupiedSlotCount ตาม implementation ของ Toast
ทำงานยังไง
เรียกต่อ: positiveCeilDiv(), height(). คืนค่า: Mth.positiveCeilDiv(this.height(), 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.Toast#render(GuiGraphics,Font,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:23 - Modifiers: ``
- Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
GuiGraphics guiGraphicsFont fontlong l
ตัวอย่างใช้งาน
Toast instance = ...;
GuiGraphics guiGraphics = ...;
Font font = ...;
instance.render(guiGraphics, font, 0L);
net.minecraft.client.gui.components.toasts.Toast#update(ToastManager,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:21 - Modifiers: ``
- Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ToastManager toastManagerlong l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.Toast#width()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/Toast.java:29 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ Toast
ทำงานยังไง
คืนค่า: 160.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ToastManager
- Full name:
net.minecraft.client.gui.components.toasts.ToastManager - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/ToastManager.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.components.toasts.ToastManager#addToast(Toast)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:107 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Toast
ทำงานยังไง
เรียกต่อ: add().
Parameters
Toast toast
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#clear()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:101 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 3 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#getMinecraft()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:111 - Modifiers:
public - Return:
Minecraft
คืออะไร
อ่านค่า Minecraft
ทำงานยังไง
คืนค่า: this.minecraft.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#getNotificationDisplayTimeMultiplier()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:115 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Notification Display Time Multiplier
ทำงานยังไง
เรียกต่อ: notificationDisplayTime(), get(). คืนค่า: this.minecraft.options.notificationDisplayTime().get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#getToast(Class<? extends T>,Object)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:84 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า Toast
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isAssignableFrom(), getClass(), getToken(), equals(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Class<? extends T> class_Object object
ตัวอย่างใช้งาน
ToastManager instance = ...;
Class<? extends T> class_ = ...;
Object object = ...;
T result = instance.getToast(class_, object);
net.minecraft.client.gui.components.toasts.ToastManager#render(GuiGraphics)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:54 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: guiWidth().
Parameters
GuiGraphics guiGraphics
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#ToastManager(Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ToastManager ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft.
Parameters
Minecraft minecraft
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.ToastManager#update()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/ToastManager.java:29 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: removeIf(), hasFinishedRendering(), clear(), isEmpty(), freeSlotCount(), occcupiedSlotCount(), findFreeSlotsIndex(), add(). สร้างออบเจ็กต์: ToastManager.ToastInstance<>. มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TutorialToast
- Full name:
net.minecraft.client.gui.components.toasts.TutorialToast - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/TutorialToast.java - Type:
class - Modifiers:
public - Implements:
Toast
net.minecraft.client.gui.components.toasts.TutorialToast#getWantedVisibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:53 - Modifiers:
public - Return:
Toast.Visibility
คืออะไร
อ่านค่า Wanted Visibility
ทำงานยังไง
คืนค่า: this.visibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.TutorialToast#height()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:73 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ TutorialToast
ทำงานยังไง
เรียกต่อ: contentHeight(). คืนค่า: 7 + this.contentHeight() + 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.TutorialToast#hide()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:108 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ hide ตาม implementation ของ TutorialToast
ทำงานยังไง
แก้ state: visibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.TutorialToast#render(GuiGraphics,Font,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:82 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: height(), blitSprite(), width(), size(), contentHeight(), drawString(), get(), fill().
Parameters
GuiGraphics guiGraphicsFont fontlong l
ตัวอย่างใช้งาน
TutorialToast instance = ...;
GuiGraphics guiGraphics = ...;
Font font = ...;
instance.render(guiGraphics, font, 0L);
net.minecraft.client.gui.components.toasts.TutorialToast#TutorialToast(Font,TutorialToast.Icons,Component,Component,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TutorialToast ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontTutorialToast.Icons iconsComponent componentComponent component2boolean bl
ตัวอย่างใช้งาน
Font font = ...;
TutorialToast.Icons icons = ...;
Component component = ...;
Component component2 = ...;
TutorialToast instance = new TutorialToast(font, icons, component, component2, true);
net.minecraft.client.gui.components.toasts.TutorialToast#TutorialToast(Font,TutorialToast.Icons,Component,Component,boolean,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TutorialToast ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: icon, lines, progressable, timeToDisplayMs. เรียกต่อ: addAll(), split(), copy(), withColor(). สร้างออบเจ็กต์: ArrayList<>.
Parameters
Font fontTutorialToast.Icons iconsComponent componentComponent component2boolean blint i
ตัวอย่างใช้งาน
Font font = ...;
TutorialToast.Icons icons = ...;
Component component = ...;
Component component2 = ...;
TutorialToast instance = new TutorialToast(font, icons, component, component2, true, 0);
net.minecraft.client.gui.components.toasts.TutorialToast#update(ToastManager,long)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:58 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: progress, smoothedProgress, lastSmoothingTime. เรียกต่อ: min(), hide(), clampedLerp().
Parameters
ToastManager toastManagerlong l
ตัวอย่างใช้งาน
net.minecraft.client.gui.components.toasts.TutorialToast#updateProgress(float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:112 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Progress
ทำงานยังไง
แก้ state: progress.
Parameters
float f
ตัวอย่างใช้งาน
TutorialToast$Icons
- Full name:
net.minecraft.client.gui.components.toasts.TutorialToast$Icons - Package:
net.minecraft.client.gui.components.toasts - Source:
clientOnly—net/minecraft/client/gui/components/toasts/TutorialToast.java - Type:
enum - Modifiers:
public
net.minecraft.client.gui.components.toasts.TutorialToast$Icons#render(GuiGraphics,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/components/toasts/TutorialToast.java:132 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: blitSprite().
Parameters
GuiGraphics guiGraphicsint iint j
ตัวอย่างใช้งาน
TutorialToast.Icons instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0);