Package net.minecraft.client.gui.screens.packs
Part 1/1
PackSelectionModel
- Full name:
net.minecraft.client.gui.screens.packs.PackSelectionModel - Package:
net.minecraft.client.gui.screens.packs - Source:
clientOnly—net/minecraft/client/gui/screens/packs/PackSelectionModel.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.screens.packs.PackSelectionModel#commit()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:53 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ commit ตาม implementation ของ PackSelectionModel
ทำงานยังไง
เรียกต่อ: updateRepoSelectedList(), accept().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel#findNewPacks()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:58 - Modifiers:
public - Return:
void
คืออะไร
ค้นหา New Packs
ทำงานยังไง
เรียกต่อ: reload(), retainAll(), getAvailablePacks(), clear(), addAll(), removeAll().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel#getSelected()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:45 - Modifiers:
public - Return:
Stream<PackSelectionModel.Entry>
คืออะไร
อ่านค่า Selected
ทำงานยังไง
เรียกต่อ: stream(), map(), SelectedPackEntry(). สร้างออบเจ็กต์: PackSelectionModel.SelectedPackEntry. คืนค่า: this.selected.stream().map(pack -> new PackSelectionModel.SelectedPackEntry(pack)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PackSelectionModel instance = ...;
Stream<PackSelectionModel.Entry> result = instance.getSelected();
net.minecraft.client.gui.screens.packs.PackSelectionModel#getUnselected()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:41 - Modifiers:
public - Return:
Stream<PackSelectionModel.Entry>
คืออะไร
อ่านค่า Unselected
ทำงานยังไง
เรียกต่อ: stream(), map(), UnselectedPackEntry(). สร้างออบเจ็กต์: PackSelectionModel.UnselectedPackEntry. คืนค่า: this.unselected.stream().map(pack -> new PackSelectionModel.UnselectedPackEntry(pack)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PackSelectionModel instance = ...;
Stream<PackSelectionModel.Entry> result = instance.getUnselected();
net.minecraft.client.gui.screens.packs.PackSelectionModel#PackSelectionModel(Runnable,Function<Pack, ResourceLocation>,PackRepository,Consumer<PackRepository>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PackSelectionModel ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: onListChanged, iconGetter, repository, selected, unselected, output. เรียกต่อ: newArrayList(), getSelectedPacks(), reverse(), getAvailablePacks(), removeAll().
Parameters
Runnable runnableFunction<Pack, ResourceLocation> functionPackRepository packRepositoryConsumer<PackRepository> consumer
ตัวอย่างใช้งาน
Runnable runnable = ...;
Function<Pack, ResourceLocation> function = ...;
PackRepository packRepository = ...;
Consumer<PackRepository> consumer = ...;
PackSelectionModel instance = new PackSelectionModel(runnable, function, packRepository, consumer);
PackSelectionModel$Entry
- Full name:
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry - Package:
net.minecraft.client.gui.screens.packs - Source:
clientOnly—net/minecraft/client/gui/screens/packs/PackSelectionModel.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#canMoveDown()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:108 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Move Down
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#canMoveUp()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:106 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Move Up
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#canSelect()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:98 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Select
ทำงานยังไง
เรียกต่อ: isSelected(). คืนค่า: !this.isSelected().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#canUnselect()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:102 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Unselect
ทำงานยังไง
เรียกต่อ: isSelected(), isRequired(). คืนค่า: this.isSelected() && !this.isRequired().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getCompatibility()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:70 - Modifiers: ``
- Return:
PackCompatibility
คืออะไร
อ่านค่า Compatibility
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getDescription()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:76 - Modifiers: ``
- Return:
Component
คืออะไร
อ่านค่า Description
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getExtendedDescription()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:80 - Modifiers:
default - Return:
Component
คืออะไร
อ่านค่า Extended Description
ทำงานยังไง
เรียกต่อ: getPackSource(), decorate(), getDescription(). คืนค่า: this.getPackSource().decorate(this.getDescription()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getIconTexture()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:68 - Modifiers: ``
- Return:
ResourceLocation
คืออะไร
อ่านค่า Icon Texture
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getId()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:72 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Id
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getPackSource()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:78 - Modifiers: ``
- Return:
PackSource
คืออะไร
อ่านค่า Pack Source
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#getTitle()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:74 - Modifiers: ``
- Return:
Component
คืออะไร
อ่านค่า Title
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#isFixedPosition()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:84 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fixed Position
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#isRequired()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:86 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Required
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#isSelected()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:96 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Selected
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#moveDown()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:94 - Modifiers: ``
- Return:
void
คืออะไร
เคลื่อนที่ Down
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#moveUp()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:92 - Modifiers: ``
- Return:
void
คืออะไร
เคลื่อนที่ Up
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#select()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:88 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ select ตาม implementation ของ PackSelectionModel$Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionModel$Entry#unselect()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionModel.java:90 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ unselect ตาม implementation ของ PackSelectionModel$Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PackSelectionScreen
- Full name:
net.minecraft.client.gui.screens.packs.PackSelectionScreen - Package:
net.minecraft.client.gui.screens.packs - Source:
clientOnly—net/minecraft/client/gui/screens/packs/PackSelectionScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.packs.PackSelectionScreen#clearSelected()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:175 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Selected
ทำงานยังไง
เรียกต่อ: setSelected().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#copyPacks(Minecraft,List<Path>,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:187 - Modifiers:
protected static - Return:
void
คืออะไร
คัดลอก Packs
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: forEach(), walk(), copyBetweenDirs(), getParent(), warn(), setTrue(), isTrue(), onPackCopyFailure(). สร้างออบเจ็กต์: MutableBoolean.
Parameters
Minecraft minecraftList<Path> listPath path
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
List<Path> list = ...;
Path path = ...;
@Override
protected void copyPacks(Minecraft minecraft, List<Path> list, Path path) {
super.copyPacks(minecraft, list, path);
}
net.minecraft.client.gui.screens.packs.PackSelectionScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:103 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ PackSelectionScreen
ทำงานยังไง
แก้ state: availablePackList, selectedPackList, doneButton. เรียกต่อ: addToHeader(), vertical(), spacing(), defaultCellSetting(), alignHorizontallyCenter(), addChild(), getTitle(), addRenderableWidget(). สร้างออบเจ็กต์: StringWidget, TransferableSelectionList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:87 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: commit(), closeWatcher().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#onFilesDrop(List<Path>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:209 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Files Drop
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: extractPackNames(), collect(), joining(), setScreen(), size(), directoryValidator(), createZipPack(), createDirectoryPack(). สร้างออบเจ็กต์: ConfirmScreen, ArrayList<>, HashSet<>, PackDetector<Path>. มีจุด return อย่างน้อย 2 จุด.
Parameters
List<Path> list
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#PackSelectionScreen(PackRepository,Consumer<PackRepository>,Path,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:80 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PackSelectionScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: model, packDir, watcher. เรียกต่อ: create(). สร้างออบเจ็กต์: PackSelectionModel.
Parameters
PackRepository packRepositoryConsumer<PackRepository> consumerPath pathComponent component
ตัวอย่างใช้งาน
PackRepository packRepository = ...;
Consumer<PackRepository> consumer = ...;
Path path = ...;
Component component = ...;
PackSelectionScreen instance = new PackSelectionScreen(packRepository, consumer, path, component);
net.minecraft.client.gui.screens.packs.PackSelectionScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:123 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ PackSelectionScreen
ทำงานยังไง
เรียกต่อ: arrangeElements(), updateSize(), setX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:132 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: ticksToReload. เรียกต่อ: pollForChanges(), warn(), closeWatcher(), reload().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.PackSelectionScreen#updateFocus(TransferableSelectionList)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/PackSelectionScreen.java:170 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Focus
ทำงานยังไง
แก้ state: selectedPackList. เรียกต่อ: changeFocus(), path(), getFirstElement().
Parameters
TransferableSelectionList transferableSelectionList
ตัวอย่างใช้งาน
PackSelectionScreen instance = ...;
TransferableSelectionList transferableSelectionList = ...;
instance.updateFocus(transferableSelectionList);
TransferableSelectionList
- Full name:
net.minecraft.client.gui.screens.packs.TransferableSelectionList - Package:
net.minecraft.client.gui.screens.packs - Source:
clientOnly—net/minecraft/client/gui/screens/packs/TransferableSelectionList.java - Type:
class - Modifiers:
public - Extends:
ObjectSelectionList<TransferableSelectionList.PackEntry>
net.minecraft.client.gui.screens.packs.TransferableSelectionList#getRowWidth()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:48 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Row Width
ทำงานยังไง
คืนค่า: this.width.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList#keyPressed(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ keyPressed ตาม implementation ของ TransferableSelectionList
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: getSelected(), keyboardSelection(), hasShiftDown(), keyboardMoveDown(), keyboardMoveUp(). มีจุด return อย่างน้อย 4 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList#renderHeader(GuiGraphics,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:42 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Header
ทำงานยังไง
เรียกต่อ: empty(), append(), withStyle(), drawString(), width(), min(), getY().
Parameters
GuiGraphics guiGraphicsint iint j
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderHeader(GuiGraphics guiGraphics, int i, int j) {
super.renderHeader(guiGraphics, i, j);
}
net.minecraft.client.gui.screens.packs.TransferableSelectionList#renderSelection(GuiGraphics,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:58 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Selection
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: scrollbarVisible(), getRowLeft(), getRight(), fill().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint m
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderSelection(GuiGraphics guiGraphics, int i, int j, int k, int l, int m) {
super.renderSelection(guiGraphics, i, j, k, l, m);
}
net.minecraft.client.gui.screens.packs.TransferableSelectionList#scrollBarX()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:53 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ scrollBarX ตาม implementation ของ TransferableSelectionList
ทำงานยังไง
เรียกต่อ: getRight(). คืนค่า: this.getRight() - 6.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList#TransferableSelectionList(Minecraft,PackSelectionScreen,int,int,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TransferableSelectionList ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: screen, title, centerListVertically.
Parameters
Minecraft minecraftPackSelectionScreen packSelectionScreenint iint jComponent component
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
PackSelectionScreen packSelectionScreen = ...;
Component component = ...;
TransferableSelectionList instance = new TransferableSelectionList(minecraft, packSelectionScreen, 0, 0, component);
TransferableSelectionList$PackEntry
- Full name:
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry - Package:
net.minecraft.client.gui.screens.packs - Source:
clientOnly—net/minecraft/client/gui/screens/packs/TransferableSelectionList.java - Type:
class - Modifiers:
public static - Extends:
ObjectSelectionList.Entry<TransferableSelectionList.PackEntry>
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#getNarration()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:137 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Narration
ทำงานยังไง
เรียกต่อ: translatable(), getTitle(). คืนค่า: Component.translatable("narrator.select", new Object[]{this.pack.getTitle()}).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#getPackId()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:199 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Pack Id
ทำงานยังไง
เรียกต่อ: getId(). คืนค่า: this.pack.getId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#keyboardSelection()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:207 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ keyboardSelection ตาม implementation ของ TransferableSelectionList$PackEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canSelect(), handlePackSelection(), updateFocus(), canUnselect(), unselect().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#mouseClicked(double,double,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:244 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mouseClicked ตาม implementation ของ TransferableSelectionList$PackEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRowLeft(), getRowTop(), children(), indexOf(), showHoverOverlay(), clearSelected(), canSelect(), handlePackSelection(). มีจุด return อย่างน้อย 5 จุด.
Parameters
double ddouble eint i
ตัวอย่างใช้งาน
TransferableSelectionList.PackEntry instance = ...;
boolean result = instance.mouseClicked(0.0D, 0.0D, 0);
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#PackEntry(Minecraft,TransferableSelectionList,PackSelectionModel.Entry)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:111 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TransferableSelectionList.PackEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft, pack, parent, nameDisplayCache, descriptionDisplayCache, incompatibleNameDisplayCache. เรียกต่อ: cacheName(), getTitle(), cacheDescription(), getExtendedDescription(), getCompatibility(), getDescription().
Parameters
Minecraft minecraftTransferableSelectionList transferableSelectionListPackSelectionModel.Entry entry
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
TransferableSelectionList transferableSelectionList = ...;
PackSelectionModel.Entry entry = ...;
TransferableSelectionList.PackEntry instance = new TransferableSelectionList.PackEntry(minecraft, transferableSelectionList, entry);
net.minecraft.client.gui.screens.packs.TransferableSelectionList$PackEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/packs/TransferableSelectionList.java:142 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCompatibility(), isCompatible(), scrollbarVisible(), fill(), blit(), getIconTexture(), showHoverOverlay(), touchscreen().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
TransferableSelectionList.PackEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);