Package net.minecraft.world.level.storage
Part 1/1
CommandStorage
- Full name:
net.minecraft.world.level.storage.CommandStorage - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/CommandStorage.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.CommandStorage#CommandStorage(DimensionDataStorage)
- Origin:
common - Source:
net/minecraft/world/level/storage/CommandStorage.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CommandStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: storage.
Parameters
DimensionDataStorage dimensionDataStorage
ตัวอย่างใช้งาน
DimensionDataStorage dimensionDataStorage = ...;
CommandStorage instance = new CommandStorage(dimensionDataStorage);
net.minecraft.world.level.storage.CommandStorage#get(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/storage/CommandStorage.java:33 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: getNamespace(), factory(), createId(), getPath(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: container != null ? container.get(resourceLocation.getPath()) : new CompoundTag().
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
CommandStorage instance = ...;
ResourceLocation resourceLocation = ...;
CompoundTag result = instance.get(resourceLocation);
net.minecraft.world.level.storage.CommandStorage#keys()
- Origin:
common - Source:
net/minecraft/world/level/storage/CommandStorage.java:44 - Modifiers:
public - Return:
Stream<ResourceLocation>
คืออะไร
ดำเนินการ keys ตาม implementation ของ CommandStorage
ทำงานยังไง
เรียกต่อ: entrySet(), stream(), flatMap(), getValue(), getKeys(), getKey(). คืนค่า: this.namespaces.entrySet().stream().flatMap(entry -> entry.getValue().getKeys(entry.getKey())).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.CommandStorage#set(ResourceLocation,CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/CommandStorage.java:39 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getNamespace(), computeIfAbsent(), factory(), createId(), put(), getPath().
Parameters
ResourceLocation resourceLocationCompoundTag compoundTag
ตัวอย่างใช้งาน
CommandStorage instance = ...;
ResourceLocation resourceLocation = ...;
CompoundTag compoundTag = ...;
instance.set(resourceLocation, compoundTag);
DataVersion
- Full name:
net.minecraft.world.level.storage.DataVersion - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/DataVersion.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.DataVersion#DataVersion(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataVersion ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DataVersion#DataVersion(int,String)
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataVersion ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: version, series.
Parameters
int iString string
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DataVersion#getSeries()
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Series
ทำงานยังไง
คืนค่า: this.series.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DataVersion#getVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:25 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Version
ทำงานยังไง
คืนค่า: this.version.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DataVersion#isCompatible(DataVersion)
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:29 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Compatible
ทำงานยังไง
เรียกต่อ: getSeries(), equals(). คืนค่า: this.getSeries().equals(dataVersion.getSeries()).
Parameters
DataVersion dataVersion
ตัวอย่างใช้งาน
DataVersion instance = ...;
DataVersion dataVersion = ...;
boolean result = instance.isCompatible(dataVersion);
net.minecraft.world.level.storage.DataVersion#isSideSeries()
- Origin:
common - Source:
net/minecraft/world/level/storage/DataVersion.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Side Series
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: !this.series.equals(MAIN_SERIES).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DerivedLevelData
- Full name:
net.minecraft.world.level.storage.DerivedLevelData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/DerivedLevelData.java - Type:
class - Modifiers:
public - Implements:
ServerLevelData
net.minecraft.world.level.storage.DerivedLevelData#DerivedLevelData(WorldData,ServerLevelData)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DerivedLevelData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: worldData, wrapped.
Parameters
WorldData worldDataServerLevelData serverLevelData
ตัวอย่างใช้งาน
WorldData worldData = ...;
ServerLevelData serverLevelData = ...;
DerivedLevelData instance = new DerivedLevelData(worldData, serverLevelData);
net.minecraft.world.level.storage.DerivedLevelData#fillCrashReportCategory(CrashReportCategory,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:189 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ DerivedLevelData
ทำงานยังไง
เรียกต่อ: setDetail().
Parameters
CrashReportCategory crashReportCategoryLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
DerivedLevelData instance = ...;
CrashReportCategory crashReportCategory = ...;
LevelHeightAccessor levelHeightAccessor = ...;
instance.fillCrashReportCategory(crashReportCategory, levelHeightAccessor);
net.minecraft.world.level.storage.DerivedLevelData#getClearWeatherTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:48 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Clear Weather Time
ทำงานยังไง
คืนค่า: this.wrapped.getClearWeatherTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getDayTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:38 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Day Time
ทำงานยังไง
คืนค่า: this.wrapped.getDayTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getDifficulty()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:147 - Modifiers:
public - Return:
Difficulty
คืออะไร
อ่านค่า Difficulty
ทำงานยังไง
คืนค่า: this.worldData.getDifficulty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getGameRules()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:133 - Modifiers:
public - Return:
GameRules
คืออะไร
อ่านค่า Game Rules
ทำงานยังไง
คืนค่า: this.worldData.getGameRules().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getGameTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:33 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Game Time
ทำงานยังไง
คืนค่า: this.wrapped.getGameTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getGameType()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:77 - Modifiers:
public - Return:
GameType
คืออะไร
อ่านค่า Game Type
ทำงานยังไง
คืนค่า: this.worldData.getGameType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:43 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
คืนค่า: this.worldData.getLevelName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getRainTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:72 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Rain Time
ทำงานยังไง
คืนค่า: this.wrapped.getRainTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getScheduledEvents()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:157 - Modifiers:
public - Return:
TimerQueue<MinecraftServer>
คืออะไร
อ่านค่า Scheduled Events
ทำงานยังไง
คืนค่า: this.wrapped.getScheduledEvents().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DerivedLevelData instance = ...;
TimerQueue<MinecraftServer> result = instance.getScheduledEvents();
net.minecraft.world.level.storage.DerivedLevelData#getSpawnAngle()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:28 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Spawn Angle
ทำงานยังไง
คืนค่า: this.wrapped.getSpawnAngle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getSpawnPos()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:23 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Spawn Pos
ทำงานยังไง
คืนค่า: this.wrapped.getSpawnPos().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getThunderTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:62 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Thunder Time
ทำงานยังไง
คืนค่า: this.wrapped.getThunderTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getWanderingTraderId()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:180 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า Wandering Trader Id
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getWanderingTraderSpawnChance()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:171 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Chance
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getWanderingTraderSpawnDelay()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:162 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Delay
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#getWorldBorder()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:138 - Modifiers:
public - Return:
WorldBorder.Settings
คืออะไร
อ่านค่า World Border
ทำงานยังไง
คืนค่า: this.wrapped.getWorldBorder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isAllowCommands()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Commands
ทำงานยังไง
คืนค่า: this.worldData.isAllowCommands().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isDifficultyLocked()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:152 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Difficulty Locked
ทำงานยังไง
คืนค่า: this.worldData.isDifficultyLocked().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isHardcore()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:114 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
คืนค่า: this.worldData.isHardcore().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isInitialized()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:124 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Initialized
ทำงานยังไง
คืนค่า: this.wrapped.isInitialized().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isRaining()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:67 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Raining
ทำงานยังไง
คืนค่า: this.wrapped.isRaining().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#isThundering()
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Thundering
ทำงานยังไง
คืนค่า: this.wrapped.isThundering().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setClearWeatherTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:53 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Clear Weather Time
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setDayTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:86 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Day Time
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setGameTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:82 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Time
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setGameType(GameType)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:110 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Type
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
GameType gameType
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setInitialized(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:129 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Initialized
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setRaining(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:102 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Raining
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setRainTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:106 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Rain Time
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setSpawn(BlockPos,float)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Spawn
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosfloat f
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setThundering(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:94 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Thundering
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setThunderTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:98 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Thunder Time
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setWanderingTraderId(UUID)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:185 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Id
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setWanderingTraderSpawnChance(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:176 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Chance
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setWanderingTraderSpawnDelay(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:167 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Delay
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DerivedLevelData#setWorldBorder(WorldBorder.Settings)
- Origin:
common - Source:
net/minecraft/world/level/storage/DerivedLevelData.java:143 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า World Border
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldBorder.Settings settings
ตัวอย่างใช้งาน
DerivedLevelData instance = ...;
WorldBorder.Settings settings = ...;
instance.setWorldBorder(settings);
DimensionDataStorage
- Full name:
net.minecraft.world.level.storage.DimensionDataStorage - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/DimensionDataStorage.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.world.level.storage.DimensionDataStorage#close()
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:191 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
เรียกต่อ: saveAndJoin().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DimensionDataStorage#computeIfAbsent(SavedData.Factory<T>,String)
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:53 - Modifiers:
public - Return:
T
คืออะไร
คำนวณ If Absent
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), constructor(), set(). มีจุด return อย่างน้อย 2 จุด.
Parameters
SavedData.Factory<T> factoryString string
ตัวอย่างใช้งาน
DimensionDataStorage instance = ...;
SavedData.Factory<T> factory = ...;
T result = instance.computeIfAbsent(factory, "value");
net.minecraft.world.level.storage.DimensionDataStorage#DimensionDataStorage(Path,DataFixer,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DimensionDataStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fixerUpper, dataFolder, registries.
Parameters
Path pathDataFixer dataFixerHolderLookup.Provider provider
ตัวอย่างใช้งาน
Path path = ...;
DataFixer dataFixer = ...;
HolderLookup.Provider provider = ...;
DimensionDataStorage instance = new DimensionDataStorage(path, dataFixer, provider);
net.minecraft.world.level.storage.DimensionDataStorage#get(SavedData.Factory<T>,String)
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:64 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: ofNullable(), readSavedData(), deserializer(), type(), put(), orElse(). คืนค่า: (T)optional.orElse(null).
Parameters
SavedData.Factory<T> factoryString string
ตัวอย่างใช้งาน
DimensionDataStorage instance = ...;
SavedData.Factory<T> factory = ...;
T result = instance.get(factory, "value");
net.minecraft.world.level.storage.DimensionDataStorage#readTagFromDisk(String,DataFixTypes,int)
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:95 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่าน Tag From Disk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: newInputStream(), getDataFile(), isGzip(), readCompressed(), unlimitedHeap(), read(), getDataVersion(), update(). สร้างออบเจ็กต์: PushbackInputStream, FastBufferedInputStream, DataInputStream. คืนค่า: dataFixTypes.update(this.fixerUpper, compoundTag, j, i).
Parameters
String stringDataFixTypes dataFixTypesint i
Throws
IOException
ตัวอย่างใช้งาน
DimensionDataStorage instance = ...;
DataFixTypes dataFixTypes = ...;
CompoundTag result = instance.readTagFromDisk("value", dataFixTypes, 0);
net.minecraft.world.level.storage.DimensionDataStorage#saveAndJoin()
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:187 - Modifiers:
public - Return:
void
คืออะไร
บันทึก And Join
ทำงานยังไง
เรียกต่อ: scheduleSave(), join().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DimensionDataStorage#scheduleSave()
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:132 - Modifiers:
public - Return:
CompletableFuture<?>
คืออะไร
ดำเนินการ scheduleSave ตาม implementation ของ DimensionDataStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: pendingWriteFuture. เรียกต่อ: collectDirtyTagsToSave(), isEmpty(), completedFuture(), maxAllowedExecutorThreads(), size(), thenCompose(), positiveCeilDiv(), partition(). สร้างออบเจ็กต์: ArrayList<>. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.DimensionDataStorage#set(String,SavedData)
- Origin:
common - Source:
net/minecraft/world/level/storage/DimensionDataStorage.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: put(), of(), setDirty().
Parameters
String stringSavedData savedData
ตัวอย่างใช้งาน
FileNameDateFormatter
- Full name:
net.minecraft.world.level.storage.FileNameDateFormatter - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/FileNameDateFormatter.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.FileNameDateFormatter#create()
- Origin:
common - Source:
net/minecraft/world/level/storage/FileNameDateFormatter.java:9 - Modifiers:
public static - Return:
DateTimeFormatter
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: appendValue(), appendLiteral(), toFormatter(). สร้างออบเจ็กต์: DateTimeFormatterBuilder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelData
- Full name:
net.minecraft.world.level.storage.LevelData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelData.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.storage.LevelData#fillCrashReportCategory(CrashReportCategory,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:30 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ LevelData
ทำงานยังไง
เรียกต่อ: setDetail(), formatLocation(), getSpawnPos(), format(), getGameTime(), getDayTime().
Parameters
CrashReportCategory crashReportCategoryLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
LevelData instance = ...;
CrashReportCategory crashReportCategory = ...;
LevelHeightAccessor levelHeightAccessor = ...;
instance.fillCrashReportCategory(crashReportCategory, levelHeightAccessor);
net.minecraft.world.level.storage.LevelData#getDayTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:16 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Day Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#getDifficulty()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:26 - Modifiers: ``
- Return:
Difficulty
คืออะไร
อ่านค่า Difficulty
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#getGameTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:14 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Game Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#getSpawnAngle()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:12 - Modifiers: ``
- Return:
float
คืออะไร
อ่านค่า Spawn Angle
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#getSpawnPos()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:10 - Modifiers: ``
- Return:
BlockPos
คืออะไร
อ่านค่า Spawn Pos
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#isDifficultyLocked()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:28 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Difficulty Locked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#isHardcore()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:24 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#isRaining()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:20 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Raining
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#isThundering()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:18 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Thundering
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelData#setRaining(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelData.java:22 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Raining
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean bl
ตัวอย่างใช้งาน
LevelResource
- Full name:
net.minecraft.world.level.storage.LevelResource - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelResource.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.LevelResource#getId()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelResource.java:22 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelResource#toString()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelResource.java:26 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ LevelResource
ทำงานยังไง
คืนค่า: "/" + this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageException
- Full name:
net.minecraft.world.level.storage.LevelStorageException - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelStorageException.java - Type:
class - Modifiers:
public - Extends:
RuntimeException
net.minecraft.world.level.storage.LevelStorageException#getMessageComponent()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageException.java:13 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Message Component
ทำงานยังไง
คืนค่า: this.messageComponent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageException#LevelStorageException(Component)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageException.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelStorageException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: messageComponent. เรียกต่อ: getString().
Parameters
Component component
ตัวอย่างใช้งาน
LevelStorageSource
- Full name:
net.minecraft.world.level.storage.LevelStorageSource - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelStorageSource.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.LevelStorageSource#createAccess(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:339 - Modifiers:
public - Return:
LevelStorageSource.LevelStorageAccess
คืออะไร
สร้าง Access
ทำงานยังไง
เรียกต่อ: getLevelPath(), LevelStorageAccess(). สร้างออบเจ็กต์: LevelStorageSource.LevelStorageAccess. คืนค่า: new LevelStorageSource.LevelStorageAccess(string, path).
Parameters
String string
Throws
IOException
ตัวอย่างใช้งาน
LevelStorageSource instance = ...;
LevelStorageSource.LevelStorageAccess result = instance.createAccess("value");
net.minecraft.world.level.storage.LevelStorageSource#createDefault(Path)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:118 - Modifiers:
public static - Return:
LevelStorageSource
คืออะไร
สร้าง Default
ทำงานยังไง
เรียกต่อ: parseValidator(), resolve(), getDataFixer(). สร้างออบเจ็กต์: LevelStorageSource. คืนค่า: new LevelStorageSource(path, path.resolve("../backups"), directoryValidator, DataFixers.getDataFixer()).
Parameters
Path path
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#findLevelCandidates()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:148 - Modifiers:
public - Return:
LevelStorageSource.LevelCandidates
คืออะไร
ค้นหา Level Candidates
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: isDirectory(), translatable(), list(), filter(), map(), isRegularFile(), dataFile(), oldDataFile(). สร้างออบเจ็กต์: LevelStorageException, LevelStorageSource.LevelCandidates. คืนค่า: new LevelStorageSource.LevelCandidates(list).
Parameters
- ไม่มี
Throws
LevelStorageException
ตัวอย่างใช้งาน
LevelStorageSource instance = ...;
LevelStorageSource.LevelCandidates result = instance.findLevelCandidates();
net.minecraft.world.level.storage.LevelStorageSource#getBackupPath()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:325 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Backup Path
ทำงานยังไง
คืนค่า: this.backupDir.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#getBaseDir()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:321 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Base Dir
ทำงานยังไง
คืนค่า: this.baseDir.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#getLevelDataAndDimensions(Dynamic<?>,WorldDataConfiguration,Registry<LevelStem>,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:131 - Modifiers:
public static - Return:
LevelDataAndDimensions
คืออะไร
อ่านค่า Level Data And Dimensions
ทำงานยังไง
เรียกต่อ: injectRegistryContext(), get(), orElseEmptyMap(), parse(), getOrThrow(), dimensions(), bake(), lifecycle(). สร้างออบเจ็กต์: LevelDataAndDimensions. คืนค่า: new LevelDataAndDimensions(primaryLevelData, complete).
Parameters
Dynamic<?> dynamicWorldDataConfiguration worldDataConfigurationRegistry<LevelStem> registryHolderLookup.Provider provider
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
WorldDataConfiguration worldDataConfiguration = ...;
Registry<LevelStem> registry = ...;
HolderLookup.Provider provider = ...;
LevelDataAndDimensions result = LevelStorageSource.getLevelDataAndDimensions(dynamic, worldDataConfiguration, registry, provider);
net.minecraft.world.level.storage.LevelStorageSource#getLevelPath(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:317 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Level Path
ทำงานยังไง
เรียกต่อ: resolve(). คืนค่า: this.baseDir.resolve(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#getName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:144 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: "Anvil".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#getPackConfig(Dynamic<?>,PackRepository,boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:127 - Modifiers:
public static - Return:
WorldLoader.PackConfig
คืออะไร
อ่านค่า Pack Config
ทำงานยังไง
เรียกต่อ: PackConfig(), readDataConfig(). สร้างออบเจ็กต์: WorldLoader.PackConfig. คืนค่า: new WorldLoader.PackConfig(packRepository, readDataConfig(dynamic), bl, false).
Parameters
Dynamic<?> dynamicPackRepository packRepositoryboolean bl
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
PackRepository packRepository = ...;
WorldLoader.PackConfig result = LevelStorageSource.getPackConfig(dynamic, packRepository, true);
net.minecraft.world.level.storage.LevelStorageSource#getWorldDirValidator()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:344 - Modifiers:
public - Return:
DirectoryValidator
คืออะไร
อ่านค่า World Dir Validator
ทำงานยังไง
คืนค่า: this.worldDirValidator.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#isNewLevelIdAcceptable(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:298 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ New Level Id Acceptable
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: getLevelPath(), createDirectory(), deleteIfExists(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#levelExists(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:309 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ levelExists ตาม implementation ของ LevelStorageSource
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: isDirectory(), getLevelPath(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#LevelStorageSource(Path,Path,DirectoryValidator,DataFixer)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:92 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelStorageSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการจัดการ exception. แก้ state: fixerUpper, baseDir, backupDir, worldDirValidator. เรียกต่อ: createDirectoriesSafe(). สร้างออบเจ็กต์: UncheckedIOException.
Parameters
Path pathPath path2DirectoryValidator directoryValidatorDataFixer dataFixer
ตัวอย่างใช้งาน
Path path = ...;
Path path2 = ...;
DirectoryValidator directoryValidator = ...;
DataFixer dataFixer = ...;
LevelStorageSource instance = new LevelStorageSource(path, path2, directoryValidator, dataFixer);
net.minecraft.world.level.storage.LevelStorageSource#loadLevelSummaries(LevelStorageSource.LevelCandidates)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:164 - Modifiers:
public - Return:
CompletableFuture<List<LevelSummary>>
คืออะไร
โหลด Level Summaries
ทำงานยังไง
มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: size(), add(), supplyAsync(), isLocked(), path(), warn(), readLevelSummary(), release(). สร้างออบเจ็กต์: ArrayList<>, OutOfMemoryError, ReportedException. มีจุด return อย่างน้อย 3 จุด.
Parameters
LevelStorageSource.LevelCandidates levelCandidates
ตัวอย่างใช้งาน
LevelStorageSource instance = ...;
LevelStorageSource.LevelCandidates levelCandidates = ...;
CompletableFuture<List<LevelSummary>> result = instance.loadLevelSummaries(levelCandidates);
net.minecraft.world.level.storage.LevelStorageSource#parseValidator(Path)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:106 - Modifiers:
public static - Return:
DirectoryValidator
คืออะไร
แปลง/วิเคราะห์ข้อมูล Validator
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: exists(), newBufferedReader(), readPlain(), error(). สร้างออบเจ็กต์: DirectoryValidator. มีจุด return อย่างน้อย 2 จุด.
Parameters
Path path
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource#readDataConfig(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:123 - Modifiers:
public static - Return:
WorldDataConfiguration
คืออะไร
อ่าน Data Config
ทำงานยังไง
เรียกต่อ: parse(), resultOrPartial(), orElse(). คืนค่า: WorldDataConfiguration.CODEC.parse(dynamic).resultOrPartial(LOGGER::error).orElse(WorldDataConfiguration.DEFAULT).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
WorldDataConfiguration result = LevelStorageSource.readDataConfig(dynamic);
net.minecraft.world.level.storage.LevelStorageSource#validateAndCreateAccess(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:329 - Modifiers:
public - Return:
LevelStorageSource.LevelStorageAccess
คืออะไร
ตรวจสอบความถูกต้อง And Create Access
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevelPath(), validateDirectory(), isEmpty(), LevelStorageAccess(). สร้างออบเจ็กต์: ContentValidationException, LevelStorageSource.LevelStorageAccess. คืนค่า: new LevelStorageSource.LevelStorageAccess(string, path).
Parameters
String string
Throws
IOExceptionContentValidationException
ตัวอย่างใช้งาน
LevelStorageSource instance = ...;
LevelStorageSource.LevelStorageAccess result = instance.validateAndCreateAccess("value");
LevelStorageSource$LevelCandidates
- Full name:
net.minecraft.world.level.storage.LevelStorageSource$LevelCandidates - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelStorageSource.java - Type:
record - Modifiers:
public - Implements:
Iterable<LevelStorageSource.LevelDirectory>
net.minecraft.world.level.storage.LevelStorageSource$LevelCandidates#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:350 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.levels.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelCandidates#iterator()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:354 - Modifiers:
public - Return:
Iterator<LevelStorageSource.LevelDirectory>
คืออะไร
ดำเนินการ iterator ตาม implementation ของ LevelStorageSource$LevelCandidates
ทำงานยังไง
คืนค่า: this.levels.iterator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelCandidates instance = ...;
Iterator<LevelStorageSource.LevelDirectory> result = instance.iterator();
LevelStorageSource$LevelDirectory
- Full name:
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelStorageSource.java - Type:
record - Modifiers:
public
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#corruptedDataFile(LocalDateTime)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:374 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ corruptedDataFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resolve(), getId(), format(). คืนค่า: this.path.resolve(LevelResource.LEVEL_DATA_FILE.getId() + "_corrupted_" + localDateTime.format(LevelStorageSource.FORMATTER)).
Parameters
LocalDateTime localDateTime
ตัวอย่างใช้งาน
LevelStorageSource.LevelDirectory instance = ...;
LocalDateTime localDateTime = ...;
Path result = instance.corruptedDataFile(localDateTime);
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#dataFile()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:366 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ dataFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resourcePath(). คืนค่า: this.resourcePath(LevelResource.LEVEL_DATA_FILE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#directoryName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:362 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ directoryName ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: getFileName(), toString(). คืนค่า: this.path.getFileName().toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#iconFile()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:382 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ iconFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resourcePath(). คืนค่า: this.resourcePath(LevelResource.ICON_FILE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#lockFile()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:386 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ lockFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resourcePath(). คืนค่า: this.resourcePath(LevelResource.LOCK_FILE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#oldDataFile()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:370 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ oldDataFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resourcePath(). คืนค่า: this.resourcePath(LevelResource.OLD_LEVEL_DATA_FILE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#rawDataFile(LocalDateTime)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:378 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ rawDataFile ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resolve(), getId(), format(). คืนค่า: this.path.resolve(LevelResource.LEVEL_DATA_FILE.getId() + "_raw_" + localDateTime.format(LevelStorageSource.FORMATTER)).
Parameters
LocalDateTime localDateTime
ตัวอย่างใช้งาน
LevelStorageSource.LevelDirectory instance = ...;
LocalDateTime localDateTime = ...;
Path result = instance.rawDataFile(localDateTime);
net.minecraft.world.level.storage.LevelStorageSource$LevelDirectory#resourcePath(LevelResource)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:390 - Modifiers:
public - Return:
Path
คืออะไร
ดำเนินการ resourcePath ตาม implementation ของ LevelStorageSource$LevelDirectory
ทำงานยังไง
เรียกต่อ: resolve(), getId(). คืนค่า: this.path.resolve(levelResource.getId()).
Parameters
LevelResource levelResource
ตัวอย่างใช้งาน
LevelStorageSource.LevelDirectory instance = ...;
LevelResource levelResource = ...;
Path result = instance.resourcePath(levelResource);
LevelStorageSource$LevelStorageAccess
- Full name:
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelStorageSource.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#checkForLowDiskSpace()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:415 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบ For Low Disk Space
ทำงานยังไง
เรียกต่อ: estimateDiskSpace(). คืนค่า: this.estimateDiskSpace() < 67108864L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
boolean result = instance.checkForLowDiskSpace();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#close()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:610 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#createPlayerStorage()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:453 - Modifiers:
public - Return:
PlayerDataStorage
คืออะไร
สร้าง Player Storage
ทำงานยังไง
เรียกต่อ: checkLock(). สร้างออบเจ็กต์: PlayerDataStorage. คืนค่า: new PlayerDataStorage(this, LevelStorageSource.this.fixerUpper).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
PlayerDataStorage result = instance.createPlayerStorage();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#deleteLevel()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:505 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ deleteLevel ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: checkLock(), lockFile(), info(), walkFileTree(), path(), visitFile(), equals(), debug(). สร้างออบเจ็กต์: SimpleFileVisitor<Path>. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#estimateDiskSpace()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:407 - Modifiers:
public - Return:
long
คืออะไร
ดำเนินการ estimateDiskSpace ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: getFileStore(), getUsableSpace(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getDataTag()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:463 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
อ่านค่า Data Tag
ทำงานยังไง
คืนค่า: this.getDataTag(false).
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getDataTagFallback()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:467 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
อ่านค่า Data Tag Fallback
ทำงานยังไง
เรียกต่อ: getDataTag(). คืนค่า: this.getDataTag(true).
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
Dynamic<?> result = instance.getDataTagFallback();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getDimensionPath(ResourceKey<Level>)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:443 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Dimension Path
ทำงานยังไง
เรียกต่อ: getStorageFolder(), path(). คืนค่า: DimensionType.getStorageFolder(resourceKey, this.levelDirectory.path()).
Parameters
ResourceKey<Level> resourceKey
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
ResourceKey<Level> resourceKey = ...;
Path result = instance.getDimensionPath(resourceKey);
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getFileModificationTime(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:621 - Modifiers:
public - Return:
Instant
คืออะไร
อ่านค่า File Modification Time
ทำงานยังไง
เรียกต่อ: oldDataFile(), dataFile(). คืนค่า: LevelStorageSource.getFileModificationTime(bl ? this.levelDirectory.oldDataFile() : this.levelDirectory.dataFile()).
Parameters
boolean bl
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
Instant result = instance.getFileModificationTime(true);
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getIconFile()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:501 - Modifiers:
public - Return:
Optional<Path>
คืออะไร
อ่านค่า Icon File
ทำงานยังไง
เรียกต่อ: isValid(), empty(), of(), iconFile(). คืนค่า: !this.lock.isValid() ? Optional.empty() : Optional.of(this.levelDirectory.iconFile()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
Optional<Path> result = instance.getIconFile();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getLevelDirectory()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:431 - Modifiers:
public - Return:
LevelStorageSource.LevelDirectory
คืออะไร
อ่านค่า Level Directory
ทำงานยังไง
คืนค่า: this.levelDirectory.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
LevelStorageSource.LevelDirectory result = instance.getLevelDirectory();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getLevelId()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:435 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Id
ทำงานยังไง
คืนค่า: this.levelId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getLevelPath(LevelResource)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:439 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Level Path
ทำงานยังไง
เรียกต่อ: computeIfAbsent(). คืนค่า: this.resources.computeIfAbsent(levelResource, this.levelDirectory::resourcePath).
Parameters
LevelResource levelResource
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
LevelResource levelResource = ...;
Path result = instance.getLevelPath(levelResource);
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#getSummary(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:458 - Modifiers:
public - Return:
LevelSummary
คืออะไร
อ่านค่า Summary
ทำงานยังไง
เรียกต่อ: checkLock(), makeLevelSummary(). คืนค่า: LevelStorageSource.this.makeLevelSummary(dynamic, this.levelDirectory, false).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
Dynamic<?> dynamic = ...;
LevelSummary result = instance.getSummary(dynamic);
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#hasWorldData()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:606 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี World Data
ทำงานยังไง
เรียกต่อ: exists(), dataFile(), oldDataFile(). คืนค่า: Files.exists(this.levelDirectory.dataFile()) || Files.exists(this.levelDirectory.oldDataFile()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#makeWorldBackup()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:572 - Modifiers:
public - Return:
long
คืออะไร
สร้าง World Backup
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: checkLock(), now(), format(), getBackupPath(), createDirectoriesSafe(), resolve(), findAvailableName(), newOutputStream(). สร้างออบเจ็กต์: RuntimeException, ZipOutputStream, BufferedOutputStream, SimpleFileVisitor<Path>. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#parent()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:427 - Modifiers:
public - Return:
LevelStorageSource
คืออะไร
ดำเนินการ parent ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
คืนค่า: LevelStorageSource.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
LevelStorageSource result = instance.parent();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#renameAndDropPlayer(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:558 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ renameAndDropPlayer ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
เรียกต่อ: modifyLevelDataWithoutDatafix(), putString(), trim(), remove().
Parameters
String string
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#renameLevel(String)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:554 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ renameLevel ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
เรียกต่อ: modifyLevelDataWithoutDatafix(), putString(), trim().
Parameters
String string
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#restoreLevelDataFromOld()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:615 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ restoreLevelDataFromOld ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
เรียกต่อ: safeReplaceOrMoveFile(), dataFile(), oldDataFile(), corruptedDataFile(), now().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
boolean result = instance.restoreLevelDataFromOld();
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#safeClose()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:419 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ safeClose ตาม implementation ของ LevelStorageSource$LevelStorageAccess
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: close(), warn(), getLevelId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#saveDataTag(RegistryAccess,WorldData)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:476 - Modifiers:
public - Return:
void
คืออะไร
บันทึก Data Tag
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
RegistryAccess registryAccessWorldData worldData
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
RegistryAccess registryAccess = ...;
WorldData worldData = ...;
instance.saveDataTag(registryAccess, worldData);
net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess#saveDataTag(RegistryAccess,WorldData,CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelStorageSource.java:480 - Modifiers:
public - Return:
void
คืออะไร
บันทึก Data Tag
ทำงานยังไง
เรียกต่อ: createTag(), put(), saveLevelData(). สร้างออบเจ็กต์: CompoundTag.
Parameters
RegistryAccess registryAccessWorldData worldDataCompoundTag compoundTag
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess instance = ...;
RegistryAccess registryAccess = ...;
WorldData worldData = ...;
CompoundTag compoundTag = ...;
instance.saveDataTag(registryAccess, worldData, compoundTag);
LevelSummary
- Full name:
net.minecraft.world.level.storage.LevelSummary - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelSummary.java - Type:
class - Modifiers:
public - Implements:
Comparable<LevelSummary>
net.minecraft.world.level.storage.LevelSummary#backupStatus()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:104 - Modifiers:
public - Return:
LevelSummary.BackupStatus
คืออะไร
ดำเนินการ backupStatus ตาม implementation ของ LevelSummary
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCurrentVersion(), getDataVersion(), getVersion(), minecraftVersion(), isStable(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#canDelete()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:191 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Delete
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#canEdit()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:183 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Edit
ทำงานยังไง
เรียกต่อ: isDisabled(). คืนค่า: !this.isDisabled().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#canRecreate()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:187 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Recreate
ทำงานยังไง
เรียกต่อ: isDisabled(). คืนค่า: !this.isDisabled().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#canUpload()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:179 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Upload
ทำงานยังไง
เรียกต่อ: requiresManualConversion(), isLocked(). คืนค่า: !this.requiresManualConversion() && !this.isLocked().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#compareTo(LevelSummary)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:62 - Modifiers:
public - Return:
int
คืออะไร
เปรียบเทียบ To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLastPlayed(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelSummary levelSummary
ตัวอย่างใช้งาน
LevelSummary instance = ...;
LevelSummary levelSummary = ...;
int result = instance.compareTo(levelSummary);
net.minecraft.world.level.storage.LevelSummary#getGameMode()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:74 - Modifiers:
public - Return:
GameType
คืออะไร
อ่านค่า Game Mode
ทำงานยังไง
เรียกต่อ: gameType(). คืนค่า: this.settings.gameType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getIcon()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:46 - Modifiers:
public - Return:
Path
คืออะไร
อ่านค่า Icon
ทำงานยังไง
คืนค่า: this.icon.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getInfo()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:127 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Info
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: info. เรียกต่อ: createInfo(). คืนค่า: this.info.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getLastPlayed()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:58 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Last Played
ทำงานยังไง
เรียกต่อ: lastPlayed(). คืนค่า: this.levelVersion.lastPlayed().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getLevelId()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:38 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Id
ทำงานยังไง
คืนค่า: this.levelId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:42 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
เรียกต่อ: isEmpty(), levelName(). คืนค่า: StringUtils.isEmpty(this.settings.levelName()) ? this.levelId : this.settings.levelName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getSettings()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:70 - Modifiers:
public - Return:
LevelSettings
คืออะไร
อ่านค่า Settings
ทำงานยังไง
คืนค่า: this.settings.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#getWorldVersionName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:86 - Modifiers:
public - Return:
MutableComponent
คืออะไร
อ่านค่า World Version Name
ทำงานยังไง
เรียกต่อ: isNullOrEmpty(), minecraftVersionName(), translatable(), literal().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#hasCommands()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:82 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Commands
ทำงานยังไง
เรียกต่อ: allowCommands(). คืนค่า: this.settings.allowCommands().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isCompatible()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:123 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Compatible
ทำงานยังไง
เรียกต่อ: getCurrentVersion(), getDataVersion(), minecraftVersion(). คืนค่า: SharedConstants.getCurrentVersion().getDataVersion().isCompatible(this.levelVersion.minecraftVersion()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isDisabled()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Disabled
ทำงานยังไง
เรียกต่อ: isLocked(), requiresManualConversion(), isCompatible(). คืนค่า: !this.isLocked() && !this.requiresManualConversion() ? !this.isCompatible() : true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isDowngrade()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:100 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Downgrade
ทำงานยังไง
เรียกต่อ: backupStatus(). คืนค่า: this.backupStatus() == LevelSummary.BackupStatus.DOWNGRADE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isExperimental()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:54 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Experimental
ทำงานยังไง
คืนค่า: this.experimental.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isHardcore()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
เรียกต่อ: hardcore(). คืนค่า: this.settings.hardcore().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#isLocked()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:115 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Locked
ทำงานยังไง
คืนค่า: this.locked.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#LevelSummary(LevelSettings,LevelVersion,String,boolean,boolean,boolean,Path)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelSummary ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: settings, levelVersion, levelId, locked, experimental, icon.
Parameters
LevelSettings levelSettingsLevelVersion levelVersionString stringboolean blboolean bl2boolean bl3Path path
ตัวอย่างใช้งาน
LevelSettings levelSettings = ...;
LevelVersion levelVersion = ...;
Path path = ...;
LevelSummary instance = new LevelSummary(levelSettings, levelVersion, "value", true, true, true, path);
net.minecraft.world.level.storage.LevelSummary#levelVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:92 - Modifiers:
public - Return:
LevelVersion
คืออะไร
ดำเนินการ levelVersion ตาม implementation ของ LevelSummary
ทำงานยังไง
คืนค่า: this.levelVersion.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#primaryActionActive()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:175 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ primaryActionActive ตาม implementation ของ LevelSummary
ทำงานยังไง
เรียกต่อ: isDisabled(). คืนค่า: !this.isDisabled().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#primaryActionMessage()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:171 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ primaryActionMessage ตาม implementation ของ LevelSummary
ทำงานยังไง
คืนค่า: PLAY_WORLD.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#requiresManualConversion()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:50 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ requiresManualConversion ตาม implementation ของ LevelSummary
ทำงานยังไง
คืนค่า: this.requiresManualConversion.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary#shouldBackup()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:96 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Backup
ทำงานยังไง
เรียกต่อ: backupStatus(). คืนค่า: this.backupStatus().shouldBackup().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelSummary$BackupStatus
- Full name:
net.minecraft.world.level.storage.LevelSummary$BackupStatus - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelSummary.java - Type:
enum - Modifiers:
public
net.minecraft.world.level.storage.LevelSummary$BackupStatus#getTranslationKey()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:218 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Translation Key
ทำงานยังไง
คืนค่า: this.translationKey.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$BackupStatus#isSevere()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:214 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Severe
ทำงานยังไง
คืนค่า: this.severe.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$BackupStatus#shouldBackup()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:210 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Backup
ทำงานยังไง
คืนค่า: this.shouldBackup.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelSummary$CorruptedLevelSummary
- Full name:
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelSummary.java - Type:
class - Modifiers:
public static - Extends:
LevelSummary
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#canEdit()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:268 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Edit
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#canRecreate()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:273 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Recreate
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#canUpload()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:263 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Upload
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#CorruptedLevelSummary(String,Path,long)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:228 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelSummary.CorruptedLevelSummary ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: lastPlayed.
Parameters
String stringPath pathlong l
ตัวอย่างใช้งาน
Path path = ...;
LevelSummary.CorruptedLevelSummary instance = new LevelSummary.CorruptedLevelSummary("value", path, 0L);
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#getInfo()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:238 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Info
ทำงานยังไง
คืนค่า: INFO.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#getLastPlayed()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:243 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Last Played
ทำงานยังไง
คืนค่า: this.lastPlayed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:233 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
เรียกต่อ: getLevelId(). คืนค่า: this.getLevelId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#isDisabled()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:248 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Disabled
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#primaryActionActive()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:258 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ primaryActionActive ตาม implementation ของ LevelSummary$CorruptedLevelSummary
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$CorruptedLevelSummary#primaryActionMessage()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:253 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ primaryActionMessage ตาม implementation ของ LevelSummary$CorruptedLevelSummary
ทำงานยังไง
คืนค่า: RECOVER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelSummary.CorruptedLevelSummary instance = ...;
Component result = instance.primaryActionMessage();
LevelSummary$SymlinkLevelSummary
- Full name:
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelSummary.java - Type:
class - Modifiers:
public static - Extends:
LevelSummary
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#canEdit()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:322 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Edit
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#canRecreate()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:327 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Recreate
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#canUpload()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:317 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Upload
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#getInfo()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:292 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Info
ทำงานยังไง
คืนค่า: INFO.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#getLastPlayed()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:297 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Last Played
ทำงานยังไง
คืนค่า: -1L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:287 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
เรียกต่อ: getLevelId(). คืนค่า: this.getLevelId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#isDisabled()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:302 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Disabled
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#primaryActionActive()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:312 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ primaryActionActive ตาม implementation ของ LevelSummary$SymlinkLevelSummary
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#primaryActionMessage()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:307 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ primaryActionMessage ตาม implementation ของ LevelSummary$SymlinkLevelSummary
ทำงานยังไง
คืนค่า: MORE_INFO_BUTTON.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelSummary.SymlinkLevelSummary instance = ...;
Component result = instance.primaryActionMessage();
net.minecraft.world.level.storage.LevelSummary$SymlinkLevelSummary#SymlinkLevelSummary(String,Path)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelSummary.java:283 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelSummary.SymlinkLevelSummary ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringPath path
ตัวอย่างใช้งาน
Path path = ...;
LevelSummary.SymlinkLevelSummary instance = new LevelSummary.SymlinkLevelSummary("value", path);
LevelVersion
- Full name:
net.minecraft.world.level.storage.LevelVersion - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/LevelVersion.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.LevelVersion#lastPlayed()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:42 - Modifiers:
public - Return:
long
คืออะไร
ดำเนินการ lastPlayed ตาม implementation ของ LevelVersion
ทำงานยังไง
คืนค่า: this.lastPlayed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelVersion#levelDataVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:38 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ levelDataVersion ตาม implementation ของ LevelVersion
ทำงานยังไง
คืนค่า: this.levelDataVersion.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelVersion#minecraftVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:50 - Modifiers:
public - Return:
DataVersion
คืออะไร
ดำเนินการ minecraftVersion ตาม implementation ของ LevelVersion
ทำงานยังไง
คืนค่า: this.minecraftVersion.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelVersion#minecraftVersionName()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:46 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ minecraftVersionName ตาม implementation ของ LevelVersion
ทำงานยังไง
คืนค่า: this.minecraftVersionName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelVersion#parse(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:22 - Modifiers:
public static - Return:
LevelVersion
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: get(), asInt(), asLong(), result(), isPresent(), asString(), getCurrentVersion(), getName(). สร้างออบเจ็กต์: LevelVersion.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.LevelVersion#snapshot()
- Origin:
common - Source:
net/minecraft/world/level/storage/LevelVersion.java:54 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ snapshot ตาม implementation ของ LevelVersion
ทำงานยังไง
คืนค่า: this.snapshot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PlayerDataStorage
- Full name:
net.minecraft.world.level.storage.PlayerDataStorage - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/PlayerDataStorage.java - Type:
class - Modifiers:
public
net.minecraft.world.level.storage.PlayerDataStorage#load(Player)
- Origin:
common - Source:
net/minecraft/world/level/storage/PlayerDataStorage.java:73 - Modifiers:
public - Return:
Optional<CompoundTag>
คืออะไร
โหลด load
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), backup(), or(), map(), getDataVersion(), updateToCurrentVersion(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player player
ตัวอย่างใช้งาน
PlayerDataStorage instance = ...;
Player player = ...;
Optional<CompoundTag> result = instance.load(player);
net.minecraft.world.level.storage.PlayerDataStorage#PlayerDataStorage(LevelStorageSource.LevelStorageAccess,DataFixer)
- Origin:
common - Source:
net/minecraft/world/level/storage/PlayerDataStorage.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PlayerDataStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fixerUpper, playerDir. เรียกต่อ: getLevelPath(), toFile(), mkdirs().
Parameters
LevelStorageSource.LevelStorageAccess levelStorageAccessDataFixer dataFixer
ตัวอย่างใช้งาน
LevelStorageSource.LevelStorageAccess levelStorageAccess = ...;
DataFixer dataFixer = ...;
PlayerDataStorage instance = new PlayerDataStorage(levelStorageAccess, dataFixer);
net.minecraft.world.level.storage.PlayerDataStorage#save(Player)
- Origin:
common - Source:
net/minecraft/world/level/storage/PlayerDataStorage.java:33 - Modifiers:
public - Return:
void
คืออะไร
บันทึก save
ทำงานยังไง
มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: saveWithoutId(), toPath(), createTempFile(), getStringUUID(), writeCompressed(), resolve(), safeReplaceFile(), warn(). สร้างออบเจ็กต์: CompoundTag.
Parameters
Player player
ตัวอย่างใช้งาน
PrimaryLevelData
- Full name:
net.minecraft.world.level.storage.PrimaryLevelData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/PrimaryLevelData.java - Type:
class - Modifiers:
public - Implements:
ServerLevelData,WorldData
net.minecraft.world.level.storage.PrimaryLevelData#createTag(RegistryAccess,CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:204 - Modifiers:
public - Return:
CompoundTag
คืออะไร
สร้าง Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setTagData(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag2.
Parameters
RegistryAccess registryAccessCompoundTag compoundTag
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
RegistryAccess registryAccess = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.createTag(registryAccess, compoundTag);
net.minecraft.world.level.storage.PrimaryLevelData#endDragonFightData()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:480 - Modifiers:
public - Return:
EndDragonFight.Data
คืออะไร
ดำเนินการ endDragonFightData ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
คืนค่า: this.endDragonFightData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#fillCrashReportCategory(CrashReportCategory,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:454 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 2 statement).
Parameters
CrashReportCategory crashReportCategoryLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
CrashReportCategory crashReportCategory = ...;
LevelHeightAccessor levelHeightAccessor = ...;
instance.fillCrashReportCategory(crashReportCategory, levelHeightAccessor);
net.minecraft.world.level.storage.PrimaryLevelData#getClearWeatherTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:334 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Clear Weather Time
ทำงานยังไง
คืนค่า: this.clearWeatherTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getCustomBossEvents()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:500 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Custom Boss Events
ทำงานยังไง
คืนค่า: this.customBossEvents.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getDataConfiguration()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:490 - Modifiers:
public - Return:
WorldDataConfiguration
คืออะไร
อ่านค่า Data Configuration
ทำงานยังไง
คืนค่า: this.settings.getDataConfiguration().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getDayTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:297 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Day Time
ทำงานยังไง
คืนค่า: this.dayTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getDifficulty()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:429 - Modifiers:
public - Return:
Difficulty
คืออะไร
อ่านค่า Difficulty
ทำงานยังไง
เรียกต่อ: difficulty(). คืนค่า: this.settings.difficulty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getGameRules()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:414 - Modifiers:
public - Return:
GameRules
คืออะไร
อ่านค่า Game Rules
ทำงานยังไง
เรียกต่อ: gameRules(). คืนค่า: this.settings.gameRules().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getGameTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:292 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Game Time
ทำงานยังไง
คืนค่า: this.gameTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getGameType()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:384 - Modifiers:
public - Return:
GameType
คืออะไร
อ่านค่า Game Type
ทำงานยังไง
เรียกต่อ: gameType(). คืนค่า: this.settings.gameType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getKnownServerBrands()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:553 - Modifiers:
public - Return:
Set<String>
คืออะไร
อ่านค่า Known Server Brands
ทำงานยังไง
เรียกต่อ: copyOf(). คืนค่า: ImmutableSet.copyOf(this.knownServerBrands).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:324 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
เรียกต่อ: levelName(). คืนค่า: this.settings.levelName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getLevelSettings()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:568 - Modifiers:
public - Return:
LevelSettings
คืออะไร
อ่านค่า Level Settings
ทำงานยังไง
เรียกต่อ: copy(). คืนค่า: this.settings.copy().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getLoadedPlayerTag()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:302 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Loaded Player Tag
ทำงานยังไง
คืนค่า: this.loadedPlayerTag.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getRainTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:374 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Rain Time
ทำงานยังไง
คืนค่า: this.rainTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getRemovedFeatureFlags()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:558 - Modifiers:
public - Return:
Set<String>
คืออะไร
อ่านค่า Removed Feature Flags
ทำงานยังไง
เรียกต่อ: copyOf(). คืนค่า: Set.copyOf(this.removedFeatureFlags).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getScheduledEvents()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:449 - Modifiers:
public - Return:
TimerQueue<MinecraftServer>
คืออะไร
อ่านค่า Scheduled Events
ทำงานยังไง
คืนค่า: this.scheduledEvents.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
TimerQueue<MinecraftServer> result = instance.getScheduledEvents();
net.minecraft.world.level.storage.PrimaryLevelData#getSpawnAngle()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:287 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Spawn Angle
ทำงานยังไง
คืนค่า: this.spawnAngle.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getSpawnPos()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:282 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Spawn Pos
ทำงานยังไง
คืนค่า: this.spawnPos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getThunderTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:354 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Thunder Time
ทำงานยังไง
คืนค่า: this.thunderTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:329 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Version
ทำงานยังไง
คืนค่า: this.version.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getWanderingTraderId()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:531 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า Wandering Trader Id
ทำงานยังไง
คืนค่า: this.wanderingTraderId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getWanderingTraderSpawnChance()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:521 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Chance
ทำงานยังไง
คืนค่า: this.wanderingTraderSpawnChance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getWanderingTraderSpawnDelay()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:511 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Delay
ทำงานยังไง
คืนค่า: this.wanderingTraderSpawnDelay.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#getWorldBorder()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:419 - Modifiers:
public - Return:
WorldBorder.Settings
คืออะไร
อ่านค่า World Border
ทำงานยังไง
คืนค่า: this.worldBorder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isAllowCommands()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:399 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Commands
ทำงานยังไง
เรียกต่อ: allowCommands(). คืนค่า: this.settings.allowCommands().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isDebugWorld()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:470 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Debug World
ทำงานยังไง
แก้ state: specialWorldProperty. คืนค่า: this.specialWorldProperty == PrimaryLevelData.SpecialWorldProperty.DEBUG.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isDifficultyLocked()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:439 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Difficulty Locked
ทำงานยังไง
คืนค่า: this.difficultyLocked.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isFlatWorld()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:465 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Flat World
ทำงานยังไง
แก้ state: specialWorldProperty. คืนค่า: this.specialWorldProperty == PrimaryLevelData.SpecialWorldProperty.FLAT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isHardcore()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:394 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
เรียกต่อ: hardcore(). คืนค่า: this.settings.hardcore().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isInitialized()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:404 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Initialized
ทำงานยังไง
คืนค่า: this.initialized.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isRaining()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:364 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Raining
ทำงานยังไง
คืนค่า: this.raining.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#isThundering()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:344 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Thundering
ทำงานยังไง
คืนค่า: this.thundering.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#overworldData()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:563 - Modifiers:
public - Return:
ServerLevelData
คืออะไร
ดำเนินการ overworldData ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#parse(Dynamic<T>,LevelSettings,PrimaryLevelData.SpecialWorldProperty,WorldOptions,Lifecycle)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:169 - Modifiers:
public static - Return:
PrimaryLevelData
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: get(), asLong(), flatMap(), result(), orElse(), asBoolean(), asInt(), asFloat(). สร้างออบเจ็กต์: PrimaryLevelData, BlockPos, TimerQueue<>.
Parameters
Dynamic<T> dynamicLevelSettings levelSettingsPrimaryLevelData.SpecialWorldProperty specialWorldPropertyWorldOptions worldOptionsLifecycle lifecycle
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
LevelSettings levelSettings = ...;
PrimaryLevelData.SpecialWorldProperty specialWorldProperty = ...;
WorldOptions worldOptions = ...;
Lifecycle lifecycle = ...;
PrimaryLevelData result = PrimaryLevelData.parse(dynamic, levelSettings, specialWorldProperty, worldOptions, lifecycle);
net.minecraft.world.level.storage.PrimaryLevelData#PrimaryLevelData(LevelSettings,WorldOptions,PrimaryLevelData.SpecialWorldProperty,Lifecycle)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:135 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PrimaryLevelData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: newLinkedHashSet(), copy(). สร้างออบเจ็กต์: HashSet<>, TimerQueue<>.
Parameters
LevelSettings levelSettingsWorldOptions worldOptionsPrimaryLevelData.SpecialWorldProperty specialWorldPropertyLifecycle lifecycle
ตัวอย่างใช้งาน
LevelSettings levelSettings = ...;
WorldOptions worldOptions = ...;
PrimaryLevelData.SpecialWorldProperty specialWorldProperty = ...;
Lifecycle lifecycle = ...;
PrimaryLevelData instance = new PrimaryLevelData(levelSettings, worldOptions, specialWorldProperty, lifecycle);
net.minecraft.world.level.storage.PrimaryLevelData#setClearWeatherTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:339 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Clear Weather Time
ทำงานยังไง
แก้ state: clearWeatherTime.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setCustomBossEvents(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:506 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Boss Events
ทำงานยังไง
แก้ state: customBossEvents.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
CompoundTag compoundTag = ...;
instance.setCustomBossEvents(compoundTag);
net.minecraft.world.level.storage.PrimaryLevelData#setDataConfiguration(WorldDataConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:495 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Data Configuration
ทำงานยังไง
แก้ state: settings. เรียกต่อ: withDataConfiguration().
Parameters
WorldDataConfiguration worldDataConfiguration
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
WorldDataConfiguration worldDataConfiguration = ...;
instance.setDataConfiguration(worldDataConfiguration);
net.minecraft.world.level.storage.PrimaryLevelData#setDayTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:313 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Day Time
ทำงานยังไง
แก้ state: dayTime.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setDifficulty(Difficulty)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:434 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Difficulty
ทำงานยังไง
แก้ state: settings. เรียกต่อ: withDifficulty().
Parameters
Difficulty difficulty
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setDifficultyLocked(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:444 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Difficulty Locked
ทำงานยังไง
แก้ state: difficultyLocked.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setEndDragonFightData(EndDragonFight.Data)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:485 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า End Dragon Fight Data
ทำงานยังไง
แก้ state: endDragonFightData.
Parameters
EndDragonFight.Data data
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
EndDragonFight.Data data = ...;
instance.setEndDragonFightData(data);
net.minecraft.world.level.storage.PrimaryLevelData#setGameTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:308 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Time
ทำงานยังไง
แก้ state: gameTime.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setGameType(GameType)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:389 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Game Type
ทำงานยังไง
แก้ state: settings. เรียกต่อ: withGameType().
Parameters
GameType gameType
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setInitialized(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:409 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Initialized
ทำงานยังไง
แก้ state: initialized.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setModdedInfo(String,boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:542 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Modded Info
ทำงานยังไง
เรียกต่อ: add().
Parameters
String stringboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setRaining(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:369 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Raining
ทำงานยังไง
แก้ state: raining.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setRainTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:379 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Rain Time
ทำงานยังไง
แก้ state: rainTime.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setSpawn(BlockPos,float)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:318 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Spawn
ทำงานยังไง
แก้ state: spawnPos, spawnAngle. เรียกต่อ: immutable().
Parameters
BlockPos blockPosfloat f
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setThundering(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:349 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Thundering
ทำงานยังไง
แก้ state: thundering.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setThunderTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:359 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Thunder Time
ทำงานยังไง
แก้ state: thunderTime.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setWanderingTraderId(UUID)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:537 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Id
ทำงานยังไง
แก้ state: wanderingTraderId.
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setWanderingTraderSpawnChance(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:526 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Chance
ทำงานยังไง
แก้ state: wanderingTraderSpawnChance.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setWanderingTraderSpawnDelay(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:516 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Delay
ทำงานยังไง
แก้ state: wanderingTraderSpawnDelay.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#setWorldBorder(WorldBorder.Settings)
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:424 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า World Border
ทำงานยังไง
แก้ state: worldBorder.
Parameters
WorldBorder.Settings settings
ตัวอย่างใช้งาน
PrimaryLevelData instance = ...;
WorldBorder.Settings settings = ...;
instance.setWorldBorder(settings);
net.minecraft.world.level.storage.PrimaryLevelData#wasModded()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:548 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ wasModded ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
คืนค่า: this.wasModded.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#worldGenOptions()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:460 - Modifiers:
public - Return:
WorldOptions
คืออะไร
ดำเนินการ worldGenOptions ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
คืนค่า: this.worldOptions.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.PrimaryLevelData#worldGenSettingsLifecycle()
- Origin:
common - Source:
net/minecraft/world/level/storage/PrimaryLevelData.java:475 - Modifiers:
public - Return:
Lifecycle
คืออะไร
ดำเนินการ worldGenSettingsLifecycle ตาม implementation ของ PrimaryLevelData
ทำงานยังไง
คืนค่า: this.worldGenSettingsLifecycle.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ServerLevelData
- Full name:
net.minecraft.world.level.storage.ServerLevelData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/ServerLevelData.java - Type:
interface - Modifiers:
public - Implements:
WritableLevelData
net.minecraft.world.level.storage.ServerLevelData#fillCrashReportCategory(CrashReportCategory,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:27 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ ServerLevelData
ทำงานยังไง
เรียกต่อ: setDetail(), format(), s(), getGameType(), getName(), getId(), isHardcore(), isAllowCommands().
Parameters
CrashReportCategory crashReportCategoryLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
ServerLevelData instance = ...;
CrashReportCategory crashReportCategory = ...;
LevelHeightAccessor levelHeightAccessor = ...;
instance.fillCrashReportCategory(crashReportCategory, levelHeightAccessor);
net.minecraft.world.level.storage.ServerLevelData#getClearWeatherTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:50 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Clear Weather Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getGameRules()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:87 - Modifiers: ``
- Return:
GameRules
คืออะไร
อ่านค่า Game Rules
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getGameType()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:67 - Modifiers: ``
- Return:
GameType
คืออะไร
อ่านค่า Game Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:15 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getRainTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:19 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Rain Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getScheduledEvents()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:81 - Modifiers: ``
- Return:
TimerQueue<MinecraftServer>
คืออะไร
อ่านค่า Scheduled Events
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getThunderTime()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:25 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Thunder Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getWanderingTraderId()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:62 - Modifiers: ``
- Return:
UUID
คืออะไร
อ่านค่า Wandering Trader Id
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getWanderingTraderSpawnChance()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:58 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Chance
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getWanderingTraderSpawnDelay()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:54 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Wandering Trader Spawn Delay
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#getWorldBorder()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:71 - Modifiers: ``
- Return:
WorldBorder.Settings
คืออะไร
อ่านค่า World Border
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#isAllowCommands()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:77 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Commands
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#isInitialized()
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:73 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Initialized
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setClearWeatherTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:52 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Clear Weather Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setDayTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:85 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Day Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setGameTime(long)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:83 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Game Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setGameType(GameType)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:79 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Game Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
GameType gameType
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setInitialized(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:75 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Initialized
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setRainTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:21 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Rain Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setThundering(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:17 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Thundering
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setThunderTime(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:23 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Thunder Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setWanderingTraderId(UUID)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:65 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Wandering Trader Id
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setWanderingTraderSpawnChance(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:60 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Chance
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setWanderingTraderSpawnDelay(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:56 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Wandering Trader Spawn Delay
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.ServerLevelData#setWorldBorder(WorldBorder.Settings)
- Origin:
common - Source:
net/minecraft/world/level/storage/ServerLevelData.java:69 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า World Border
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
WorldBorder.Settings settings
ตัวอย่างใช้งาน
ServerLevelData instance = ...;
WorldBorder.Settings settings = ...;
instance.setWorldBorder(settings);
WorldData
- Full name:
net.minecraft.world.level.storage.WorldData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/WorldData.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.storage.WorldData#createTag(RegistryAccess,CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:65 - Modifiers: ``
- Return:
CompoundTag
คืออะไร
สร้าง Tag
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
RegistryAccess registryAccessCompoundTag compoundTag
ตัวอย่างใช้งาน
WorldData instance = ...;
RegistryAccess registryAccess = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.createTag(registryAccess, compoundTag);
net.minecraft.world.level.storage.WorldData#enabledFeatures()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:104 - Modifiers:
default - Return:
FeatureFlagSet
คืออะไร
ดำเนินการ enabledFeatures ตาม implementation ของ WorldData
ทำงานยังไง
เรียกต่อ: getDataConfiguration(). คืนค่า: this.getDataConfiguration().enabledFeatures().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#endDragonFightData()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:92 - Modifiers: ``
- Return:
EndDragonFight.Data
คืออะไร
ดำเนินการ endDragonFightData ตาม implementation ของ WorldData
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#fillCrashReportCategory(CrashReportCategory)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:35 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ WorldData
ทำงานยังไง
เรียกต่อ: setDetail(), join(), getKnownServerBrands(), getRemovedFeatureFlags(), toString(), wasModded(), getVersion(), format(). คืนค่า: String.format(Locale.ROOT, "0x%05X - %s", i, this.getStorageVersionName(i)).
Parameters
CrashReportCategory crashReportCategory
ตัวอย่างใช้งาน
WorldData instance = ...;
CrashReportCategory crashReportCategory = ...;
instance.fillCrashReportCategory(crashReportCategory);
net.minecraft.world.level.storage.WorldData#getCustomBossEvents()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:56 - Modifiers: ``
- Return:
CompoundTag
คืออะไร
อ่านค่า Custom Boss Events
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getDataConfiguration()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:23 - Modifiers: ``
- Return:
WorldDataConfiguration
คืออะไร
อ่านค่า Data Configuration
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getDifficulty()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:79 - Modifiers: ``
- Return:
Difficulty
คืออะไร
อ่านค่า Difficulty
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getGameRules()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:87 - Modifiers: ``
- Return:
GameRules
คืออะไร
อ่านค่า Game Rules
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getGameType()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:73 - Modifiers: ``
- Return:
GameType
คืออะไร
อ่านค่า Game Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getKnownServerBrands()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:29 - Modifiers: ``
- Return:
Set<String>
คืออะไร
อ่านค่า Known Server Brands
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getLevelName()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:71 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Level Name
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getLevelSettings()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:63 - Modifiers: ``
- Return:
LevelSettings
คืออะไร
อ่านค่า Level Settings
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getLoadedPlayerTag()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:89 - Modifiers: ``
- Return:
CompoundTag
คืออะไร
อ่านค่า Loaded Player Tag
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getRemovedFeatureFlags()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:31 - Modifiers: ``
- Return:
Set<String>
คืออะไร
อ่านค่า Removed Feature Flags
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getStorageVersionName(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:45 - Modifiers:
default - Return:
String
คืออะไร
อ่านค่า Storage Version Name
ทำงานยังไง
แยกกรณีด้วย switch. มีจุด return อย่างน้อย 3 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#getVersion()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:69 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Version
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#isAllowCommands()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:77 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Commands
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#isDebugWorld()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:100 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Debug World
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#isDifficultyLocked()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:83 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Difficulty Locked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#isFlatWorld()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:98 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Flat World
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#isHardcore()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:67 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hardcore
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#overworldData()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:61 - Modifiers: ``
- Return:
ServerLevelData
คืออะไร
ดำเนินการ overworldData ตาม implementation ของ WorldData
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setCustomBossEvents(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:59 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Custom Boss Events
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setDataConfiguration(WorldDataConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:25 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Data Configuration
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
WorldDataConfiguration worldDataConfiguration
ตัวอย่างใช้งาน
WorldData instance = ...;
WorldDataConfiguration worldDataConfiguration = ...;
instance.setDataConfiguration(worldDataConfiguration);
net.minecraft.world.level.storage.WorldData#setDifficulty(Difficulty)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:81 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Difficulty
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Difficulty difficulty
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setDifficultyLocked(boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:85 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Difficulty Locked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setEndDragonFightData(EndDragonFight.Data)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:94 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า End Dragon Fight Data
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EndDragonFight.Data data
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setGameType(GameType)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:75 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Game Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
GameType gameType
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#setModdedInfo(String,boolean)
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:33 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Modded Info
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String stringboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#wasModded()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:27 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ wasModded ตาม implementation ของ WorldData
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#worldGenOptions()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:96 - Modifiers: ``
- Return:
WorldOptions
คืออะไร
ดำเนินการ worldGenOptions ตาม implementation ของ WorldData
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.WorldData#worldGenSettingsLifecycle()
- Origin:
common - Source:
net/minecraft/world/level/storage/WorldData.java:102 - Modifiers: ``
- Return:
Lifecycle
คืออะไร
ดำเนินการ worldGenSettingsLifecycle ตาม implementation ของ WorldData
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WritableLevelData
- Full name:
net.minecraft.world.level.storage.WritableLevelData - Package:
net.minecraft.world.level.storage - Source:
common—net/minecraft/world/level/storage/WritableLevelData.java - Type:
interface - Modifiers:
public - Implements:
LevelData
net.minecraft.world.level.storage.WritableLevelData#setSpawn(BlockPos,float)
- Origin:
common - Source:
net/minecraft/world/level/storage/WritableLevelData.java:6 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Spawn
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BlockPos blockPosfloat f