Package net.minecraft.client.gui.screens.worldselection
Part 1/1
ConfirmExperimentalFeaturesScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen#ConfirmExperimentalFeaturesScreen(Collection<Pack>,BooleanConsumer)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ConfirmExperimentalFeaturesScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: enabledPacks, callback.
Parameters
Collection<Pack> collectionBooleanConsumer booleanConsumer
ตัวอย่างใช้งาน
Collection<Pack> collection = ...;
BooleanConsumer booleanConsumer = ...;
ConfirmExperimentalFeaturesScreen instance = new ConfirmExperimentalFeaturesScreen(collection, booleanConsumer);
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen#getNarrationMessage()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java:45 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Narration Message
ทำงานยังไง
เรียกต่อ: joinForNarration(). คืนค่า: CommonComponents.joinForNarration(new Component[]{super.getNarrationMessage(), MESSAGE}).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ConfirmExperimentalFeaturesScreen instance = ...;
Component result = instance.getNarrationMessage();
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java:50 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ ConfirmExperimentalFeaturesScreen
ทำงานยังไง
เรียกต่อ: createRowHelper(), newCellSettings(), alignHorizontallyCenter(), addChild(), setCentered(), setMaxWidth(), builder(), setScreen(). สร้างออบเจ็กต์: StringWidget, MultiLineTextWidget, ConfirmExperimentalFeaturesScreen.DetailsScreen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java:77 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: accept().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ConfirmExperimentalFeaturesScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ConfirmExperimentalFeaturesScreen.java:72 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ ConfirmExperimentalFeaturesScreen
ทำงานยังไง
เรียกต่อ: alignInRectangle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CreateWorldCallback
- Full name:
net.minecraft.client.gui.screens.worldselection.CreateWorldCallback - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/CreateWorldCallback.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.CreateWorldCallback#create(CreateWorldScreen,LayeredRegistryAccess<RegistryLayer>,PrimaryLevelData,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldCallback.java:14 - Modifiers: ``
- Return:
boolean
คืออะไร
สร้าง create
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CreateWorldScreen createWorldScreenLayeredRegistryAccess<RegistryLayer> layeredRegistryAccessPrimaryLevelData primaryLevelDataPath path
ตัวอย่างใช้งาน
CreateWorldCallback instance = ...;
CreateWorldScreen createWorldScreen = ...;
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = ...;
PrimaryLevelData primaryLevelData = ...;
Path path = ...;
boolean result = instance.create(createWorldScreen, layeredRegistryAccess, primaryLevelData, path);
CreateWorldScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#createFromExisting(Minecraft,Screen,LevelSettings,WorldCreationContext,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:197 - Modifiers:
public static - Return:
CreateWorldScreen
คืออะไร
สร้าง From Existing
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fromSettings(), selectedDimensions(), of(), options(), seed(), createNewWorld(), setName(), levelName(). สร้างออบเจ็กต์: CreateWorldScreen. คืนค่า: createWorldScreen.
Parameters
Minecraft minecraftScreen screenLevelSettings levelSettingsWorldCreationContext worldCreationContextPath path
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
Screen screen = ...;
LevelSettings levelSettings = ...;
WorldCreationContext worldCreationContext = ...;
Path path = ...;
CreateWorldScreen result = CreateWorldScreen.createFromExisting(minecraft, screen, levelSettings, worldCreationContext, path);
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#createTempDataPackDirFromExistingWorld(Path,Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:564 - Modifiers:
public static - Return:
Path
คืออะไร
สร้าง Temp Data Pack Dir From Existing World
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: walk(), filter(), equals(), forEach(), getValue(), createTempDirectory(), warn(), setValue(). สร้างออบเจ็กต์: MutableObject<>, UncheckedIOException. มีจุด return อย่างน้อย 2 จุด.
Parameters
Path pathMinecraft minecraft
ตัวอย่างใช้งาน
Path path = ...;
Minecraft minecraft = ...;
Path result = CreateWorldScreen.createTempDataPackDirFromExistingWorld(path, minecraft);
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#getUiState()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:240 - Modifiers:
public - Return:
WorldCreationUiState
คืออะไร
อ่านค่า Ui State
ทำงานยังไง
คืนค่า: this.uiState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:244 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ CreateWorldScreen
ทำงานยังไง
แก้ state: tabNavigationBar. เรียกต่อ: builder(), addTabs(), GameTab(), WorldTab(), MoreTab(), build(), addRenderableWidget(), addToFooter(). สร้างออบเจ็กต์: CreateWorldScreen.GameTab, CreateWorldScreen.WorldTab, CreateWorldScreen.MoreTab.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#keyPressed(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:340 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ keyPressed ตาม implementation ของ CreateWorldScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: onCreate(). มีจุด return อย่างน้อย 4 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:358 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: popScreen().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#openFresh(Minecraft,Screen)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:126 - Modifiers:
public static - Return:
void
คืออะไร
เปิด Fresh
ทำงานยังไง
เรียกต่อ: createNewWorld().
Parameters
Minecraft minecraftScreen screen
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#openFresh(Minecraft,Screen,CreateWorldCallback)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:134 - Modifiers:
public static - Return:
void
คืออะไร
เปิด Fresh
ทำงานยังไง
เรียกต่อ: worldGenSettings(), dataConfiguration(), defaultWithRandomSeed(), createNormalWorldDimensions(), datapackWorldgen(), openCreateWorldScreen(). สร้างออบเจ็กต์: WorldCreationContext, WorldGenSettings.
Parameters
Minecraft minecraftScreen screenCreateWorldCallback createWorldCallback
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
Screen screen = ...;
CreateWorldCallback createWorldCallback = ...;
CreateWorldScreen.openFresh(minecraft, screen, createWorldCallback);
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#popScreen()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:363 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popScreen ตาม implementation ของ CreateWorldScreen
ทำงานยังไง
เรียกต่อ: setScreen(), removeTempDataPackDir().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#render(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:368 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: blit(), getFooterHeight().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
CreateWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#renderMenuBackground(GuiGraphics)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:374 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Menu Background
ทำงานยังไง
เรียกต่อ: blit(), getHeaderHeight().
Parameters
GuiGraphics guiGraphics
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderMenuBackground(GuiGraphics guiGraphics) {
super.renderMenuBackground(guiGraphics);
}
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:266 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ CreateWorldScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setWidth(), arrangeElements(), getRectangle(), bottom(), getFooterHeight(), setTabArea(), setHeaderHeight(). สร้างออบเจ็กต์: ScreenRectangle.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#setInitialFocus()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:262 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Initial Focus
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen#testWorld(Minecraft,Screen)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/CreateWorldScreen.java:144 - Modifiers:
public static - Return:
void
คืออะไร
ทดสอบเงื่อนไข World
ทำงานยังไง
เรียกต่อ: worldGenSettings(), options(), dimensions(), dataConfiguration(), of(), testWorldWithRandomSeed(), createFlatWorldDimensions(), datapackWorldgen(). สร้างออบเจ็กต์: WorldCreationContext, InitialWorldCreationOptions, WorldGenSettings.
Parameters
Minecraft minecraftScreen screen
ตัวอย่างใช้งาน
EditGameRulesScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen#EditGameRulesScreen(GameRules,Consumer<Optional<GameRules>>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:58 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: gameRules, exitCallback.
Parameters
GameRules gameRulesConsumer<Optional<GameRules>> consumer
ตัวอย่างใช้งาน
GameRules gameRules = ...;
Consumer<Optional<GameRules>> consumer = ...;
EditGameRulesScreen instance = new EditGameRulesScreen(gameRules, consumer);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:64 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ EditGameRulesScreen
ทำงานยังไง
แก้ state: ruleList, doneButton. เรียกต่อ: addTitleHeader(), addToContents(), RuleList(), addToFooter(), horizontal(), spacing(), addChild(), builder(). สร้างออบเจ็กต์: EditGameRulesScreen.RuleList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:85 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: accept(), empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:77 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ EditGameRulesScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: arrangeElements(), updateSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EditGameRulesScreen$BooleanRuleEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$BooleanRuleEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public - Extends:
EditGameRulesScreen.GameRuleEntry
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$BooleanRuleEntry#BooleanRuleEntry(Component,List<FormattedCharSequence>,String,BooleanValue)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:110 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.BooleanRuleEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: checkbox. เรียกต่อ: onOffBuilder(), get(), displayOnlyValue(), withCustomNarration(), createDefaultNarrationMessage(), append(), create(), set().
Parameters
Component componentList<FormattedCharSequence> listString stringBooleanValue booleanValue
ตัวอย่างใช้งาน
Component component = ...;
List<FormattedCharSequence> list = ...;
BooleanValue booleanValue = ...;
EditGameRulesScreen.BooleanRuleEntry instance = new EditGameRulesScreen.BooleanRuleEntry(component, list, "value", booleanValue);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$BooleanRuleEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:119 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: renderLabel(), setX(), setY().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
EditGameRulesScreen.BooleanRuleEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
EditGameRulesScreen$CategoryRuleEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$CategoryRuleEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public - Extends:
EditGameRulesScreen.RuleEntry
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$CategoryRuleEntry#CategoryRuleEntry(Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:132 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.CategoryRuleEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: label.
Parameters
Component component
ตัวอย่างใช้งาน
Component component = ...;
EditGameRulesScreen.CategoryRuleEntry instance = new EditGameRulesScreen.CategoryRuleEntry(component);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$CategoryRuleEntry#children()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:142 - Modifiers:
public - Return:
List<? extends GuiEventListener>
คืออะไร
ดำเนินการ children ตาม implementation ของ EditGameRulesScreen$CategoryRuleEntry
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: ImmutableList.of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EditGameRulesScreen.CategoryRuleEntry instance = ...;
List<? extends GuiEventListener> result = instance.children();
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$CategoryRuleEntry#narratables()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:147 - Modifiers:
public - Return:
List<? extends NarratableEntry>
คืออะไร
ดำเนินการ narratables ตาม implementation ของ EditGameRulesScreen$CategoryRuleEntry
ทำงานยังไง
เรียกต่อ: of(), narrationPriority(), updateNarration(), add(). สร้างออบเจ็กต์: NarratableEntry. คืนค่า: NarratableEntry.NarrationPriority.HOVERED.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EditGameRulesScreen.CategoryRuleEntry instance = ...;
List<? extends NarratableEntry> result = instance.narratables();
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$CategoryRuleEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:137 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: drawCenteredString().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
EditGameRulesScreen.CategoryRuleEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
EditGameRulesScreen$GameRuleEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$GameRuleEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public abstract - Extends:
EditGameRulesScreen.RuleEntry
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$GameRuleEntry#children()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:179 - Modifiers:
public - Return:
List<? extends GuiEventListener>
คืออะไร
ดำเนินการ children ตาม implementation ของ EditGameRulesScreen$GameRuleEntry
ทำงานยังไง
คืนค่า: this.children.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EditGameRulesScreen.GameRuleEntry instance = ...;
List<? extends GuiEventListener> result = instance.children();
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$GameRuleEntry#GameRuleEntry(List<FormattedCharSequence>,Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:174 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.GameRuleEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: label. เรียกต่อ: split().
Parameters
List<FormattedCharSequence> listComponent component
ตัวอย่างใช้งาน
List<FormattedCharSequence> list = ...;
Component component = ...;
EditGameRulesScreen.GameRuleEntry instance = new EditGameRulesScreen.GameRuleEntry(list, component);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$GameRuleEntry#narratables()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:184 - Modifiers:
public - Return:
List<? extends NarratableEntry>
คืออะไร
ดำเนินการ narratables ตาม implementation ของ EditGameRulesScreen$GameRuleEntry
ทำงานยังไง
คืนค่า: this.children.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EditGameRulesScreen.GameRuleEntry instance = ...;
List<? extends NarratableEntry> result = instance.narratables();
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$GameRuleEntry#renderLabel(GuiGraphics,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:189 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Label
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), drawString(), get().
Parameters
GuiGraphics guiGraphicsint iint j
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderLabel(GuiGraphics guiGraphics, int i, int j) {
super.renderLabel(guiGraphics, i, j);
}
EditGameRulesScreen$IntegerRuleEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$IntegerRuleEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public - Extends:
EditGameRulesScreen.GameRuleEntry
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$IntegerRuleEntry#IntegerRuleEntry(Component,List<FormattedCharSequence>,String,IntegerValue)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:203 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.IntegerRuleEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: input. เรียกต่อ: copy(), append(), setValue(), toString(), get(), setResponder(), tryDeserialize(), setTextColor(). สร้างออบเจ็กต์: EditBox.
Parameters
Component componentList<FormattedCharSequence> listString stringIntegerValue integerValue
ตัวอย่างใช้งาน
Component component = ...;
List<FormattedCharSequence> list = ...;
IntegerValue integerValue = ...;
EditGameRulesScreen.IntegerRuleEntry instance = new EditGameRulesScreen.IntegerRuleEntry(component, list, "value", integerValue);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$IntegerRuleEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:219 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: renderLabel(), setX(), setY().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
EditGameRulesScreen.IntegerRuleEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
EditGameRulesScreen$RuleEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$RuleEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public abstract static - Extends:
ContainerObjectSelectionList.Entry<EditGameRulesScreen.RuleEntry>
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$RuleEntry#RuleEntry(List<FormattedCharSequence>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:233 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.RuleEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: tooltip.
Parameters
List<FormattedCharSequence> list
ตัวอย่างใช้งาน
List<FormattedCharSequence> list = ...;
EditGameRulesScreen.RuleEntry instance = new EditGameRulesScreen.RuleEntry(list);
EditGameRulesScreen$RuleList
- Full name:
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$RuleList - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java - Type:
class - Modifiers:
public - Extends:
ContainerObjectSelectionList<EditGameRulesScreen.RuleEntry>
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$RuleList#renderWidget(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:302 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Widget
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getHovered(), setTooltipForNextRenderPass().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
EditGameRulesScreen.RuleList instance = ...;
GuiGraphics guiGraphics = ...;
instance.renderWidget(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen$RuleList#RuleList(GameRules)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditGameRulesScreen.java:242 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EditGameRulesScreen.RuleList ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInstance(), getContentHeight(), getHeaderHeight(), newHashMap(), visitGameRuleTypes(), visitBoolean(), addEntry(), visitInteger(). สร้างออบเจ็กต์: GameRuleTypeVisitor, BooleanRuleEntry, IntegerRuleEntry, CategoryRuleEntry.
Parameters
GameRules gameRules
ตัวอย่างใช้งาน
GameRules gameRules = ...;
EditGameRulesScreen.RuleList instance = new EditGameRulesScreen.RuleList(gameRules);
EditWorldScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.EditWorldScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#create(Minecraft,LevelStorageAccess,BooleanConsumer)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:60 - Modifiers:
public static - Return:
EditWorldScreen
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: getSummary(), getDataTag(), getLevelName(). สร้างออบเจ็กต์: EditWorldScreen. คืนค่า: new EditWorldScreen(minecraft, levelStorageAccess, levelSummary.getLevelName(), booleanConsumer).
Parameters
Minecraft minecraftLevelStorageAccess levelStorageAccessBooleanConsumer booleanConsumer
Throws
IOException
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
LevelStorageAccess levelStorageAccess = ...;
BooleanConsumer booleanConsumer = ...;
EditWorldScreen result = EditWorldScreen.create(minecraft, levelStorageAccess, booleanConsumer);
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:119 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ EditWorldScreen
ทำงานยังไง
เรียกต่อ: repositionElements().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#makeBackupAndShowToast(LevelStorageAccess)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:146 - Modifiers:
public static - Return:
boolean
คืออะไร
สร้าง Backup And Show Toast
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: makeWorldBackup(), translatable(), literal(), getMessage(), getInstance(), getToastManager(), addToast(), getLevelId(). สร้างออบเจ็กต์: SystemToast. มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelStorageAccess levelStorageAccess
ตัวอย่างใช้งาน
LevelStorageAccess levelStorageAccess = ...;
boolean result = EditWorldScreen.makeBackupAndShowToast(levelStorageAccess);
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:130 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: accept().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#render(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:169 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: drawCenteredString().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
EditWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:124 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ EditWorldScreen
ทำงานยังไง
เรียกต่อ: arrangeElements(), centerInRectangle(), getRectangle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.EditWorldScreen#setInitialFocus()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/EditWorldScreen.java:114 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Initial Focus
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ExperimentsScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen#ExperimentsScreen(Screen,PackRepository,Consumer<PackRepository>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ExperimentsScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: parent, packRepository, output. เรียกต่อ: getAvailablePacks(), getPackSource(), put(), getSelectedPacks(), contains().
Parameters
Screen screenPackRepository packRepositoryConsumer<PackRepository> consumer
ตัวอย่างใช้งาน
Screen screen = ...;
PackRepository packRepository = ...;
Consumer<PackRepository> consumer = ...;
ExperimentsScreen instance = new ExperimentsScreen(screen, packRepository, consumer);
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen#getNarrationMessage()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:101 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Narration Message
ทำงานยังไง
เรียกต่อ: joinForNarration(). คืนค่า: CommonComponents.joinForNarration(new Component[]{super.getNarrationMessage(), INFO}).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:62 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ ExperimentsScreen
ทำงานยังไง
แก้ state: scrollArea. เรียกต่อ: addTitleHeader(), addToContents(), vertical(), addChild(), setMaxWidth(), paddingBottom(), builder(), withInfoUnderneath(). สร้างออบเจ็กต์: MultiLineTextWidget, ExperimentsScreen.ScrollArea.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:106 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: setScreen().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:92 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ ExperimentsScreen
ทำงานยังไง
เรียกต่อ: setHeight(), arrangeElements(), getFooterHeight(), getRectangle(), bottom(), getHeight(), refreshScrollAmount().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ExperimentsScreen$ScrollArea
- Full name:
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerWidget
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#addWidget(AbstractWidget)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:136 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Widget
ทำงานยังไง
เรียกต่อ: add().
Parameters
AbstractWidget abstractWidget
ตัวอย่างใช้งาน
ExperimentsScreen.ScrollArea instance = ...;
AbstractWidget abstractWidget = ...;
instance.addWidget(abstractWidget);
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#children()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:190 - Modifiers:
public - Return:
List<? extends GuiEventListener>
คืออะไร
ดำเนินการ children ตาม implementation ของ ExperimentsScreen$ScrollArea
ทำงานยังไง
คืนค่า: this.children.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ExperimentsScreen.ScrollArea instance = ...;
List<? extends GuiEventListener> result = instance.children();
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#contentHeight()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:140 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ contentHeight ตาม implementation ของ ExperimentsScreen$ScrollArea
ทำงานยังไง
เรียกต่อ: getHeight(). คืนค่า: this.layout.getHeight().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#getBorderForArrowNavigation(ScreenDirection)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:169 - Modifiers:
public - Return:
ScreenRectangle
คืออะไร
อ่านค่า Border For Arrow Navigation
ทำงานยังไง
เรียกต่อ: getX(), getY(), contentHeight(). สร้างออบเจ็กต์: ScreenRectangle. คืนค่า: new ScreenRectangle(this.getX(), this.getY(), this.width, this.contentHeight()).
Parameters
ScreenDirection screenDirection
ตัวอย่างใช้งาน
ExperimentsScreen.ScrollArea instance = ...;
ScreenDirection screenDirection = ...;
ScreenRectangle result = instance.getBorderForArrowNavigation(screenDirection);
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#getNarratables()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:209 - Modifiers:
public - Return:
Collection<? extends NarratableEntry>
คืออะไร
อ่านค่า Narratables
ทำงานยังไง
คืนค่า: this.children.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ExperimentsScreen.ScrollArea instance = ...;
Collection<? extends NarratableEntry> result = instance.getNarratables();
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#renderWidget(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:150 - Modifiers:
protected - Return:
void
คืออะไร
เรนเดอร์ Widget
ทำงานยังไง
มีการวนลูป. เรียกต่อ: enableScissor(), getX(), getY(), pose(), pushPose(), translate(), scrollAmount(), render().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
GuiGraphics guiGraphics = ...;
@Override
protected void renderWidget(GuiGraphics guiGraphics, int i, int j, float f) {
super.renderWidget(guiGraphics, i, j, f);
}
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#ScrollArea(Layout,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:130 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ExperimentsScreen.ScrollArea ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: layout. เรียกต่อ: visitWidgets().
Parameters
Layout layoutint iint j
ตัวอย่างใช้งาน
Layout layout = ...;
ExperimentsScreen.ScrollArea instance = new ExperimentsScreen.ScrollArea(layout, 0, 0);
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#scrollRate()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:145 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ scrollRate ตาม implementation ของ ExperimentsScreen$ScrollArea
ทำงานยังไง
คืนค่า: 10.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#setFocused(GuiEventListener)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:174 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Focused
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRectangle(), top(), scrollAmount(), bottom(), setScrollAmount().
Parameters
GuiEventListener guiEventListener
ตัวอย่างใช้งาน
ExperimentsScreen.ScrollArea instance = ...;
GuiEventListener guiEventListener = ...;
instance.setFocused(guiEventListener);
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#setX(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:195 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า X
ทำงานยังไง
เรียกต่อ: arrangeElements().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#setY(int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:202 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Y
ทำงานยังไง
เรียกต่อ: arrangeElements().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen$ScrollArea#updateWidgetNarration(NarrationElementOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/ExperimentsScreen.java:165 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Widget Narration
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
NarrationElementOutput narrationElementOutput
ตัวอย่างใช้งาน
NarrationElementOutput narrationElementOutput = ...;
@Override
protected void updateWidgetNarration(NarrationElementOutput narrationElementOutput) {
super.updateWidgetNarration(narrationElementOutput);
}
OptimizeWorldScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#create(Minecraft,BooleanConsumer,DataFixer,LevelStorageAccess,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:46 - Modifiers:
public static - Return:
OptimizeWorldScreen
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: createWorldOpenFlows(), createPackRepository(), loadWorldStem(), getDataTag(), worldData(), registries(), compositeAccess(), saveDataTag(). สร้างออบเจ็กต์: OptimizeWorldScreen. มีจุด return อย่างน้อย 2 จุด.
Parameters
Minecraft minecraftBooleanConsumer booleanConsumerDataFixer dataFixerLevelStorageAccess levelStorageAccessboolean bl
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
BooleanConsumer booleanConsumer = ...;
DataFixer dataFixer = ...;
LevelStorageAccess levelStorageAccess = ...;
OptimizeWorldScreen result = OptimizeWorldScreen.create(minecraft, booleanConsumer, dataFixer, levelStorageAccess, true);
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:97 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ OptimizeWorldScreen
ทำงานยังไง
เรียกต่อ: addRenderableWidget(), builder(), cancel(), accept(), bounds(), build().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:113 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: accept().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#removed()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:118 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ OptimizeWorldScreen
ทำงานยังไง
เรียกต่อ: cancel(), close().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#render(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:124 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: drawCenteredString(), getStatus(), getTotalChunks(), fill(), drawString(), translatable(), getConverted(), getSkipped().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
OptimizeWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.OptimizeWorldScreen#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/OptimizeWorldScreen.java:106 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isFinished(), accept().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PresetEditor
- Full name:
net.minecraft.client.gui.screens.worldselection.PresetEditor - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/PresetEditor.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.PresetEditor#createEditScreen(CreateWorldScreen,WorldCreationContext)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/PresetEditor.java:53 - Modifiers: ``
- Return:
Screen
คืออะไร
สร้าง Edit Screen
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CreateWorldScreen createWorldScreenWorldCreationContext worldCreationContext
ตัวอย่างใช้งาน
PresetEditor instance = ...;
CreateWorldScreen createWorldScreen = ...;
WorldCreationContext worldCreationContext = ...;
Screen result = instance.createEditScreen(createWorldScreen, worldCreationContext);
net.minecraft.client.gui.screens.worldselection.PresetEditor#flatWorldConfigurator(FlatLevelGeneratorSettings)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/PresetEditor.java:55 - Modifiers:
static - Return:
WorldCreationContext.DimensionsUpdater
คืออะไร
ดำเนินการ flatWorldConfigurator ตาม implementation ของ PresetEditor
ทำงานยังไง
เรียกต่อ: replaceOverworldGenerator(). สร้างออบเจ็กต์: FlatLevelSource. มีจุด return อย่างน้อย 2 จุด.
Parameters
FlatLevelGeneratorSettings flatLevelGeneratorSettings
ตัวอย่างใช้งาน
FlatLevelGeneratorSettings flatLevelGeneratorSettings = ...;
WorldCreationContext.DimensionsUpdater result = PresetEditor.flatWorldConfigurator(flatLevelGeneratorSettings);
SelectWorldScreen
- Full name:
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java - Type:
class - Modifiers:
public - Extends:
Screen
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#init()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:34 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ init ตาม implementation ของ SelectWorldScreen
ทำงานยังไง
แก้ state: searchBox, list, selectButton, renameButton, deleteButton, copyButton. เรียกต่อ: translatable(), setResponder(), updateFilter(), addWidget(), addRenderableWidget(), getValue(), builder(), getSelectedOpt(). สร้างออบเจ็กต์: EditBox, WorldSelectionList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#onClose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:80 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
เรียกต่อ: setScreen().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#removed()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:108 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ SelectWorldScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: children(), forEach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#render(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:85 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: drawCenteredString().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
SelectWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#SelectWorldScreen(Screen)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:29 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SelectWorldScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: lastScreen. เรียกต่อ: translatable().
Parameters
Screen screen
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#setInitialFocus()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:75 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Initial Focus
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.SelectWorldScreen#updateButtonStatus(LevelSummary)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java:92 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Button Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setMessage(), primaryActionMessage(), primaryActionActive(), canEdit(), canRecreate(), canDelete().
Parameters
LevelSummary levelSummary
ตัวอย่างใช้งาน
SelectWorldScreen instance = ...;
LevelSummary levelSummary = ...;
instance.updateButtonStatus(levelSummary);
WorldCreationContext
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldCreationContext - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java - Type:
record - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#validate()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:105 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
มีการวนลูป. เรียกต่อ: datapackDimensions(), generator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#withDimensions(WorldCreationContext.DimensionsUpdater)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:89 - Modifiers:
public - Return:
WorldCreationContext
คืออะไร
ดำเนินการ withDimensions ตาม implementation ของ WorldCreationContext
ทำงานยังไง
เรียกต่อ: apply(), worldgenLoadContext(). สร้างออบเจ็กต์: WorldCreationContext.
Parameters
WorldCreationContext.DimensionsUpdater dimensionsUpdater
ตัวอย่างใช้งาน
WorldCreationContext instance = ...;
WorldCreationContext.DimensionsUpdater dimensionsUpdater = ...;
WorldCreationContext result = instance.withDimensions(dimensionsUpdater);
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#withOptions(WorldCreationContext.OptionsModifier)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:77 - Modifiers:
public - Return:
WorldCreationContext
คืออะไร
ดำเนินการ withOptions ตาม implementation ของ WorldCreationContext
ทำงานยังไง
เรียกต่อ: apply(). สร้างออบเจ็กต์: WorldCreationContext.
Parameters
WorldCreationContext.OptionsModifier optionsModifier
ตัวอย่างใช้งาน
WorldCreationContext instance = ...;
WorldCreationContext.OptionsModifier optionsModifier = ...;
WorldCreationContext result = instance.withOptions(optionsModifier);
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#withSettings(WorldOptions,WorldDimensions)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:65 - Modifiers:
public - Return:
WorldCreationContext
คืออะไร
ดำเนินการ withSettings ตาม implementation ของ WorldCreationContext
ทำงานยังไง
สร้างออบเจ็กต์: WorldCreationContext.
Parameters
WorldOptions worldOptionsWorldDimensions worldDimensions
ตัวอย่างใช้งาน
WorldCreationContext instance = ...;
WorldOptions worldOptions = ...;
WorldDimensions worldDimensions = ...;
WorldCreationContext result = instance.withSettings(worldOptions, worldDimensions);
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#WorldCreationContext(WorldGenSettings,LayeredRegistryAccess<RegistryLayer>,ReloadableServerResources,WorldDataConfiguration)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldCreationContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: options(), dimensions(), of(). สร้างออบเจ็กต์: InitialWorldCreationOptions.
Parameters
WorldGenSettings worldGenSettingsLayeredRegistryAccess<RegistryLayer> layeredRegistryAccessReloadableServerResources reloadableServerResourcesWorldDataConfiguration worldDataConfiguration
ตัวอย่างใช้งาน
WorldGenSettings worldGenSettings = ...;
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = ...;
ReloadableServerResources reloadableServerResources = ...;
WorldDataConfiguration worldDataConfiguration = ...;
WorldCreationContext instance = new WorldCreationContext(worldGenSettings, layeredRegistryAccess, reloadableServerResources, worldDataConfiguration);
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#WorldCreationContext(WorldOptions,WorldDimensions,LayeredRegistryAccess<RegistryLayer>,ReloadableServerResources,WorldDataConfiguration,InitialWorldCreationOptions)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldCreationContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getLayer(), lookupOrThrow(), replaceFrom().
Parameters
WorldOptions worldOptionsWorldDimensions worldDimensionsLayeredRegistryAccess<RegistryLayer> layeredRegistryAccessReloadableServerResources reloadableServerResourcesWorldDataConfiguration worldDataConfigurationInitialWorldCreationOptions initialWorldCreationOptions
ตัวอย่างใช้งาน
WorldOptions worldOptions = ...;
WorldDimensions worldDimensions = ...;
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = ...;
ReloadableServerResources reloadableServerResources = ...;
WorldDataConfiguration worldDataConfiguration = ...;
InitialWorldCreationOptions initialWorldCreationOptions = ...;
WorldCreationContext instance = new WorldCreationContext(worldOptions, worldDimensions, layeredRegistryAccess, reloadableServerResources, worldDataConfiguration, initialWorldCreationOptions);
net.minecraft.client.gui.screens.worldselection.WorldCreationContext#worldgenLoadContext()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContext.java:101 - Modifiers:
public - Return:
Frozen
คืออะไร
ดำเนินการ worldgenLoadContext ตาม implementation ของ WorldCreationContext
ทำงานยังไง
เรียกต่อ: compositeAccess(). คืนค่า: this.worldgenRegistries.compositeAccess().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationContextMapper
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldCreationContextMapper - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldCreationContextMapper.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldCreationContextMapper#apply(ReloadableServerResources,LayeredRegistryAccess<RegistryLayer>,DataPackReloadCookie)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationContextMapper.java:12 - Modifiers: ``
- Return:
WorldCreationContext
คืออะไร
นำไปใช้ apply
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ReloadableServerResources reloadableServerResourcesLayeredRegistryAccess<RegistryLayer> layeredRegistryAccessDataPackReloadCookie dataPackReloadCookie
ตัวอย่างใช้งาน
WorldCreationContextMapper instance = ...;
ReloadableServerResources reloadableServerResources = ...;
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = ...;
DataPackReloadCookie dataPackReloadCookie = ...;
WorldCreationContext result = instance.apply(reloadableServerResources, layeredRegistryAccess, dataPackReloadCookie);
WorldCreationUiState
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#addListener(Consumer<WorldCreationUiState>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:71 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Listener
ทำงานยังไง
เรียกต่อ: add().
Parameters
Consumer<WorldCreationUiState> consumer
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
Consumer<WorldCreationUiState> consumer = ...;
instance.addListener(consumer);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getAltPresetList()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:244 - Modifiers:
public - Return:
List<WorldCreationUiState.WorldTypeEntry>
คืออะไร
อ่านค่า Alt Preset List
ทำงานยังไง
คืนค่า: this.altPresetList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
List<WorldCreationUiState.WorldTypeEntry> result = instance.getAltPresetList();
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getDifficulty()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:133 - Modifiers:
public - Return:
Difficulty
คืออะไร
อ่านค่า Difficulty
ทำงานยังไง
เรียกต่อ: isHardcore(). คืนค่า: this.isHardcore() ? Difficulty.HARD : this.difficulty.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getGameMode()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:124 - Modifiers:
public - Return:
WorldCreationUiState.SelectedGameMode
คืออะไร
อ่านค่า Game Mode
ทำงานยังไง
เรียกต่อ: isDebug(). คืนค่า: this.isDebug() ? WorldCreationUiState.SelectedGameMode.DEBUG : this.gameMode.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationUiState.SelectedGameMode result = instance.getGameMode();
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getGameRules()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:282 - Modifiers:
public - Return:
GameRules
คืออะไร
อ่านค่า Game Rules
ทำงานยังไง
คืนค่า: this.gameRules.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getName()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:111 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getNormalPresetList()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:240 - Modifiers:
public - Return:
List<WorldCreationUiState.WorldTypeEntry>
คืออะไร
อ่านค่า Normal Preset List
ทำงานยังไง
คืนค่า: this.normalPresetList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
List<WorldCreationUiState.WorldTypeEntry> result = instance.getNormalPresetList();
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getPresetEditor()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:234 - Modifiers:
public - Return:
PresetEditor
คืออะไร
อ่านค่า Preset Editor
ทำงานยังไง
เรียกต่อ: getWorldType(), preset(), get(), unwrapKey(). คืนค่า: holder != null ? PresetEditor.EDITORS.get(holder.unwrapKey()) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getSeed()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:162 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Seed
ทำงานยังไง
คืนค่า: this.seed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getSettings()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:190 - Modifiers:
public - Return:
WorldCreationContext
คืออะไร
อ่านค่า Settings
ทำงานยังไง
คืนค่า: this.settings.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getTargetFolder()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:115 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Target Folder
ทำงานยังไง
คืนค่า: this.targetFolder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#getWorldType()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:230 - Modifiers:
public - Return:
WorldCreationUiState.WorldTypeEntry
คืออะไร
อ่านค่า World Type
ทำงานยังไง
คืนค่า: this.worldType.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationUiState.WorldTypeEntry result = instance.getWorldType();
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#isAllowCommands()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:146 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Commands
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: allowCommands. เรียกต่อ: isDebug(), isHardcore(), getGameMode(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#isBonusChest()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:180 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Bonus Chest
ทำงานยังไง
เรียกต่อ: isDebug(), isHardcore(). คืนค่า: !this.isDebug() && !this.isHardcore() ? this.bonusChest : false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#isDebug()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:218 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Debug
ทำงานยังไง
เรียกต่อ: selectedDimensions(). คืนค่า: this.settings.selectedDimensions().isDebug().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#isGenerateStructures()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:171 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Generate Structures
ทำงานยังไง
เรียกต่อ: isDebug(). คืนค่า: this.isDebug() ? false : this.generateStructures.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#isHardcore()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:137 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
เรียกต่อ: getGameMode(). คืนค่า: this.getGameMode() == WorldCreationUiState.SelectedGameMode.HARDCORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#onChanged()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:75 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Changed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: settings. เรียกต่อ: isBonusChest(), options(), generateBonusChest(), withOptions(), withBonusChest(), isGenerateStructures(), generateStructures(), withStructures().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setAllowCommands(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:141 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Allow Commands
ทำงานยังไง
แก้ state: allowCommands. เรียกต่อ: onChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setBonusChest(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:175 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Bonus Chest
ทำงานยังไง
แก้ state: bonusChest. เรียกต่อ: onChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setDifficulty(Difficulty)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:128 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Difficulty
ทำงานยังไง
แก้ state: difficulty. เรียกต่อ: onChanged().
Parameters
Difficulty difficulty
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
Difficulty difficulty = ...;
instance.setDifficulty(difficulty);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setGameMode(WorldCreationUiState.SelectedGameMode)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:119 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Mode
ทำงานยังไง
แก้ state: gameMode. เรียกต่อ: onChanged().
Parameters
WorldCreationUiState.SelectedGameMode selectedGameMode
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationUiState.SelectedGameMode selectedGameMode = ...;
instance.setGameMode(selectedGameMode);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setGameRules(GameRules)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:277 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Rules
ทำงานยังไง
แก้ state: gameRules. เรียกต่อ: onChanged().
Parameters
GameRules gameRules
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setGenerateStructures(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:166 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Generate Structures
ทำงานยังไง
แก้ state: generateStructures. เรียกต่อ: onChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setName(String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:91 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Name
ทำงานยังไง
แก้ state: name, targetFolder. เรียกต่อ: findResultFolder(), onChanged().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setSeed(String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:156 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
แก้ state: seed, settings. เรียกต่อ: withOptions(), withSeed(), parseSeed(), getSeed(), onChanged().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setSettings(WorldCreationContext)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:184 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Settings
ทำงานยังไง
แก้ state: settings. เรียกต่อ: updatePresetLists(), onChanged().
Parameters
WorldCreationContext worldCreationContext
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationContext worldCreationContext = ...;
instance.setSettings(worldCreationContext);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#setWorldType(WorldCreationUiState.WorldTypeEntry)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:222 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า World Type
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: worldType. เรียกต่อ: preset(), updateDimensions(), value(), createWorldDimensions().
Parameters
WorldCreationUiState.WorldTypeEntry worldTypeEntry
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationUiState.WorldTypeEntry worldTypeEntry = ...;
instance.setWorldType(worldTypeEntry);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#tryUpdateDataConfiguration(WorldDataConfiguration)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:199 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ tryUpdateDataConfiguration ตาม implementation ของ WorldCreationUiState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: settings. เรียกต่อ: dataConfiguration(), dataPacks(), getEnabled(), equals(), enabledFeatures(), options(), datapackDimensions(), selectedDimensions(). สร้างออบเจ็กต์: WorldCreationContext. มีจุด return อย่างน้อย 2 จุด.
Parameters
WorldDataConfiguration worldDataConfiguration
ตัวอย่างใช้งาน
WorldDataConfiguration worldDataConfiguration = ...;
@Override
protected boolean tryUpdateDataConfiguration(WorldDataConfiguration worldDataConfiguration) {
return super.tryUpdateDataConfiguration(worldDataConfiguration);
}
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#updateDimensions(WorldCreationContext.DimensionsUpdater)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:194 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Dimensions
ทำงานยังไง
แก้ state: settings. เรียกต่อ: withDimensions(), onChanged().
Parameters
WorldCreationContext.DimensionsUpdater dimensionsUpdater
ตัวอย่างใช้งาน
WorldCreationUiState instance = ...;
WorldCreationContext.DimensionsUpdater dimensionsUpdater = ...;
instance.updateDimensions(dimensionsUpdater);
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState#WorldCreationUiState(Path,WorldCreationContext,Optional<ResourceKey<WorldPreset>>,OptionalLong)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:51 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldCreationUiState ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: savesFolder, settings, worldType, seed, generateStructures, bonusChest. เรียกต่อ: WorldTypeEntry(), findPreset(), orElse(), updatePresetLists(), isPresent(), toString(), getAsLong(), options(). สร้างออบเจ็กต์: WorldCreationUiState.WorldTypeEntry, GameRules.
Parameters
Path pathWorldCreationContext worldCreationContextOptional<ResourceKey<WorldPreset>> optionalOptionalLong optionalLong
ตัวอย่างใช้งาน
Path path = ...;
WorldCreationContext worldCreationContext = ...;
Optional<ResourceKey<WorldPreset>> optional = ...;
OptionalLong optionalLong = ...;
WorldCreationUiState instance = new WorldCreationUiState(path, worldCreationContext, optional, optionalLong);
WorldCreationUiState$SelectedGameMode
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState$SelectedGameMode - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java - Type:
enum - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState$SelectedGameMode#getInfo()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:303 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Info
ทำงานยังไง
คืนค่า: this.info.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldCreationUiState$WorldTypeEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState$WorldTypeEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java - Type:
record - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState$WorldTypeEntry#describePreset()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:312 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ describePreset ตาม implementation ของ WorldCreationUiState$WorldTypeEntry
ทำงานยังไง
เรียกต่อ: ofNullable(), flatMap(), map(), translatable(), location(), toLanguageKey(), orElse().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState$WorldTypeEntry#isAmplified()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java:319 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Amplified
ทำงานยังไง
เรียกต่อ: ofNullable(), flatMap(), filter(), equals(), isPresent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldOpenFlows
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#confirmWorldCreation(Minecraft,CreateWorldScreen,Lifecycle,Runnable,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:233 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ confirmWorldCreation ตาม implementation ของ WorldOpenFlows
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: run(), setScreen(), stable(), experimental(), translatable(). สร้างออบเจ็กต์: ConfirmScreen.
Parameters
Minecraft minecraftCreateWorldScreen createWorldScreenLifecycle lifecycleRunnable runnableboolean bl
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
CreateWorldScreen createWorldScreen = ...;
Lifecycle lifecycle = ...;
Runnable runnable = ...;
WorldOpenFlows.confirmWorldCreation(minecraft, createWorldScreen, lifecycle, runnable, true);
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#createFreshLevel(String,LevelSettings,WorldOptions,Function<Provider, WorldDimensions>,Screen)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:88 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Fresh Level
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: forceSetScreen(), translatable(), createWorldAccess(), createPackRepository(), getDataConfiguration(), loadWorldDataBlocking(), apply(), datapackWorldgen(). สร้างออบเจ็กต์: GenericMessageScreen, PackConfig, DataLoadOutput, PrimaryLevelData.
Parameters
String stringLevelSettings levelSettingsWorldOptions worldOptionsFunction<Provider, WorldDimensions> functionScreen screen
ตัวอย่างใช้งาน
WorldOpenFlows instance = ...;
LevelSettings levelSettings = ...;
WorldOptions worldOptions = ...;
Function<Provider, WorldDimensions> function = ...;
Screen screen = ...;
instance.createFreshLevel("value", levelSettings, worldOptions, function, screen);
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#createLevelFromExistingSettings(LevelStorageAccess,ReloadableServerResources,LayeredRegistryAccess<RegistryLayer>,WorldData)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:134 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Level From Existing Settings
ทำงานยังไง
เรียกต่อ: createPackRepository(), getDataConfiguration(), createResourceManager(), getSecond(), doWorldLoad(). สร้างออบเจ็กต์: PackConfig, WorldStem.
Parameters
LevelStorageAccess levelStorageAccessReloadableServerResources reloadableServerResourcesLayeredRegistryAccess<RegistryLayer> layeredRegistryAccessWorldData worldData
ตัวอย่างใช้งาน
WorldOpenFlows instance = ...;
LevelStorageAccess levelStorageAccess = ...;
ReloadableServerResources reloadableServerResources = ...;
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = ...;
WorldData worldData = ...;
instance.createLevelFromExistingSettings(levelStorageAccess, reloadableServerResources, layeredRegistryAccess, worldData);
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#loadWorldStem(Dynamic<?>,boolean,PackRepository)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:148 - Modifiers:
public - Return:
WorldStem
คืออะไร
โหลด World Stem
ทำงานยังไง
เรียกต่อ: getPackConfig(), loadWorldDataBlocking(), datapackDimensions(), lookupOrThrow(), getLevelDataAndDimensions(), dataConfiguration(), datapackWorldgen(), worldData(). สร้างออบเจ็กต์: DataLoadOutput. คืนค่า: new DataLoadOutput(levelDataAndDimensions.worldData(), levelDataAndDimensions.dimensions().dimensionsRegistryAccess()).
Parameters
Dynamic<?> dynamicboolean blPackRepository packRepository
Throws
Exception
ตัวอย่างใช้งาน
WorldOpenFlows instance = ...;
Dynamic<?> dynamic = ...;
PackRepository packRepository = ...;
WorldStem result = instance.loadWorldStem(dynamic, true, packRepository);
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#openWorld(String,Runnable)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:258 - Modifiers:
public - Return:
void
คืออะไร
เปิด World
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: forceSetScreen(), translatable(), createWorldAccess(), openWorldLoadLevelData(). สร้างออบเจ็กต์: GenericMessageScreen.
Parameters
String stringRunnable runnable
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#recreateWorldData(LevelStorageAccess)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:163 - Modifiers:
public - Return:
Pair<LevelSettings, WorldCreationContext>
คืออะไร
ดำเนินการ recreateWorldData ตาม implementation ของ WorldOpenFlows
ทำงานยังไง
เรียกต่อ: createPackRepository(), getDataTag(), getPackConfig(), Environment(), Data(), loadWorldDataBlocking(), stable(), freeze(). สร้างออบเจ็กต์: MappedRegistry, DataLoadOutput, Data, InitialWorldCreationOptions.
Parameters
LevelStorageAccess levelStorageAccess
Throws
Exception
ตัวอย่างใช้งาน
WorldOpenFlows instance = ...;
LevelStorageAccess levelStorageAccess = ...;
Pair<LevelSettings, WorldCreationContext> result = instance.recreateWorldData(levelStorageAccess);
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows#WorldOpenFlows(Minecraft,LevelStorageSource)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.java:83 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldOpenFlows ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft, levelSource.
Parameters
Minecraft minecraftLevelStorageSource levelStorageSource
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
LevelStorageSource levelStorageSource = ...;
WorldOpenFlows instance = new WorldOpenFlows(minecraft, levelStorageSource);
WorldSelectionList
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldSelectionList - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java - Type:
class - Modifiers:
public - Extends:
ObjectSelectionList<WorldSelectionList.Entry>
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#clearEntries()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:112 - Modifiers:
protected - Return:
void
คืออะไร
ล้าง Entries
ทำงานยังไง
เรียกต่อ: children(), forEach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#getRowWidth()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:229 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Row Width
ทำงานยังไง
คืนค่า: 270.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#getScreen()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:244 - Modifiers:
public - Return:
SelectWorldScreen
คืออะไร
อ่านค่า Screen
ทำงานยังไง
คืนค่า: this.screen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#getSelectedOpt()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:239 - Modifiers:
public - Return:
Optional<WorldSelectionList.WorldListEntry>
คืออะไร
อ่านค่า Selected Opt
ทำงานยังไง
เรียกต่อ: getSelected(), of(), empty(). คืนค่า: entry instanceof WorldSelectionList.WorldListEntry worldListEntry ? Optional.of(worldListEntry) : Optional.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldSelectionList instance = ...;
Optional<WorldSelectionList.WorldListEntry> result = instance.getSelectedOpt();
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#keyPressed(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:131 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ keyPressed ตาม implementation ของ WorldSelectionList
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: selected(), getSelectedOpt(), isPresent(), get(), canJoin(), getSoundManager(), play(), forUI(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#renderWidget(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:148 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Widget
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pollLevelsIgnoreErrors(), handleNewLevels().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
WorldSelectionList instance = ...;
GuiGraphics guiGraphics = ...;
instance.renderWidget(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#setSelected(WorldSelectionList.Entry)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:234 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Selected
ทำงานยังไง
เรียกต่อ: updateButtonStatus().
Parameters
WorldSelectionList.Entry entry
ตัวอย่างใช้งาน
WorldSelectionList instance = ...;
WorldSelectionList.Entry entry = ...;
instance.setSelected(entry);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#updateFilter(String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:168 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Filter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: filter. เรียกต่อ: equals(), fillLevels().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#updateWidgetNarration(NarrationElementOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:248 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Widget Narration
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: children(), contains(), updateNarration().
Parameters
NarrationElementOutput narrationElementOutput
ตัวอย่างใช้งาน
WorldSelectionList instance = ...;
NarrationElementOutput narrationElementOutput = ...;
instance.updateWidgetNarration(narrationElementOutput);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList#WorldSelectionList(SelectWorldScreen,Minecraft,int,int,int,int,String,WorldSelectionList)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:96 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldSelectionList ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: screen, loadingHeader, filter, pendingLevels. เรียกต่อ: LoadingHeader(), loadLevels(), handleNewLevels(), pollLevelsIgnoreErrors(). สร้างออบเจ็กต์: WorldSelectionList.LoadingHeader.
Parameters
SelectWorldScreen selectWorldScreenMinecraft minecraftint iint jint kint lString stringWorldSelectionList worldSelectionList
ตัวอย่างใช้งาน
SelectWorldScreen selectWorldScreen = ...;
Minecraft minecraft = ...;
WorldSelectionList worldSelectionList = ...;
WorldSelectionList instance = new WorldSelectionList(selectWorldScreen, minecraft, 0, 0, 0, 0, "value", worldSelectionList);
WorldSelectionList$Entry
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$Entry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java - Type:
class - Modifiers:
public abstract static - Extends:
ObjectSelectionList.Entry<WorldSelectionList.Entry> - Implements:
AutoCloseable
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$Entry#close()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:259 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldSelectionList$LoadingHeader
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$LoadingHeader - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java - Type:
class - Modifiers:
public static - Extends:
WorldSelectionList.Entry
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$LoadingHeader#getNarration()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:284 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Narration
ทำงานยังไง
คืนค่า: LOADING_LABEL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$LoadingHeader#LoadingHeader(Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:269 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldSelectionList.LoadingHeader ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft.
Parameters
Minecraft minecraft
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
WorldSelectionList.LoadingHeader instance = new WorldSelectionList.LoadingHeader(minecraft);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$LoadingHeader#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:273 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: width(), drawString(), get(), getMillis().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
WorldSelectionList.LoadingHeader instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
WorldSelectionList$WorldListEntry
- Full name:
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry - Package:
net.minecraft.client.gui.screens.worldselection - Source:
clientOnly—net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java - Type:
class - Modifiers:
public final - Extends:
WorldSelectionList.Entry
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#canJoin()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:447 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Join
ทำงานยังไง
เรียกต่อ: primaryActionActive(). คืนค่า: this.summary.primaryActionActive().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#close()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:631 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#deleteWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:464 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ deleteWorld ตาม implementation ของ WorldSelectionList$WorldListEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setScreen(), doDeleteWorld(), translatable(), getLevelName(). สร้างออบเจ็กต์: ConfirmScreen, ProgressScreen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#doDeleteWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:484 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ doDeleteWorld ตาม implementation ของ WorldSelectionList$WorldListEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getLevelSource(), getLevelId(), createAccess(), deleteLevel(), close(), addSuppressed(), onWorldDeleteFailure(), error().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#editWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:516 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ editWorld ตาม implementation ของ WorldSelectionList$WorldListEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: queueLoadScreen(), getLevelId(), getLevelSource(), validateAndCreateAccess(), onWorldAccessFailure(), error(), reloadWorldList(), warn().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#getLevelName()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:636 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
คืนค่า: this.summary.getLevelName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#getNarration()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:338 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Narration
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: translatable(), getLevelName(), translationArg(), getLastPlayed(), getInfo(), isLocked(), joinForNarration(), isExperimental(). สร้างออบเจ็กต์: Date. คืนค่า: Component.translatable("narrator.select", new Object[]{component}).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#joinWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:451 - Modifiers:
public - Return:
void
คืออะไร
รวม/เข้าร่วม World
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: primaryActionActive(), setScreen(), createWorldSymlinkWarningScreen(), createWorldOpenFlows(), openWorld(), getLevelId(), reloadWorldList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#mouseClicked(double,double,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:427 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mouseClicked ตาม implementation ของ WorldSelectionList$WorldListEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastClickTime. เรียกต่อ: primaryActionActive(), setSelected(), getRowLeft(), getMillis(), canJoin(), getSoundManager(), play(), forUI(). มีจุด return อย่างน้อย 3 จุด.
Parameters
double ddouble eint i
ตัวอย่างใช้งาน
WorldSelectionList.WorldListEntry instance = ...;
boolean result = instance.mouseClicked(0.0D, 0.0D, 0);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#recreateWorld()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:555 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recreateWorld ตาม implementation ของ WorldSelectionList$WorldListEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: queueLoadScreen(), getLevelSource(), validateAndCreateAccess(), getLevelId(), createWorldOpenFlows(), recreateWorldData(), getFirst(), getSecond(). สร้างออบเจ็กต์: ConfirmScreen, AlertScreen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:355 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevelName(), getLevelId(), getLastPlayed(), format(), ofEpochMilli(), isEmpty(), get(), getInfo().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
WorldSelectionList.WorldListEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry#WorldListEntry(WorldSelectionList,LevelSummary)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java:302 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldSelectionList.WorldListEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft, screen, summary, icon, iconFile. เรียกต่อ: getScreen(), forWorld(), getTextureManager(), getLevelId(), getIcon(), validateIconFile(), loadIcon().
Parameters
WorldSelectionList worldSelectionList2LevelSummary levelSummary
ตัวอย่างใช้งาน
WorldSelectionList worldSelectionList2 = ...;
LevelSummary levelSummary = ...;
WorldSelectionList.WorldListEntry instance = new WorldSelectionList.WorldListEntry(worldSelectionList2, levelSummary);