Package net.minecraft.world.level.chunk
Part 1/1
BlockColumn
- Full name:
net.minecraft.world.level.chunk.BlockColumn - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/BlockColumn.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.BlockColumn#getBlock(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/BlockColumn.java:6 - Modifiers: ``
- Return:
BlockState
คืออะไร
อ่านค่า Block
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.BlockColumn#setBlock(int,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/BlockColumn.java:8 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Block
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iBlockState blockState
ตัวอย่างใช้งาน
BulkSectionAccess
- Full name:
net.minecraft.world.level.chunk.BulkSectionAccess - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/BulkSectionAccess.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.world.level.chunk.BulkSectionAccess#BulkSectionAccess(LevelAccessor)
- Origin:
common - Source:
net/minecraft/world/level/chunk/BulkSectionAccess.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BulkSectionAccess ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: level.
Parameters
LevelAccessor levelAccessor
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BulkSectionAccess instance = new BulkSectionAccess(levelAccessor);
net.minecraft.world.level.chunk.BulkSectionAccess#close()
- Origin:
common - Source:
net/minecraft/world/level/chunk/BulkSectionAccess.java:56 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
มีการวนลูป. เรียกต่อ: values(), release().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.BulkSectionAccess#getBlockState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/BulkSectionAccess.java:44 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSection(), defaultBlockState(), sectionRelative(), getX(), getY(), getZ(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BulkSectionAccess instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);
net.minecraft.world.level.chunk.BulkSectionAccess#getSection(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/BulkSectionAccess.java:23 - Modifiers:
public - Return:
LevelChunkSection
คืออะไร
อ่านค่า Section
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastSection, lastSectionKey. เรียกต่อ: getSectionIndex(), getY(), getSectionsCount(), asLong(), computeIfAbsent(), getChunk(), blockToSectionCoord(), getX(). มีจุด return อย่างน้อย 3 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BulkSectionAccess instance = ...;
BlockPos blockPos = ...;
LevelChunkSection result = instance.getSection(blockPos);
CarvingMask
- Full name:
net.minecraft.world.level.chunk.CarvingMask - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/CarvingMask.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.CarvingMask#CarvingMask(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CarvingMask ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minY, mask. สร้างออบเจ็กต์: BitSet.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.CarvingMask#CarvingMask(long[],int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CarvingMask ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minY, mask. เรียกต่อ: valueOf().
Parameters
long[] lsint i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.CarvingMask#get(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:35 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: test(), getIndex(). คืนค่า: this.additionalMask.test(i, j, k) || this.mask.get(this.getIndex(i, j, k)).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.CarvingMask#set(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:31 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getIndex().
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.CarvingMask#setAdditionalMask(CarvingMask.Mask)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:18 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Additional Mask
ทำงานยังไง
แก้ state: additionalMask.
Parameters
CarvingMask.Mask mask
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.CarvingMask#stream(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:39 - Modifiers:
public - Return:
Stream<BlockPos>
คืออะไร
ดำเนินการ stream ตาม implementation ของ CarvingMask
ทำงานยังไง
เรียกต่อ: mapToObj(), getBlockAt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
CarvingMask instance = ...;
ChunkPos chunkPos = ...;
Stream<BlockPos> result = instance.stream(chunkPos);
net.minecraft.world.level.chunk.CarvingMask#toArray()
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:48 - Modifiers:
public - Return:
long[]
คืออะไร
ดำเนินการ toArray ตาม implementation ของ CarvingMask
ทำงานยังไง
เรียกต่อ: toLongArray(). คืนค่า: this.mask.toLongArray().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CarvingMask$Mask
- Full name:
net.minecraft.world.level.chunk.CarvingMask$Mask - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/CarvingMask.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.CarvingMask$Mask#test(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/CarvingMask.java:53 - Modifiers: ``
- Return:
boolean
คืออะไร
ทดสอบเงื่อนไข test
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jint k
ตัวอย่างใช้งาน
ChunkAccess
- Full name:
net.minecraft.world.level.chunk.ChunkAccess - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ChunkAccess.java - Type:
class - Modifiers:
public abstract - Implements:
BiomeManager.NoiseBiomeSource,LightChunk,StructureAccess,AttachmentTarget
net.minecraft.world.level.chunk.ChunkAccess#addEntity(Entity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:135 - Modifiers:
public abstract - Return:
void
คืออะไร
เพิ่ม Entity
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#addPackedPostProcess(ShortList,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:311 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Packed Post Process
ทำงานยังไง
เรียกต่อ: getOrCreateOffsetList(), getPostProcessing(), addAll().
Parameters
ShortList shortListint i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#addReferenceForStructure(Structure,long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:231 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Reference For Structure
ทำงานยังไง
เรียกต่อ: computeIfAbsent(), add(), markUnsaved(). สร้างออบเจ็กต์: LongOpenHashSet.
Parameters
Structure structurelong l
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Structure structure = ...;
instance.addReferenceForStructure(structure, 0L);
net.minecraft.world.level.chunk.ChunkAccess#canBeSerialized()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:361 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Serialized
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#carverBiome(Supplier<BiomeGenerationSettings>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:427 - Modifiers:
public - Return:
BiomeGenerationSettings
คืออะไร
ดำเนินการ carverBiome ตาม implementation ของ ChunkAccess
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: carverBiomeSettings. เรียกต่อ: get(). คืนค่า: this.carverBiomeSettings.
Parameters
Supplier<BiomeGenerationSettings> supplier
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Supplier<BiomeGenerationSettings> supplier = ...;
BiomeGenerationSettings result = instance.carverBiome(supplier);
net.minecraft.world.level.chunk.ChunkAccess#ChunkAccess(ChunkPos,UpgradeData,LevelHeightAccessor,Registry<Biome>,long,LevelChunkSection[],BlendingData)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:90 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkAccess ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: chunkPos, upgradeData, levelHeightAccessor, sections, inhabitedTime, postProcessing. เรียกต่อ: getSectionsCount(), arraycopy(), warn(), replaceMissingSections(). สร้างออบเจ็กต์: ChunkSkyLightSources.
Parameters
ChunkPos chunkPosUpgradeData upgradeDataLevelHeightAccessor levelHeightAccessorRegistry<Biome> registrylong lLevelChunkSection[] levelChunkSectionsBlendingData blendingData
ตัวอย่างใช้งาน
ChunkPos chunkPos = ...;
UpgradeData upgradeData = ...;
LevelHeightAccessor levelHeightAccessor = ...;
Registry<Biome> registry = ...;
LevelChunkSection[] levelChunkSections = ...;
BlendingData blendingData = ...;
ChunkAccess instance = new ChunkAccess(chunkPos, upgradeData, levelHeightAccessor, registry, 0L, levelChunkSections, blendingData);
net.minecraft.world.level.chunk.ChunkAccess#fillBiomesFromNoise(BiomeResolver,Climate.Sampler)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:452 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillBiomesFromNoise ตาม implementation ของ ChunkAccess
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getPos(), fromBlock(), getMinBlockX(), getMinBlockZ(), getHeightAccessorForGeneration(), getMinSectionY(), getMaxSectionY(), getSection().
Parameters
BiomeResolver biomeResolverClimate.Sampler sampler
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
BiomeResolver biomeResolver = ...;
Climate.Sampler sampler = ...;
instance.fillBiomesFromNoise(biomeResolver, sampler);
net.minecraft.world.level.chunk.ChunkAccess#findBlockLightSources(BiConsumer<BlockPos, BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:330 - Modifiers:
public final - Return:
void
คืออะไร
ค้นหา Block Light Sources
ทำงานยังไง
เรียกต่อ: findBlocks(), getLightEmission().
Parameters
BiConsumer<BlockPos, BlockState> biConsumer
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
BiConsumer<BlockPos, BlockState> biConsumer = ...;
instance.findBlockLightSources(biConsumer);
net.minecraft.world.level.chunk.ChunkAccess#findBlocks(Predicate<BlockState>,BiConsumer<BlockPos, BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:335 - Modifiers:
public - Return:
void
คืออะไร
ค้นหา Blocks
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: MutableBlockPos(), getMinSectionY(), getMaxSectionY(), getSection(), getSectionIndexFromSectionY(), maybeHas(), of(), origin(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos.
Parameters
Predicate<BlockState> predicateBiConsumer<BlockPos, BlockState> biConsumer
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Predicate<BlockState> predicate = ...;
BiConsumer<BlockPos, BlockState> biConsumer = ...;
instance.findBlocks(predicate, biConsumer);
net.minecraft.world.level.chunk.ChunkAccess#getAllReferences()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:237 - Modifiers:
public - Return:
Map<Structure, LongSet>
คืออะไร
อ่านค่า All References
ทำงานยังไง
เรียกต่อ: unmodifiableMap(). คืนค่า: Collections.unmodifiableMap(this.structuresRefences).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getAllStarts()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:216 - Modifiers:
public - Return:
Map<Structure, StructureStart>
คืออะไร
อ่านค่า All Starts
ทำงานยังไง
เรียกต่อ: unmodifiableMap(). คืนค่า: Collections.unmodifiableMap(this.structureStarts).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getBelowZeroRetrogen()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:469 - Modifiers:
public - Return:
BelowZeroRetrogen
คืออะไร
อ่านค่า Below Zero Retrogen
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getBlendingData()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:375 - Modifiers:
public - Return:
BlendingData
คืออะไร
อ่านค่า Blending Data
ทำงานยังไง
คืนค่า: this.blendingData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getBlockEntitiesPos()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:156 - Modifiers:
public - Return:
Set<BlockPos>
คืออะไร
อ่านค่า Block Entities Pos
ทำงานยังไง
เรียกต่อ: newHashSet(), keySet(), addAll(). คืนค่า: set.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getBlockEntityNbt(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:322 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.pendingBlockEntities.get(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
BlockPos blockPos = ...;
CompoundTag result = instance.getBlockEntityNbt(blockPos);
net.minecraft.world.level.chunk.ChunkAccess#getBlockEntityNbtForSaving(BlockPos,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:327 - Modifiers:
public abstract - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt For Saving
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockPos blockPosHolderLookup.Provider provider
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
BlockPos blockPos = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getBlockEntityNbtForSaving(blockPos, provider);
net.minecraft.world.level.chunk.ChunkAccess#getBlockTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:357 - Modifiers:
public abstract - Return:
TickContainerAccess<Block>
คืออะไร
อ่านค่า Block Ticks
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getFluidTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:359 - Modifiers:
public abstract - Return:
TickContainerAccess<Fluid>
คืออะไร
อ่านค่า Fluid Ticks
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:414 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: this.levelHeightAccessor.getHeight().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getHeight(Heightmap.Types,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:186 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), error(), primeHeightmaps(), of(), getFirstAvailable(). คืนค่า: heightmap.getFirstAvailable(i & 15, j & 15) - 1.
Parameters
Heightmap.Types typesint iint j
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Heightmap.Types types = ...;
int result = instance.getHeight(types, 0, 0);
net.minecraft.world.level.chunk.ChunkAccess#getHeightAccessorForGeneration()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:478 - Modifiers:
public - Return:
LevelHeightAccessor
คืออะไร
อ่านค่า Height Accessor For Generation
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getHeightmaps()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:170 - Modifiers:
public - Return:
Collection<Entry<Heightmap.Types, Heightmap>>
คืออะไร
อ่านค่า Heightmaps
ทำงานยังไง
เรียกต่อ: unmodifiableSet(), entrySet(). คืนค่า: Collections.unmodifiableSet(this.heightmaps.entrySet()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Collection<Entry<Heightmap.Types, Heightmap>> result = instance.getHeightmaps();
net.minecraft.world.level.chunk.ChunkAccess#getHighestFilledSectionIndex()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:137 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Highest Filled Section Index
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getSections(), hasOnlyAir(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getHighestGeneratedStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:290 - Modifiers:
public - Return:
ChunkStatus
คืออะไร
อ่านค่า Highest Generated Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPersistedStatus(), getBelowZeroRetrogen(), targetStatus(), max(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getHighestSectionPosition()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:150 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Highest Section Position
ทำงานยังไง
เรียกต่อ: getHighestFilledSectionIndex(), getMinY(), sectionToBlockCoord(), getSectionYFromSectionIndex(). คืนค่า: i == -1 ? this.getMinY() : SectionPos.sectionToBlockCoord(this.getSectionYFromSectionIndex(i)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getInhabitedTime()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:380 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Inhabited Time
ทำงานยังไง
คืนค่า: this.inhabitedTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getListenerRegistry(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:126 - Modifiers:
public - Return:
GameEventListenerRegistry
คืออะไร
อ่านค่า Listener Registry
ทำงานยังไง
คืนค่า: GameEventListenerRegistry.NOOP.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getMinY()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:409 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Y
ทำงานยังไง
คืนค่า: this.levelHeightAccessor.getMinY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getNoiseBiome(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:436 - Modifiers:
public - Return:
Holder<Biome>
คืออะไร
อ่านค่า Noise Biome
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: fromBlock(), getMinY(), getHeight(), clamp(), getSectionIndex(), toBlock(), forThrowable(), addCategory(). สร้างออบเจ็กต์: ReportedException. คืนค่า: this.sections[o].getNoiseBiome(i & 3, n & 3, k & 3).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getOrCreateHeightmapUnprimed(Heightmap.Types)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:178 - Modifiers:
public - Return:
Heightmap
คืออะไร
อ่านค่า Or Create Heightmap Unprimed
ทำงานยังไง
เรียกต่อ: computeIfAbsent(). สร้างออบเจ็กต์: Heightmap. คืนค่า: this.heightmaps.computeIfAbsent(types, typesx -> new Heightmap(this, typesx)).
Parameters
Heightmap.Types types
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Heightmap.Types types = ...;
Heightmap result = instance.getOrCreateHeightmapUnprimed(types);
net.minecraft.world.level.chunk.ChunkAccess#getOrCreateNoiseChunk(Function<ChunkAccess, NoiseChunk>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:419 - Modifiers:
public - Return:
NoiseChunk
คืออะไร
อ่านค่า Or Create Noise Chunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: noiseChunk. เรียกต่อ: apply(). คืนค่า: this.noiseChunk.
Parameters
Function<ChunkAccess, NoiseChunk> function
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Function<ChunkAccess, NoiseChunk> function = ...;
NoiseChunk result = instance.getOrCreateNoiseChunk(function);
net.minecraft.world.level.chunk.ChunkAccess#getOrCreateOffsetList(ShortList[],int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:392 - Modifiers:
public static - Return:
ShortList
คืออะไร
อ่านค่า Or Create Offset List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: ShortArrayList. คืนค่า: shortLists[i].
Parameters
ShortList[] shortListsint i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getPersistedStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:288 - Modifiers:
public abstract - Return:
ChunkStatus
คืออะไร
อ่านค่า Persisted Status
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getPos()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:200 - Modifiers:
public - Return:
ChunkPos
คืออะไร
อ่านค่า Pos
ทำงานยังไง
คืนค่า: this.chunkPos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getPostProcessing()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:307 - Modifiers:
public - Return:
ShortList[]
คืออะไร
อ่านค่า Post Processing
ทำงานยังไง
คืนค่า: this.postProcessing.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getReferencesForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:226 - Modifiers:
public - Return:
LongSet
คืออะไร
อ่านค่า References For Structure
ทำงานยังไง
เรียกต่อ: getOrDefault(). คืนค่า: this.structuresRefences.getOrDefault(structure, EMPTY_REFERENCE_SET).
Parameters
Structure structure
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Structure structure = ...;
LongSet result = instance.getReferencesForStructure(structure);
net.minecraft.world.level.chunk.ChunkAccess#getSection(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:166 - Modifiers:
public - Return:
LevelChunkSection
คืออะไร
อ่านค่า Section
ทำงานยังไง
เรียกต่อ: getSections(). คืนค่า: this.getSections()[i].
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getSections()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:162 - Modifiers:
public - Return:
LevelChunkSection[]
คืออะไร
อ่านค่า Sections
ทำงานยังไง
คืนค่า: this.sections.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getSkyLightSources()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:486 - Modifiers:
public - Return:
ChunkSkyLightSources
คืออะไร
อ่านค่า Sky Light Sources
ทำงานยังไง
คืนค่า: this.skyLightSources.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getStartForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:204 - Modifiers:
public - Return:
StructureStart
คืออะไร
อ่านค่า Start For Structure
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.structureStarts.get(structure).
Parameters
Structure structure
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Structure structure = ...;
StructureStart result = instance.getStartForStructure(structure);
net.minecraft.world.level.chunk.ChunkAccess#getTicksForSerialization(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:365 - Modifiers:
public abstract - Return:
ChunkAccess.PackedTicks
คืออะไร
อ่านค่า Ticks For Serialization
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#getUpgradeData()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:367 - Modifiers:
public - Return:
UpgradeData
คืออะไร
อ่านค่า Upgrade Data
ทำงานยังไง
คืนค่า: this.upgradeData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#hasAnyStructureReferences()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:465 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Any Structure References
ทำงานยังไง
เรียกต่อ: getAllReferences(), isEmpty(). คืนค่า: !this.getAllReferences().isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#hasPrimedHeightmap(Heightmap.Types)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:182 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Primed Heightmap
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.heightmaps.get(types) != null.
Parameters
Heightmap.Types types
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Heightmap.Types types = ...;
boolean result = instance.hasPrimedHeightmap(types);
net.minecraft.world.level.chunk.ChunkAccess#incrementInhabitedTime(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:384 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementInhabitedTime ตาม implementation ของ ChunkAccess
ทำงานยังไง
แก้ state: inhabitedTime.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#initializeLightSources()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:482 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ initializeLightSources ตาม implementation ของ ChunkAccess
ทำงานยังไง
เรียกต่อ: fillFrom().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isLightCorrect()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:400 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Light Correct
ทำงานยังไง
คืนค่า: this.isLightCorrect.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isOldNoiseGeneration()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:371 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Old Noise Generation
ทำงานยังไง
คืนค่า: this.blendingData != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isSectionEmpty(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:267 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Section Empty
ทำงานยังไง
เรียกต่อ: getSection(), getSectionIndexFromSectionY(), hasOnlyAir(). คืนค่า: this.getSection(this.getSectionIndexFromSectionY(i)).hasOnlyAir().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isUnsaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:284 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Unsaved
ทำงานยังไง
คืนค่า: this.unsaved.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isUpgrading()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:474 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Upgrading
ทำงานยังไง
เรียกต่อ: getBelowZeroRetrogen(). คืนค่า: this.getBelowZeroRetrogen() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#isYSpaceEmpty(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:249 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ YSpace Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMinY(), getMaxY(), getSection(), getSectionIndex(), hasOnlyAir(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#markPosForPostprocessing(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:303 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markPosForPostprocessing ตาม implementation ของ ChunkAccess
ทำงานยังไง
มีการวนลูป. เรียกต่อ: warn().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#markUnsaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:271 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markUnsaved ตาม implementation ของ ChunkAccess
ทำงานยังไง
แก้ state: unsaved.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#removeBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:301 - Modifiers:
public abstract - Return:
void
คืออะไร
ลบ Block Entity
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setAllReferences(Map<Structure, LongSet>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:242 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า All References
ทำงานยังไง
เรียกต่อ: clear(), putAll(), markUnsaved().
Parameters
Map<Structure, LongSet> map
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setAllStarts(Map<Structure, StructureStart>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:220 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า All Starts
ทำงานยังไง
เรียกต่อ: clear(), putAll(), markUnsaved().
Parameters
Map<Structure, StructureStart> map
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:133 - Modifiers:
public abstract - Return:
void
คืออะไร
กำหนดค่า Block Entity
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setBlockEntityNbt(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:315 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity Nbt
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPosFromTag(), containsKey(), put().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setBlockState(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:130 - Modifiers:
public abstract - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(blockPos, blockState, true);
net.minecraft.world.level.chunk.ChunkAccess#setHeightmap(Heightmap.Types,long[])
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:174 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Heightmap
ทำงานยังไง
เรียกต่อ: getOrCreateHeightmapUnprimed(), setRawData().
Parameters
Heightmap.Types typeslong[] ls
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Heightmap.Types types = ...;
long[] ls = ...;
instance.setHeightmap(types, ls);
net.minecraft.world.level.chunk.ChunkAccess#setInhabitedTime(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:388 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Inhabited Time
ทำงานยังไง
แก้ state: inhabitedTime.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setLightCorrect(boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:404 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Correct
ทำงานยังไง
แก้ state: isLightCorrect. เรียกต่อ: markUnsaved().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkAccess#setStartForStructure(Structure,StructureStart)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:210 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Start For Structure
ทำงานยังไง
เรียกต่อ: put(), markUnsaved().
Parameters
Structure structureStructureStart structureStart
ตัวอย่างใช้งาน
ChunkAccess instance = ...;
Structure structure = ...;
StructureStart structureStart = ...;
instance.setStartForStructure(structure, structureStart);
net.minecraft.world.level.chunk.ChunkAccess#tryMarkSaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkAccess.java:275 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ tryMarkSaved ตาม implementation ของ ChunkAccess
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: unsaved. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkGenerator
- Full name:
net.minecraft.world.level.chunk.ChunkGenerator - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ChunkGenerator.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.chunk.ChunkGenerator#addDebugScreenInfo(List<String>,RandomState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:617 - Modifiers:
public abstract - Return:
void
คืออะไร
เพิ่ม Debug Screen Info
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
List<String> listRandomState randomStateBlockPos blockPos
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
List<String> list = ...;
RandomState randomState = ...;
BlockPos blockPos = ...;
instance.addDebugScreenInfo(list, randomState, blockPos);
net.minecraft.world.level.chunk.ChunkGenerator#applyBiomeDecoration(WorldGenLevel,ChunkAccess,StructureManager)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:293 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Biome Decoration
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getPos(), debugVoidTerrain(), of(), getMinSectionY(), origin(), registryAccess(), lookupOrThrow(), stream(). สร้างออบเจ็กต์: WorldgenRandom, XoroshiroRandomSource, ObjectArraySet<>, ReportedException.
Parameters
WorldGenLevel worldGenLevelChunkAccess chunkAccessStructureManager structureManager
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
WorldGenLevel worldGenLevel = ...;
ChunkAccess chunkAccess = ...;
StructureManager structureManager = ...;
instance.applyBiomeDecoration(worldGenLevel, chunkAccess, structureManager);
net.minecraft.world.level.chunk.ChunkGenerator#applyCarvers(WorldGenRegion,long,RandomState,BiomeManager,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:120 - Modifiers:
public abstract - Return:
void
คืออะไร
นำไปใช้ Carvers
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
WorldGenRegion worldGenRegionlong lRandomState randomStateBiomeManager biomeManagerStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
RandomState randomState = ...;
BiomeManager biomeManager = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
instance.applyCarvers(worldGenRegion, 0L, randomState, biomeManager, structureManager, chunkAccess);
net.minecraft.world.level.chunk.ChunkGenerator#buildSurface(WorldGenRegion,StructureManager,RandomState,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:393 - Modifiers:
public abstract - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
WorldGenRegion worldGenRegionStructureManager structureManagerRandomState randomStateChunkAccess chunkAccess
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
StructureManager structureManager = ...;
RandomState randomState = ...;
ChunkAccess chunkAccess = ...;
instance.buildSurface(worldGenRegion, structureManager, randomState, chunkAccess);
net.minecraft.world.level.chunk.ChunkGenerator#ChunkGenerator(BiomeSource)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:87 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkGenerator ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: value(), getGenerationSettings().
Parameters
BiomeSource biomeSource
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#ChunkGenerator(BiomeSource,Function<Holder<Biome>, BiomeGenerationSettings>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:91 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkGenerator ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: biomeSource, generationSettingsGetter, featuresPerStep. เรียกต่อ: memoize(), buildFeaturesPerStep(), copyOf(), possibleBiomes(), apply(), features().
Parameters
BiomeSource biomeSourceFunction<Holder<Biome>, BiomeGenerationSettings> function
ตัวอย่างใช้งาน
BiomeSource biomeSource = ...;
Function<Holder<Biome>, BiomeGenerationSettings> function = ...;
ChunkGenerator instance = new ChunkGenerator(biomeSource, function);
net.minecraft.world.level.chunk.ChunkGenerator#codec()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:103 - Modifiers:
protected abstract - Return:
MapCodec<? extends ChunkGenerator>
คืออะไร
ดำเนินการ codec ตาม implementation ของ ChunkGenerator
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#createBiomes(RandomState,Blender,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:113 - Modifiers:
public - Return:
CompletableFuture<ChunkAccess>
คืออะไร
สร้าง Biomes
ทำงานยังไง
เรียกต่อ: supplyAsync(), fillBiomesFromNoise(), sampler(), backgroundExecutor(), forName(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomState randomStateBlender blenderStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
RandomState randomState = ...;
Blender blender = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.createBiomes(randomState, blender, structureManager, chunkAccess);
net.minecraft.world.level.chunk.ChunkGenerator#createReferences(WorldGenLevel,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:564 - Modifiers:
public - Return:
void
คืออะไร
สร้าง References
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getPos(), getMinBlockX(), getMinBlockZ(), bottomOf(), asLong(), getChunk(), getAllStarts(), values(). สร้างออบเจ็กต์: ReportedException.
Parameters
WorldGenLevel worldGenLevelStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
instance.createReferences(worldGenLevel, structureManager, chunkAccess);
net.minecraft.world.level.chunk.ChunkGenerator#createState(HolderLookup<StructureSet>,RandomState,long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:105 - Modifiers:
public - Return:
ChunkGeneratorStructureState
คืออะไร
สร้าง State
ทำงานยังไง
เรียกต่อ: createForNormal(). คืนค่า: ChunkGeneratorStructureState.createForNormal(randomState, l, this.biomeSource, holderLookup).
Parameters
HolderLookup<StructureSet> holderLookupRandomState randomStatelong l
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
HolderLookup<StructureSet> holderLookup = ...;
RandomState randomState = ...;
ChunkGeneratorStructureState result = instance.createState(holderLookup, randomState, 0L);
net.minecraft.world.level.chunk.ChunkGenerator#createStructures(RegistryAccess,ChunkGeneratorStructureState,StructureManager,ChunkAccess,StructureTemplateManager,ResourceKey<Level>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:434 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Structures
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPos(), bottomOf(), randomState(), possibleStructureSets(), forEach(), value(), placement(), structures(). สร้างออบเจ็กต์: ArrayList<>, WorldgenRandom, LegacyRandomSource.
Parameters
RegistryAccess registryAccessChunkGeneratorStructureState chunkGeneratorStructureStateStructureManager structureManagerChunkAccess chunkAccessStructureTemplateManager structureTemplateManagerResourceKey<Level> resourceKey
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
RegistryAccess registryAccess = ...;
ChunkGeneratorStructureState chunkGeneratorStructureState = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
StructureTemplateManager structureTemplateManager = ...;
ResourceKey<Level> resourceKey = ...;
instance.createStructures(registryAccess, chunkGeneratorStructureState, structureManager, chunkAccess, structureTemplateManager, resourceKey);
net.minecraft.world.level.chunk.ChunkGenerator#fillFromNoise(Blender,RandomState,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:597 - Modifiers:
public abstract - Return:
CompletableFuture<ChunkAccess>
คืออะไร
ดำเนินการ fillFromNoise ตาม implementation ของ ChunkGenerator
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Blender blenderRandomState randomStateStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Blender blender = ...;
RandomState randomState = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.fillFromNoise(blender, randomState, structureManager, chunkAccess);
net.minecraft.world.level.chunk.ChunkGenerator#findNearestMapStructure(ServerLevel,HolderSet<Structure>,BlockPos,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:124 - Modifiers:
public - Return:
Pair<BlockPos, Holder<Structure>>
คืออะไร
ค้นหา Nearest Map Structure
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getChunkSource(), getGeneratorState(), getPlacementsForStructure(), computeIfAbsent(), add(), isEmpty(), structureManager(), size(). สร้างออบเจ็กต์: Object2ObjectArrayMap<>, ObjectArraySet<>, ArrayList<>. มีจุด return อย่างน้อย 3 จุด.
Parameters
ServerLevel serverLevelHolderSet<Structure> holderSetBlockPos blockPosint iboolean bl
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
ServerLevel serverLevel = ...;
HolderSet<Structure> holderSet = ...;
BlockPos blockPos = ...;
Pair<BlockPos, Holder<Structure>> result = instance.findNearestMapStructure(serverLevel, holderSet, blockPos, 0, true);
net.minecraft.world.level.chunk.ChunkGenerator#getBaseColumn(int,int,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:607 - Modifiers:
public abstract - Return:
NoiseColumn
คืออะไร
อ่านค่า Base Column
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
NoiseColumn result = instance.getBaseColumn(0, 0, levelHeightAccessor, randomState);
net.minecraft.world.level.chunk.ChunkGenerator#getBaseHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:605 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Base Height
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getBaseHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.chunk.ChunkGenerator#getBiomeGenerationSettings(Holder<Biome>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:619 - Modifiers:
public - Return:
BiomeGenerationSettings
คืออะไร
อ่านค่า Biome Generation Settings
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: this.generationSettingsGetter.apply(holder).
Parameters
Holder<Biome> holder
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Holder<Biome> holder = ...;
BiomeGenerationSettings result = instance.getBiomeGenerationSettings(holder);
net.minecraft.world.level.chunk.ChunkGenerator#getBiomeSource()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:401 - Modifiers:
public - Return:
BiomeSource
คืออะไร
อ่านค่า Biome Source
ทำงานยังไง
คืนค่า: this.biomeSource.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#getFirstFreeHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:609 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า First Free Height
ทำงานยังไง
เรียกต่อ: getBaseHeight(). คืนค่า: this.getBaseHeight(i, j, types, levelHeightAccessor, randomState).
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getFirstFreeHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.chunk.ChunkGenerator#getFirstOccupiedHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:613 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า First Occupied Height
ทำงานยังไง
เรียกต่อ: getBaseHeight(). คืนค่า: this.getBaseHeight(i, j, types, levelHeightAccessor, randomState) - 1.
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getFirstOccupiedHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.chunk.ChunkGenerator#getGenDepth()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:405 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Gen Depth
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#getMinY()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:603 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Min Y
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#getMobsAt(Holder<Biome>,StructureManager,MobCategory,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:407 - Modifiers:
public - Return:
WeightedRandomList<MobSpawnSettings.SpawnerData>
คืออะไร
อ่านค่า Mobs At
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getAllStructuresAt(), entrySet(), getKey(), spawnOverrides(), get(), boundingBox(), structureHasPieceAt(), getBoundingBox(). สร้างออบเจ็กต์: MutableBoolean. มีจุด return อย่างน้อย 2 จุด.
Parameters
Holder<Biome> holderStructureManager structureManagerMobCategory mobCategoryBlockPos blockPos
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Holder<Biome> holder = ...;
StructureManager structureManager = ...;
MobCategory mobCategory = ...;
BlockPos blockPos = ...;
WeightedRandomList<MobSpawnSettings.SpawnerData> result = instance.getMobsAt(holder, structureManager, mobCategory, blockPos);
net.minecraft.world.level.chunk.ChunkGenerator#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:601 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGenerator#getSpawnHeight(LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:397 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Spawn Height
ทำงานยังไง
คืนค่า: 64.
Parameters
LevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
int result = instance.getSpawnHeight(levelHeightAccessor);
net.minecraft.world.level.chunk.ChunkGenerator#getTypeNameForDataFixer()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:109 - Modifiers:
public - Return:
Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>>
คืออะไร
อ่านค่า Type Name For Data Fixer
ทำงานยังไง
เรียกต่อ: getResourceKey(), codec(). คืนค่า: BuiltInRegistries.CHUNK_GENERATOR.getResourceKey(this.codec()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>> result = instance.getTypeNameForDataFixer();
net.minecraft.world.level.chunk.ChunkGenerator#spawnOriginalMobs(WorldGenRegion)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:395 - Modifiers:
public abstract - Return:
void
คืออะไร
สร้าง entity ในโลก Original Mobs
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
WorldGenRegion worldGenRegion
ตัวอย่างใช้งาน
ChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
instance.spawnOriginalMobs(worldGenRegion);
net.minecraft.world.level.chunk.ChunkGenerator#validate()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerator.java:99 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
เรียกต่อ: get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkGenerators
- Full name:
net.minecraft.world.level.chunk.ChunkGenerators - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ChunkGenerators.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.ChunkGenerators#bootstrap(Registry<MapCodec<? extends ChunkGenerator>>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGenerators.java:10 - Modifiers:
public static - Return:
MapCodec<? extends ChunkGenerator>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ ChunkGenerators
ทำงานยังไง
เรียกต่อ: register(). คืนค่า: Registry.register(registry, "debug", DebugLevelSource.CODEC).
Parameters
Registry<MapCodec<? extends ChunkGenerator>> registry
ตัวอย่างใช้งาน
Registry<MapCodec<? extends ChunkGenerator>> registry = ...;
MapCodec<? extends ChunkGenerator> result = ChunkGenerators.bootstrap(registry);
ChunkGeneratorStructureState
- Full name:
net.minecraft.world.level.chunk.ChunkGeneratorStructureState - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#createForFlat(RandomState,long,BiomeSource,Stream<Holder<StructureSet>>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:45 - Modifiers:
public static - Return:
ChunkGeneratorStructureState
คืออะไร
สร้าง For Flat
ทำงานยังไง
เรียกต่อ: filter(), hasBiomesForStructureSet(), value(), toList(). สร้างออบเจ็กต์: ChunkGeneratorStructureState. คืนค่า: new ChunkGeneratorStructureState(randomState, biomeSource, l, 0L, list).
Parameters
RandomState randomStatelong lBiomeSource biomeSourceStream<Holder<StructureSet>> stream
ตัวอย่างใช้งาน
RandomState randomState = ...;
BiomeSource biomeSource = ...;
Stream<Holder<StructureSet>> stream = ...;
ChunkGeneratorStructureState result = ChunkGeneratorStructureState.createForFlat(randomState, 0L, biomeSource, stream);
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#createForNormal(RandomState,long,BiomeSource,HolderLookup<StructureSet>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:50 - Modifiers:
public static - Return:
ChunkGeneratorStructureState
คืออะไร
สร้าง For Normal
ทำงานยังไง
เรียกต่อ: listElements(), filter(), hasBiomesForStructureSet(), value(), collect(), toUnmodifiableList(). สร้างออบเจ็กต์: ChunkGeneratorStructureState. คืนค่า: new ChunkGeneratorStructureState(randomState, biomeSource, l, l, list).
Parameters
RandomState randomStatelong lBiomeSource biomeSourceHolderLookup<StructureSet> holderLookup
ตัวอย่างใช้งาน
RandomState randomState = ...;
BiomeSource biomeSource = ...;
HolderLookup<StructureSet> holderLookup = ...;
ChunkGeneratorStructureState result = ChunkGeneratorStructureState.createForNormal(randomState, 0L, biomeSource, holderLookup);
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#ensureStructuresGenerated()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:155 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ensureStructuresGenerated ตาม implementation ของ ChunkGeneratorStructureState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasGeneratedPositions. เรียกต่อ: generatePositions().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#getLevelSeed()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:192 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Level Seed
ทำงานยังไง
คืนค่า: this.levelSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#getPlacementsForStructure(Holder<Structure>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:169 - Modifiers:
public - Return:
List<StructurePlacement>
คืออะไร
อ่านค่า Placements For Structure
ทำงานยังไง
เรียกต่อ: ensureStructuresGenerated(), getOrDefault(), value(), of(). คืนค่า: this.placementsForStructure.getOrDefault(holder.value(), List.of()).
Parameters
Holder<Structure> holder
ตัวอย่างใช้งาน
ChunkGeneratorStructureState instance = ...;
Holder<Structure> holder = ...;
List<StructurePlacement> result = instance.getPlacementsForStructure(holder);
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#getRingPositionsFor(ConcentricRingsStructurePlacement)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:162 - Modifiers:
public - Return:
List<ChunkPos>
คืออะไร
อ่านค่า Ring Positions For
ทำงานยังไง
เรียกต่อ: ensureStructuresGenerated(), get(), join(). คืนค่า: completableFuture != null ? completableFuture.join() : null.
Parameters
ConcentricRingsStructurePlacement concentricRingsStructurePlacement
ตัวอย่างใช้งาน
ChunkGeneratorStructureState instance = ...;
ConcentricRingsStructurePlacement concentricRingsStructurePlacement = ...;
List<ChunkPos> result = instance.getRingPositionsFor(concentricRingsStructurePlacement);
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#hasStructureChunkInRange(Holder<StructureSet>,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:178 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Structure Chunk In Range
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: value(), placement(), isStructureChunk(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Holder<StructureSet> holderint iint jint k
ตัวอย่างใช้งาน
ChunkGeneratorStructureState instance = ...;
Holder<StructureSet> holder = ...;
boolean result = instance.hasStructureChunkInRange(holder, 0, 0, 0);
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#possibleStructureSets()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:73 - Modifiers:
public - Return:
List<Holder<StructureSet>>
คืออะไร
ดำเนินการ possibleStructureSets ตาม implementation ของ ChunkGeneratorStructureState
ทำงานยังไง
คืนค่า: this.possibleStructureSets.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkGeneratorStructureState instance = ...;
List<Holder<StructureSet>> result = instance.possibleStructureSets();
net.minecraft.world.level.chunk.ChunkGeneratorStructureState#randomState()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkGeneratorStructureState.java:174 - Modifiers:
public - Return:
RandomState
คืออะไร
ดำเนินการ randomState ตาม implementation ของ ChunkGeneratorStructureState
ทำงานยังไง
คืนค่า: this.randomState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkSource
- Full name:
net.minecraft.world.level.chunk.ChunkSource - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ChunkSource.java - Type:
class - Modifiers:
public abstract - Implements:
LightChunkGetter,AutoCloseable
net.minecraft.world.level.chunk.ChunkSource#close()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:43 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#gatherStats()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:39 - Modifiers:
public abstract - Return:
String
คืออะไร
ดำเนินการ gatherStats ตาม implementation ของ ChunkSource
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#getChunk(int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:11 - Modifiers:
public - Return:
LevelChunk
คืออะไร
อ่านค่า Chunk
ทำงานยังไง
คืนค่า: (LevelChunk)this.getChunk(i, j, ChunkStatus.FULL, bl).
Parameters
int iint jboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#getChunk(int,int,ChunkStatus,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:31 - Modifiers:
public abstract - Return:
ChunkAccess
คืออะไร
อ่านค่า Chunk
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jChunkStatus chunkStatusboolean bl
ตัวอย่างใช้งาน
ChunkSource instance = ...;
ChunkStatus chunkStatus = ...;
ChunkAccess result = instance.getChunk(0, 0, chunkStatus, true);
net.minecraft.world.level.chunk.ChunkSource#getChunkForLighting(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:21 - Modifiers:
public - Return:
LightChunk
คืออะไร
อ่านค่า Chunk For Lighting
ทำงานยังไง
เรียกต่อ: getChunk(). คืนค่า: this.getChunk(i, j, ChunkStatus.EMPTY, false).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#getChunkNow(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:16 - Modifiers:
public - Return:
LevelChunk
คืออะไร
อ่านค่า Chunk Now
ทำงานยังไง
เรียกต่อ: getChunk(). คืนค่า: this.getChunk(i, j, false).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#getLightEngine()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:47 - Modifiers:
public abstract - Return:
LevelLightEngine
คืออะไร
อ่านค่า Light Engine
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#getLoadedChunksCount()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:41 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Loaded Chunks Count
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#hasChunk(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:27 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Chunk
ทำงานยังไง
เรียกต่อ: getChunk(). คืนค่า: this.getChunk(i, j, ChunkStatus.FULL, false) != null.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#onSectionEmptinessChanged(int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:36 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Section Emptiness Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint jint kboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#setSpawnSettings(boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:49 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Spawn Settings
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ChunkSource#tick(BooleanSupplier,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:34 - Modifiers:
public abstract - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BooleanSupplier booleanSupplierboolean bl
ตัวอย่างใช้งาน
ChunkSource instance = ...;
BooleanSupplier booleanSupplier = ...;
instance.tick(booleanSupplier, true);
net.minecraft.world.level.chunk.ChunkSource#updateChunkForced(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ChunkSource.java:52 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Chunk Forced
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
DataLayer
- Full name:
net.minecraft.world.level.chunk.DataLayer - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/DataLayer.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.DataLayer#copy()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:98 - Modifiers:
public - Return:
DataLayer
คืออะไร
คัดลอก copy
ทำงานยังไง
แก้ state: data. เรียกต่อ: clone(). สร้างออบเจ็กต์: DataLayer. คืนค่า: this.data == null ? new DataLayer(this.defaultValue) : new DataLayer((byte[])this.data.clone()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#DataLayer()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataLayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#DataLayer(byte[])
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataLayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: data, defaultValue. เรียกต่อ: pauseInIde(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
byte[] bs
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#DataLayer(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataLayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: defaultValue.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#fill(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:72 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ DataLayer
ทำงานยังไง
แก้ state: defaultValue, data.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#get(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:33 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: getIndex(). คืนค่า: this.get(getIndex(i, j, k)).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#getData()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:87 - Modifiers:
public - Return:
byte[]
คืออะไร
อ่านค่า Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: data. เรียกต่อ: fill(), packFilled(). คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#isDefinitelyFilledWith(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:138 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Definitely Filled With
ทำงานยังไง
แก้ state: data, defaultValue. คืนค่า: this.data == null && this.defaultValue == i.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#isDefinitelyHomogenous()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:134 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Definitely Homogenous
ทำงานยังไง
แก้ state: data. คืนค่า: this.data == null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:142 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
แก้ state: data, defaultValue. คืนค่า: this.data == null && this.defaultValue == 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#layerToString(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:120 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ layerToString ตาม implementation ของ DataLayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), toHexString(), get(), toString(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#set(int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:37 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getIndex().
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.DataLayer#toString()
- Origin:
common - Source:
net/minecraft/world/level/chunk/DataLayer.java:102 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DataLayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), toHexString(), get(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EmptyLevelChunk
- Full name:
net.minecraft.world.level.chunk.EmptyLevelChunk - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/EmptyLevelChunk.java - Type:
class - Modifiers:
public - Extends:
LevelChunk
net.minecraft.world.level.chunk.EmptyLevelChunk#addAndRegisterBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:51 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม And Register Block Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockEntity blockEntity = ...;
instance.addAndRegisterBlockEntity(blockEntity);
net.minecraft.world.level.chunk.EmptyLevelChunk#EmptyLevelChunk(Level,ChunkPos,Holder<Biome>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EmptyLevelChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: biome.
Parameters
Level levelChunkPos chunkPosHolder<Biome> holder
ตัวอย่างใช้งาน
Level level = ...;
ChunkPos chunkPos = ...;
Holder<Biome> holder = ...;
EmptyLevelChunk instance = new EmptyLevelChunk(level, chunkPos, holder);
net.minecraft.world.level.chunk.EmptyLevelChunk#getBlockEntity(BlockPos,LevelChunk.EntityCreationType)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:45 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
คืนค่า: null.
Parameters
BlockPos blockPosLevelChunk.EntityCreationType entityCreationType
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockPos blockPos = ...;
LevelChunk.EntityCreationType entityCreationType = ...;
BlockEntity result = instance.getBlockEntity(blockPos, entityCreationType);
net.minecraft.world.level.chunk.EmptyLevelChunk#getBlockState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:24 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
เรียกต่อ: defaultBlockState(). คืนค่า: Blocks.VOID_AIR.defaultBlockState().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);
net.minecraft.world.level.chunk.EmptyLevelChunk#getFluidState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:35 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
เรียกต่อ: defaultFluidState(). คืนค่า: Fluids.EMPTY.defaultFluidState().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockPos blockPos = ...;
FluidState result = instance.getFluidState(blockPos);
net.minecraft.world.level.chunk.EmptyLevelChunk#getFullStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:78 - Modifiers:
public - Return:
FullChunkStatus
คืออะไร
อ่านค่า Full Status
ทำงานยังไง
คืนค่า: FullChunkStatus.FULL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#getLightEmission(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:40 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Light Emission
ทำงานยังไง
คืนค่า: 0.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockPos blockPos = ...;
int result = instance.getLightEmission(blockPos);
net.minecraft.world.level.chunk.EmptyLevelChunk#getNoiseBiome(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:83 - Modifiers:
public - Return:
Holder<Biome>
คืออะไร
อ่านค่า Noise Biome
ทำงานยังไง
คืนค่า: this.biome.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:63 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#isSectionEmpty(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Section Empty
ทำงานยังไง
คืนค่า: true.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#isYSpaceEmpty(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ YSpace Empty
ทำงานยังไง
คืนค่า: true.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#removeBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:59 - Modifiers:
public - Return:
void
คืออะไร
ลบ Block Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.EmptyLevelChunk#setBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:55 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockEntity blockEntity = ...;
instance.setBlockEntity(blockEntity);
net.minecraft.world.level.chunk.EmptyLevelChunk#setBlockState(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/EmptyLevelChunk.java:29 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
คืนค่า: null.
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
EmptyLevelChunk instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(blockPos, blockState, true);
GlobalPalette
- Full name:
net.minecraft.world.level.chunk.GlobalPalette - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/GlobalPalette.java - Type:
class - Modifiers:
public - Implements:
Palette<T>
net.minecraft.world.level.chunk.GlobalPalette#copy(PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:58 - Modifiers:
public - Return:
Palette<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
PaletteResize<T> paletteResize
ตัวอย่างใช้งาน
GlobalPalette instance = ...;
PaletteResize<T> paletteResize = ...;
Palette<T> result = instance.copy(paletteResize);
net.minecraft.world.level.chunk.GlobalPalette#create(int,IdMap<A>,PaletteResize<A>,List<A>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:15 - Modifiers:
public static - Return:
Palette<A>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: GlobalPalette<>. คืนค่า: new GlobalPalette<>(idMap).
Parameters
int iIdMap<A> idMapPaletteResize<A> paletteResizeList<A> list
ตัวอย่างใช้งาน
IdMap<A> idMap = ...;
PaletteResize<A> paletteResize = ...;
List<A> list = ...;
Palette<A> result = GlobalPalette.create(0, idMap, paletteResize, list);
net.minecraft.world.level.chunk.GlobalPalette#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:48 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.GlobalPalette#getSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:53 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.registry.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.GlobalPalette#GlobalPalette(IdMap<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GlobalPalette ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registry.
Parameters
IdMap<T> idMap
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.GlobalPalette#idFor(T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:19 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ GlobalPalette
ทำงานยังไง
เรียกต่อ: getId(). คืนค่า: i == -1 ? 0 : i.
Parameters
T object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.GlobalPalette#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ GlobalPalette
ทำงานยังไง
คืนค่า: true.
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
GlobalPalette instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.GlobalPalette#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:40 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
GlobalPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.GlobalPalette#valueFor(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:30 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ valueFor ตาม implementation ของ GlobalPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: byId(). สร้างออบเจ็กต์: MissingPaletteEntryException. คืนค่า: object.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.GlobalPalette#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/GlobalPalette.java:44 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
GlobalPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
HashMapPalette
- Full name:
net.minecraft.world.level.chunk.HashMapPalette - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/HashMapPalette.java - Type:
class - Modifiers:
public - Implements:
Palette<T>
net.minecraft.world.level.chunk.HashMapPalette#copy(PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:113 - Modifiers:
public - Return:
Palette<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: HashMapPalette<>. คืนค่า: new HashMapPalette<>(this.registry, this.bits, paletteResize, this.values.copy()).
Parameters
PaletteResize<T> paletteResize
ตัวอย่างใช้งาน
HashMapPalette instance = ...;
PaletteResize<T> paletteResize = ...;
Palette<T> result = instance.copy(paletteResize);
net.minecraft.world.level.chunk.HashMapPalette#create(int,IdMap<A>,PaletteResize<A>,List<A>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:33 - Modifiers:
public static - Return:
Palette<A>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: HashMapPalette<>. คืนค่า: new HashMapPalette<>(idMap, i, paletteResize, list).
Parameters
int iIdMap<A> idMapPaletteResize<A> paletteResizeList<A> list
ตัวอย่างใช้งาน
IdMap<A> idMap = ...;
PaletteResize<A> paletteResize = ...;
List<A> list = ...;
Palette<A> result = HashMapPalette.create(0, idMap, paletteResize, list);
net.minecraft.world.level.chunk.HashMapPalette#getEntries()
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:102 - Modifiers:
public - Return:
List<T>
คืออะไร
อ่านค่า Entries
ทำงานยังไง
เรียกต่อ: iterator(), forEachRemaining(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: arrayList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.HashMapPalette#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:91 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getByteSize(), getSize(), getId(), byId(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.HashMapPalette#getSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:108 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.values.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.HashMapPalette#HashMapPalette(IdMap<T>,int,PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HashMapPalette ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: create().
Parameters
IdMap<T> idMapint iPaletteResize<T> paletteResize
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
PaletteResize<T> paletteResize = ...;
HashMapPalette instance = new HashMapPalette(idMap, 0, paletteResize);
net.minecraft.world.level.chunk.HashMapPalette#HashMapPalette(IdMap<T>,int,PaletteResize<T>,List<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HashMapPalette ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: forEach().
Parameters
IdMap<T> idMapint iPaletteResize<T> paletteResizeList<T> list
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
PaletteResize<T> paletteResize = ...;
List<T> list = ...;
HashMapPalette instance = new HashMapPalette(idMap, 0, paletteResize, list);
net.minecraft.world.level.chunk.HashMapPalette#idFor(T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:37 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ HashMapPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getId(), add(), onResize(). คืนค่า: i.
Parameters
T object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.HashMapPalette#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:50 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ HashMapPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getSize(), test(), byId(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
HashMapPalette instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.HashMapPalette#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:71 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
มีการวนลูป. เรียกต่อ: clear(), readVarInt(), add(), byIdOrThrow().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
HashMapPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.HashMapPalette#valueFor(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:61 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ valueFor ตาม implementation ของ HashMapPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: byId(). สร้างออบเจ็กต์: MissingPaletteEntryException. คืนค่า: object.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.HashMapPalette#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/HashMapPalette.java:81 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getSize(), writeVarInt(), getId(), byId().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
HashMapPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
ImposterProtoChunk
- Full name:
net.minecraft.world.level.chunk.ImposterProtoChunk - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ImposterProtoChunk.java - Type:
class - Modifiers:
public - Extends:
ProtoChunk
net.minecraft.world.level.chunk.ImposterProtoChunk#addEntity(Entity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:83 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#addReferenceForStructure(Structure,long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:158 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Reference For Structure
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Structure structurelong l
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Structure structure = ...;
instance.addReferenceForStructure(structure, 0L);
net.minecraft.world.level.chunk.ImposterProtoChunk#canBeSerialized()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:176 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Serialized
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#fillBiomesFromNoise(BiomeResolver,Climate.Sampler)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:278 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillBiomesFromNoise ตาม implementation ของ ImposterProtoChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
BiomeResolver biomeResolverClimate.Sampler sampler
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BiomeResolver biomeResolver = ...;
Climate.Sampler sampler = ...;
instance.fillBiomesFromNoise(biomeResolver, sampler);
net.minecraft.world.level.chunk.ImposterProtoChunk#findBlocks(Predicate<BlockState>,BiConsumer<BlockPos, BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:220 - Modifiers:
public - Return:
void
คืออะไร
ค้นหา Blocks
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Predicate<BlockState> predicateBiConsumer<BlockPos, BlockState> biConsumer
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Predicate<BlockState> predicate = ...;
BiConsumer<BlockPos, BlockState> biConsumer = ...;
instance.findBlocks(predicate, biConsumer);
net.minecraft.world.level.chunk.ImposterProtoChunk#getAllReferences()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:162 - Modifiers:
public - Return:
Map<Structure, LongSet>
คืออะไร
อ่านค่า All References
ทำงานยังไง
คืนค่า: this.wrapped.getAllReferences().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getAllStarts()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:144 - Modifiers:
public - Return:
Map<Structure, StructureStart>
คืออะไร
อ่านค่า All Starts
ทำงานยังไง
คืนค่า: this.wrapped.getAllStarts().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlendingData()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:240 - Modifiers:
public - Return:
BlendingData
คืออะไร
อ่านค่า Blending Data
ทำงานยังไง
คืนค่า: this.wrapped.getBlendingData().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:49 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
คืนค่า: this.wrapped.getBlockEntity(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockEntity result = instance.getBlockEntity(blockPos);
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlockEntityNbt(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:208 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt
ทำงานยังไง
คืนค่า: this.wrapped.getBlockEntityNbt(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
CompoundTag result = instance.getBlockEntityNbt(blockPos);
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlockEntityNbtForSaving(BlockPos,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:214 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt For Saving
ทำงานยังไง
คืนค่า: this.wrapped.getBlockEntityNbtForSaving(blockPos, provider).
Parameters
BlockPos blockPosHolderLookup.Provider provider
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getBlockEntityNbtForSaving(blockPos, provider);
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlockState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:55 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
คืนค่า: this.wrapped.getBlockState(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);
net.minecraft.world.level.chunk.ImposterProtoChunk#getBlockTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:225 - Modifiers:
public - Return:
TickContainerAccess<Block>
คืออะไร
อ่านค่า Block Ticks
ทำงานยังไง
เรียกต่อ: emptyContainer(). คืนค่า: this.allowWrites ? this.wrapped.getBlockTicks() : BlackholeTickAccess.emptyContainer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getCarvingMask()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:246 - Modifiers:
public - Return:
CarvingMask
คืออะไร
อ่านค่า Carving Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pauseInIde(). สร้างออบเจ็กต์: UnsupportedOperationException. คืนค่า: super.getCarvingMask().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getFluidState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:60 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
คืนค่า: this.wrapped.getFluidState(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
FluidState result = instance.getFluidState(blockPos);
net.minecraft.world.level.chunk.ImposterProtoChunk#getFluidTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:230 - Modifiers:
public - Return:
TickContainerAccess<Fluid>
คืออะไร
อ่านค่า Fluid Ticks
ทำงานยังไง
เรียกต่อ: emptyContainer(). คืนค่า: this.allowWrites ? this.wrapped.getFluidTicks() : BlackholeTickAccess.emptyContainer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getHeight(Heightmap.Types,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:119 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: fixType(). คืนค่า: this.wrapped.getHeight(this.fixType(types), i, j).
Parameters
Heightmap.Types typesint iint j
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Heightmap.Types types = ...;
int result = instance.getHeight(types, 0, 0);
net.minecraft.world.level.chunk.ImposterProtoChunk#getNoiseBiome(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:124 - Modifiers:
public - Return:
Holder<Biome>
คืออะไร
อ่านค่า Noise Biome
ทำงานยังไง
คืนค่า: this.wrapped.getNoiseBiome(i, j, k).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getOrCreateCarvingMask()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:255 - Modifiers:
public - Return:
CarvingMask
คืออะไร
อ่านค่า Or Create Carving Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pauseInIde(). สร้างออบเจ็กต์: UnsupportedOperationException. คืนค่า: super.getOrCreateCarvingMask().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getOrCreateHeightmapUnprimed(Heightmap.Types)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:114 - Modifiers:
public - Return:
Heightmap
คืออะไร
อ่านค่า Or Create Heightmap Unprimed
ทำงานยังไง
คืนค่า: this.wrapped.getOrCreateHeightmapUnprimed(types).
Parameters
Heightmap.Types types
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Heightmap.Types types = ...;
Heightmap result = instance.getOrCreateHeightmapUnprimed(types);
net.minecraft.world.level.chunk.ImposterProtoChunk#getPersistedStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:191 - Modifiers:
public - Return:
ChunkStatus
คืออะไร
อ่านค่า Persisted Status
ทำงานยังไง
คืนค่า: this.wrapped.getPersistedStatus().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getPos()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:129 - Modifiers:
public - Return:
ChunkPos
คืออะไร
อ่านค่า Pos
ทำงานยังไง
คืนค่า: this.wrapped.getPos().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getReferencesForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:153 - Modifiers:
public - Return:
LongSet
คืออะไร
อ่านค่า References For Structure
ทำงานยังไง
คืนค่า: this.wrapped.getReferencesForStructure(structure).
Parameters
Structure structure
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Structure structure = ...;
LongSet result = instance.getReferencesForStructure(structure);
net.minecraft.world.level.chunk.ImposterProtoChunk#getSection(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:65 - Modifiers:
public - Return:
LevelChunkSection
คืออะไร
อ่านค่า Section
ทำงานยังไง
คืนค่า: this.allowWrites ? this.wrapped.getSection(i) : super.getSection(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getSections()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:97 - Modifiers:
public - Return:
LevelChunkSection[]
คืออะไร
อ่านค่า Sections
ทำงานยังไง
คืนค่า: this.wrapped.getSections().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getSkyLightSources()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:290 - Modifiers:
public - Return:
ChunkSkyLightSources
คืออะไร
อ่านค่า Sky Light Sources
ทำงานยังไง
คืนค่า: this.wrapped.getSkyLightSources().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#getStartForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:134 - Modifiers:
public - Return:
StructureStart
คืออะไร
อ่านค่า Start For Structure
ทำงานยังไง
คืนค่า: this.wrapped.getStartForStructure(structure).
Parameters
Structure structure
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Structure structure = ...;
StructureStart result = instance.getStartForStructure(structure);
net.minecraft.world.level.chunk.ImposterProtoChunk#getTicksForSerialization(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:235 - Modifiers:
public - Return:
ChunkAccess.PackedTicks
คืออะไร
อ่านค่า Ticks For Serialization
ทำงานยังไง
คืนค่า: this.wrapped.getTicksForSerialization(l).
Parameters
long l
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
ChunkAccess.PackedTicks result = instance.getTicksForSerialization(0L);
net.minecraft.world.level.chunk.ImposterProtoChunk#getWrapped()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:264 - Modifiers:
public - Return:
LevelChunk
คืออะไร
อ่านค่า Wrapped
ทำงานยังไง
คืนค่า: this.wrapped.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#ImposterProtoChunk(LevelChunk,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ImposterProtoChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: wrapped, allowWrites. เรียกต่อ: getPos(), getLevel(), registryAccess(), lookupOrThrow(), getBlendingData().
Parameters
LevelChunk levelChunkboolean bl
ตัวอย่างใช้งาน
LevelChunk levelChunk = ...;
ImposterProtoChunk instance = new ImposterProtoChunk(levelChunk, true);
net.minecraft.world.level.chunk.ImposterProtoChunk#initializeLightSources()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:285 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ initializeLightSources ตาม implementation ของ ImposterProtoChunk
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#isLightCorrect()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:268 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Light Correct
ทำงานยังไง
คืนค่า: this.wrapped.isLightCorrect().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#isUnsaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:186 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Unsaved
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#markPosForPostprocessing(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:200 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markPosForPostprocessing ตาม implementation ของ ImposterProtoChunk
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
instance.markPosForPostprocessing(blockPos);
net.minecraft.world.level.chunk.ImposterProtoChunk#markUnsaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:171 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markUnsaved ตาม implementation ของ ImposterProtoChunk
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#removeBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:196 - Modifiers:
public - Return:
void
คืออะไร
ลบ Block Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#setAllReferences(Map<Structure, LongSet>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:167 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า All References
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Map<Structure, LongSet> map
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Map<Structure, LongSet> map = ...;
instance.setAllReferences(map);
net.minecraft.world.level.chunk.ImposterProtoChunk#setAllStarts(Map<Structure, StructureStart>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:149 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า All Starts
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Map<Structure, StructureStart> map
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Map<Structure, StructureStart> map = ...;
instance.setAllStarts(map);
net.minecraft.world.level.chunk.ImposterProtoChunk#setBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:76 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockEntity blockEntity = ...;
instance.setBlockEntity(blockEntity);
net.minecraft.world.level.chunk.ImposterProtoChunk#setBlockEntityNbt(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:204 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity Nbt
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
CompoundTag compoundTag = ...;
instance.setBlockEntityNbt(compoundTag);
net.minecraft.world.level.chunk.ImposterProtoChunk#setBlockState(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:70 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
คืนค่า: this.allowWrites ? this.wrapped.setBlockState(blockPos, blockState, bl) : null.
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(blockPos, blockState, true);
net.minecraft.world.level.chunk.ImposterProtoChunk#setHeightmap(Heightmap.Types,long[])
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:102 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Heightmap
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Heightmap.Types typeslong[] ls
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Heightmap.Types types = ...;
long[] ls = ...;
instance.setHeightmap(types, ls);
net.minecraft.world.level.chunk.ImposterProtoChunk#setLightCorrect(boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:273 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Correct
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ImposterProtoChunk#setPersistedStatus(ChunkStatus)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Persisted Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
ChunkStatus chunkStatus
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
ChunkStatus chunkStatus = ...;
instance.setPersistedStatus(chunkStatus);
net.minecraft.world.level.chunk.ImposterProtoChunk#setStartForStructure(Structure,StructureStart)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:140 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Start For Structure
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Structure structureStructureStart structureStart
ตัวอย่างใช้งาน
ImposterProtoChunk instance = ...;
Structure structure = ...;
StructureStart structureStart = ...;
instance.setStartForStructure(structure, structureStart);
net.minecraft.world.level.chunk.ImposterProtoChunk#tryMarkSaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ImposterProtoChunk.java:181 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ tryMarkSaved ตาม implementation ของ ImposterProtoChunk
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelChunk
- Full name:
net.minecraft.world.level.chunk.LevelChunk - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LevelChunk.java - Type:
class - Modifiers:
public - Extends:
ChunkAccess
net.minecraft.world.level.chunk.LevelChunk#addAndRegisterBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:381 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม And Register Block Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setBlockEntity(), isInLevel(), addGameEventListener(), updateBlockEntityTicker().
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockEntity blockEntity = ...;
instance.addAndRegisterBlockEntity(blockEntity);
net.minecraft.world.level.chunk.LevelChunk#addEntity(Entity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:336 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#clearAllBlockEntities()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:634 - Modifiers:
public - Return:
void
คืออะไร
ล้าง All Block Entities
ทำงานยังไง
เรียกต่อ: values(), forEach(), clear(), rebind().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getBlockEntities()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:544 - Modifiers:
public - Return:
Map<BlockPos, BlockEntity>
คืออะไร
อ่านค่า Block Entities
ทำงานยังไง
คืนค่า: this.blockEntities.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:347 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
คืนค่า: this.getBlockEntity(blockPos, LevelChunk.EntityCreationType.CHECK).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
BlockEntity result = instance.getBlockEntity(blockPos);
net.minecraft.world.level.chunk.LevelChunk#getBlockEntity(BlockPos,LevelChunk.EntityCreationType)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:353 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), remove(), promotePendingBlockEntity(), createBlockEntity(), addAndRegisterBlockEntity(), isRemoved(). มีจุด return อย่างน้อย 3 จุด.
Parameters
BlockPos blockPosLevelChunk.EntityCreationType entityCreationType
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
LevelChunk.EntityCreationType entityCreationType = ...;
BlockEntity result = instance.getBlockEntity(blockPos, entityCreationType);
net.minecraft.world.level.chunk.LevelChunk#getBlockEntityNbtForSaving(BlockPos,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:436 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt For Saving
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockEntity(), isRemoved(), saveWithFullMetadata(), registryAccess(), putBoolean(), get(), copy(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockPos blockPosHolderLookup.Provider provider
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getBlockEntityNbtForSaving(blockPos, provider);
net.minecraft.world.level.chunk.LevelChunk#getBlockState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:198 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getX(), getY(), getZ(), isDebug(), defaultBlockState(), getBlockStateFor(), getSectionIndex(), hasOnlyAir(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 3 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);
net.minecraft.world.level.chunk.LevelChunk#getBlockTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:175 - Modifiers:
public - Return:
TickContainerAccess<Block>
คืออะไร
อ่านค่า Block Ticks
ทำงานยังไง
คืนค่า: this.blockTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getFluidState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:234 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: this.getFluidState(blockPos.getX(), blockPos.getY(), blockPos.getZ()).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
FluidState result = instance.getFluidState(blockPos);
net.minecraft.world.level.chunk.LevelChunk#getFluidState(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:239 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getSectionIndex(), hasOnlyAir(), defaultFluidState(), forThrowable(), addCategory(), setDetail(), formatLocation(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getFluidTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:180 - Modifiers:
public - Return:
TickContainerAccess<Fluid>
คืออะไร
อ่านค่า Fluid Ticks
ทำงานยังไง
คืนค่า: this.fluidTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getFullStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:626 - Modifiers:
public - Return:
FullChunkStatus
คืออะไร
อ่านค่า Full Status
ทำงานยังไง
แก้ state: fullStatus. เรียกต่อ: get(). คืนค่า: this.fullStatus == null ? FullChunkStatus.FULL : this.fullStatus.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getLevel()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:540 - Modifiers:
public - Return:
Level
คืออะไร
อ่านค่า Level
ทำงานยังไง
คืนค่า: this.level.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getListenerRegistry(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:190 - Modifiers:
public - Return:
GameEventListenerRegistry
คืออะไร
อ่านค่า Listener Registry
ทำงานยังไง
เรียกต่อ: computeIfAbsent(). สร้างออบเจ็กต์: EuclideanGameEventListenerRegistry.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getPersistedStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:621 - Modifiers:
public - Return:
ChunkStatus
คืออะไร
อ่านค่า Persisted Status
ทำงานยังไง
คืนค่า: ChunkStatus.FULL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#getTicksForSerialization(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:185 - Modifiers:
public - Return:
ChunkAccess.PackedTicks
คืออะไร
อ่านค่า Ticks For Serialization
ทำงานยังไง
เรียกต่อ: PackedTicks(), pack(). สร้างออบเจ็กต์: ChunkAccess.PackedTicks. คืนค่า: new ChunkAccess.PackedTicks(this.blockTicks.pack(l), this.fluidTicks.pack(l)).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:501 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#LevelChunk(Level,ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:89 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: LevelChunkTicks<>.
Parameters
Level levelChunkPos chunkPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#LevelChunk(Level,ChunkPos,UpgradeData,LevelChunkTicks<Block>,LevelChunkTicks<Fluid>,long,LevelChunkSection[],LevelChunk.PostLoadProcessor,BlendingData)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:93 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: level, gameEventListenerRegistrySections, postLoad, blockTicks, fluidTicks. เรียกต่อ: registryAccess(), lookupOrThrow(), values(), heightmapsAfter(), contains(), put(). สร้างออบเจ็กต์: Int2ObjectOpenHashMap<>, Heightmap.
Parameters
Level levelChunkPos chunkPosUpgradeData upgradeDataLevelChunkTicks<Block> levelChunkTicksLevelChunkTicks<Fluid> levelChunkTicks2long lLevelChunkSection[] levelChunkSectionsLevelChunk.PostLoadProcessor postLoadProcessorBlendingData blendingData
ตัวอย่างใช้งาน
Level level = ...;
ChunkPos chunkPos = ...;
UpgradeData upgradeData = ...;
LevelChunkTicks<Block> levelChunkTicks = ...;
LevelChunkTicks<Fluid> levelChunkTicks2 = ...;
LevelChunkSection[] levelChunkSections = ...;
LevelChunk.PostLoadProcessor postLoadProcessor = ...;
BlendingData blendingData = ...;
LevelChunk instance = new LevelChunk(level, chunkPos, upgradeData, levelChunkTicks, levelChunkTicks2, 0L, levelChunkSections, postLoadProcessor, blendingData);
net.minecraft.world.level.chunk.LevelChunk#LevelChunk(ServerLevel,ProtoChunk,LevelChunk.PostLoadProcessor)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:119 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: skyLightSources. เรียกต่อ: getPos(), getUpgradeData(), unpackBlockTicks(), unpackFluidTicks(), getInhabitedTime(), getSections(), getBlendingData(), disjoint().
Parameters
ServerLevel serverLevelProtoChunk protoChunkLevelChunk.PostLoadProcessor postLoadProcessor
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
ProtoChunk protoChunk = ...;
LevelChunk.PostLoadProcessor postLoadProcessor = ...;
LevelChunk instance = new LevelChunk(serverLevel, protoChunk, postLoadProcessor);
net.minecraft.world.level.chunk.LevelChunk#markUnsaved()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:166 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markUnsaved ตาม implementation ของ LevelChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isUnsaved(), setUnsaved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#postProcessGeneration(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:548 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ postProcessGeneration ตาม implementation ของ LevelChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPos(), unpackOffsetCoordinates(), getSectionYFromSectionIndex(), getBlockState(), getFluidState(), isEmpty(), tick(), getBlock().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
LevelChunk instance = ...;
ServerLevel serverLevel = ...;
instance.postProcessGeneration(serverLevel);
net.minecraft.world.level.chunk.LevelChunk#registerAllBlockEntitiesAfterLevelLoad()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:641 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน All Block Entities After Level Load
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: values(), forEach(), addGameEventListener(), updateBlockEntityTicker().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#registerTickContainerInLevel(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:611 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Tick Container In Level
ทำงานยังไง
เรียกต่อ: getBlockTicks(), addContainer(), getFluidTicks().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
LevelChunk instance = ...;
ServerLevel serverLevel = ...;
instance.registerTickContainerInLevel(serverLevel);
net.minecraft.world.level.chunk.LevelChunk#removeBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:455 - Modifiers:
public - Return:
void
คืออะไร
ลบ Block Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isInLevel(), remove(), removeGameEventListener(), setRemoved(), removeBlockEntityTicker().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#replaceBiomes(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:530 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ replaceBiomes ตาม implementation ของ LevelChunk
ทำงานยังไง
มีการวนลูป. เรียกต่อ: readBiomes().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LevelChunk instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.replaceBiomes(friendlyByteBuf);
net.minecraft.world.level.chunk.LevelChunk#replaceWithPacketData(FriendlyByteBuf,CompoundTag,Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:505 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ replaceWithPacketData ตาม implementation ของ LevelChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: clearAllBlockEntities(), read(), values(), getSerializationKey(), contains(), setHeightmap(), getLongArray(), initializeLightSources().
Parameters
FriendlyByteBuf friendlyByteBufCompoundTag compoundTagConsumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> consumer
ตัวอย่างใช้งาน
LevelChunk instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
CompoundTag compoundTag = ...;
Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> consumer = ...;
instance.replaceWithPacketData(friendlyByteBuf, compoundTag, consumer);
net.minecraft.world.level.chunk.LevelChunk#runPostLoad()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:494 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน Post Load
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: postLoad. เรียกต่อ: run().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#setBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:406 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockPos(), getBlockState(), hasBlockEntity(), warn(), getType(), isValid(), getBlock(), setBlockState().
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#setBlockState(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:258 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getY(), getSection(), getSectionIndex(), hasOnlyAir(), isAir(), getX(), getZ(), getBlock(). มีจุด return อย่างน้อย 4 จุด.
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
LevelChunk instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(blockPos, blockState, true);
net.minecraft.world.level.chunk.LevelChunk#setFullStatus(Supplier<FullChunkStatus>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:630 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Full Status
ทำงานยังไง
แก้ state: fullStatus.
Parameters
Supplier<FullChunkStatus> supplier
ตัวอย่างใช้งาน
LevelChunk instance = ...;
Supplier<FullChunkStatus> supplier = ...;
instance.setFullStatus(supplier);
net.minecraft.world.level.chunk.LevelChunk#setLoaded(boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:536 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loaded
ทำงานยังไง
แก้ state: loaded.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#setUnsavedListener(LevelChunk.UnsavedListener)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:159 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Unsaved Listener
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: unsavedListener. เรียกต่อ: isUnsaved(), setUnsaved().
Parameters
LevelChunk.UnsavedListener unsavedListener
ตัวอย่างใช้งาน
LevelChunk instance = ...;
LevelChunk.UnsavedListener unsavedListener = ...;
instance.setUnsavedListener(unsavedListener);
net.minecraft.world.level.chunk.LevelChunk#unpackTicks(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:606 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ unpackTicks ตาม implementation ของ LevelChunk
ทำงานยังไง
เรียกต่อ: unpack().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunk#unregisterTickContainerFromLevel(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:616 - Modifiers:
public - Return:
void
คืออะไร
ยกเลิกการลงทะเบียน Tick Container From Level
ทำงานยังไง
เรียกต่อ: getBlockTicks(), removeContainer(), getFluidTicks().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
LevelChunk instance = ...;
ServerLevel serverLevel = ...;
instance.unregisterTickContainerFromLevel(serverLevel);
LevelChunk$PostLoadProcessor
- Full name:
net.minecraft.world.level.chunk.LevelChunk$PostLoadProcessor - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LevelChunk.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.LevelChunk$PostLoadProcessor#run(LevelChunk)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:760 - Modifiers: ``
- Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LevelChunk levelChunk
ตัวอย่างใช้งาน
LevelChunk$UnsavedListener
- Full name:
net.minecraft.world.level.chunk.LevelChunk$UnsavedListener - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LevelChunk.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.LevelChunk$UnsavedListener#setUnsaved(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunk.java:802 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Unsaved
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
LevelChunkSection
- Full name:
net.minecraft.world.level.chunk.LevelChunkSection - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LevelChunkSection.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.LevelChunkSection#acquire()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:54 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ acquire ตาม implementation ของ LevelChunkSection
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#copy()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:203 - Modifiers:
public - Return:
LevelChunkSection
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: LevelChunkSection. คืนค่า: new LevelChunkSection(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#fillBiomesFromNoise(BiomeResolver,Climate.Sampler,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:188 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillBiomesFromNoise ตาม implementation ของ LevelChunkSection
ทำงานยังไง
มีการวนลูป. แก้ state: biomes. เรียกต่อ: recreate(), getAndSetUnchecked(), getNoiseBiome().
Parameters
BiomeResolver biomeResolverClimate.Sampler samplerint iint jint k
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
BiomeResolver biomeResolver = ...;
Climate.Sampler sampler = ...;
instance.fillBiomesFromNoise(biomeResolver, sampler, 0, 0, 0);
net.minecraft.world.level.chunk.LevelChunkSection#getBiomes()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:152 - Modifiers:
public - Return:
PalettedContainerRO<Holder<Biome>>
คืออะไร
อ่านค่า Biomes
ทำงานยังไง
คืนค่า: this.biomes.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#getBlockState(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:46 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.states.get(i, j, k).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#getFluidState(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:50 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.states.get(i, j, k).getFluidState().
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#getNoiseBiome(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:184 - Modifiers:
public - Return:
Holder<Biome>
คืออะไร
อ่านค่า Noise Biome
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.biomes.get(i, j, k).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:176 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
คืนค่า: 2 + this.states.getSerializedSize() + this.biomes.getSerializedSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#getStates()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:148 - Modifiers:
public - Return:
PalettedContainer<BlockState>
คืออะไร
อ่านค่า States
ทำงานยังไง
คืนค่า: this.states.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#hasOnlyAir()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:101 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Only Air
ทำงานยังไง
แก้ state: nonEmptyBlockCount. คืนค่า: this.nonEmptyBlockCount == 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#isRandomlyTicking()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:105 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Randomly Ticking
ทำงานยังไง
เรียกต่อ: isRandomlyTickingBlocks(), isRandomlyTickingFluids(). คืนค่า: this.isRandomlyTickingBlocks() || this.isRandomlyTickingFluids().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#isRandomlyTickingBlocks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:109 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Randomly Ticking Blocks
ทำงานยังไง
คืนค่า: this.tickingBlockCount > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#isRandomlyTickingFluids()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:113 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Randomly Ticking Fluids
ทำงานยังไง
คืนค่า: this.tickingFluidCount > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#LevelChunkSection(PalettedContainer<BlockState>,PalettedContainerRO<Holder<Biome>>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelChunkSection ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: states, biomes. เรียกต่อ: recalcBlockCounts().
Parameters
PalettedContainer<BlockState> palettedContainerPalettedContainerRO<Holder<Biome>> palettedContainerRO
ตัวอย่างใช้งาน
PalettedContainer<BlockState> palettedContainer = ...;
PalettedContainerRO<Holder<Biome>> palettedContainerRO = ...;
LevelChunkSection instance = new LevelChunkSection(palettedContainer, palettedContainerRO);
net.minecraft.world.level.chunk.LevelChunkSection#LevelChunkSection(Registry<Biome>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:41 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelChunkSection ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: states, biomes. เรียกต่อ: defaultBlockState(), asHolderIdMap(), getOrThrow(). สร้างออบเจ็กต์: PalettedContainer<>.
Parameters
Registry<Biome> registry
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#maybeHas(Predicate<BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:180 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ LevelChunkSection
ทำงานยังไง
คืนค่า: this.states.maybeHas(predicate).
Parameters
Predicate<BlockState> predicate
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
Predicate<BlockState> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.LevelChunkSection#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:156 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
แก้ state: nonEmptyBlockCount, biomes. เรียกต่อ: readShort(), recreate().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.LevelChunkSection#readBiomes(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:164 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Biomes
ทำงานยังไง
แก้ state: biomes. เรียกต่อ: recreate(), read().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.readBiomes(friendlyByteBuf);
net.minecraft.world.level.chunk.LevelChunkSection#recalcBlockCounts()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:117 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recalcBlockCounts ตาม implementation ของ LevelChunkSection
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: nonEmptyBlockCount, tickingBlockCount, tickingFluidCount. เรียกต่อ: accept(), getFluidState(), isAir(), isRandomlyTicking(), isEmpty(), count(). สร้างออบเจ็กต์: BlockCounter.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#release()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:58 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ LevelChunkSection
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LevelChunkSection#setBlockState(int,int,int,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:62 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
คืนค่า: this.setBlockState(i, j, k, blockState, true).
Parameters
int iint jint kBlockState blockState
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(0, 0, 0, blockState);
net.minecraft.world.level.chunk.LevelChunkSection#setBlockState(int,int,int,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:66 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: nonEmptyBlockCount, tickingBlockCount, tickingFluidCount. เรียกต่อ: getAndSet(), getAndSetUnchecked(), getFluidState(), isAir(), isRandomlyTicking(), isEmpty(). คืนค่า: blockState2.
Parameters
int iint jint kBlockState blockStateboolean bl
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(0, 0, 0, blockState, true);
net.minecraft.world.level.chunk.LevelChunkSection#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LevelChunkSection.java:170 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeShort().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LevelChunkSection instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
LightChunk
- Full name:
net.minecraft.world.level.chunk.LightChunk - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LightChunk.java - Type:
interface - Modifiers:
public - Implements:
BlockGetter
net.minecraft.world.level.chunk.LightChunk#findBlockLightSources(BiConsumer<BlockPos, BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LightChunk.java:10 - Modifiers: ``
- Return:
void
คืออะไร
ค้นหา Block Light Sources
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BiConsumer<BlockPos, BlockState> biConsumer
ตัวอย่างใช้งาน
LightChunk instance = ...;
BiConsumer<BlockPos, BlockState> biConsumer = ...;
instance.findBlockLightSources(biConsumer);
net.minecraft.world.level.chunk.LightChunk#getSkyLightSources()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LightChunk.java:12 - Modifiers: ``
- Return:
ChunkSkyLightSources
คืออะไร
อ่านค่า Sky Light Sources
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LightChunkGetter
- Full name:
net.minecraft.world.level.chunk.LightChunkGetter - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LightChunkGetter.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.LightChunkGetter#getChunkForLighting(int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LightChunkGetter.java:9 - Modifiers: ``
- Return:
LightChunk
คืออะไร
อ่านค่า Chunk For Lighting
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LightChunkGetter#getLevel()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LightChunkGetter.java:15 - Modifiers: ``
- Return:
BlockGetter
คืออะไร
อ่านค่า Level
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LightChunkGetter#onLightUpdate(LightLayer,SectionPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LightChunkGetter.java:12 - Modifiers:
default - Return:
void
คืออะไร
จัดการเหตุการณ์ Light Update
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
LightLayer lightLayerSectionPos sectionPos
ตัวอย่างใช้งาน
LightChunkGetter instance = ...;
LightLayer lightLayer = ...;
SectionPos sectionPos = ...;
instance.onLightUpdate(lightLayer, sectionPos);
LinearPalette
- Full name:
net.minecraft.world.level.chunk.LinearPalette - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/LinearPalette.java - Type:
class - Modifiers:
public - Implements:
Palette<T>
net.minecraft.world.level.chunk.LinearPalette#copy(PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:115 - Modifiers:
public - Return:
Palette<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: clone(). สร้างออบเจ็กต์: LinearPalette<>. คืนค่า: new LinearPalette<>(this.registry, (T[])((Object[])this.values.clone()), paletteResize, this.bits, this.size).
Parameters
PaletteResize<T> paletteResize
ตัวอย่างใช้งาน
LinearPalette instance = ...;
PaletteResize<T> paletteResize = ...;
Palette<T> result = instance.copy(paletteResize);
net.minecraft.world.level.chunk.LinearPalette#create(int,IdMap<A>,PaletteResize<A>,List<A>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:39 - Modifiers:
public static - Return:
Palette<A>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: LinearPalette<>. คืนค่า: new LinearPalette<>(idMap, i, paletteResize, list).
Parameters
int iIdMap<A> idMapPaletteResize<A> paletteResizeList<A> list
ตัวอย่างใช้งาน
IdMap<A> idMap = ...;
PaletteResize<A> paletteResize = ...;
List<A> list = ...;
Palette<A> result = LinearPalette.create(0, idMap, paletteResize, list);
net.minecraft.world.level.chunk.LinearPalette#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:99 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getByteSize(), getSize(), getId(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LinearPalette#getSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:110 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
คืนค่า: this.size.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LinearPalette#idFor(T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:43 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ LinearPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: size. เรียกต่อ: onResize(). มีจุด return อย่างน้อย 3 จุด.
Parameters
T object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LinearPalette#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:61 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ LinearPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: test(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
LinearPalette instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.LinearPalette#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:81 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
มีการวนลูป. แก้ state: size. เรียกต่อ: readVarInt(), byIdOrThrow().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LinearPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.LinearPalette#valueFor(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:72 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ valueFor ตาม implementation ของ LinearPalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: MissingPaletteEntryException. คืนค่า: this.values[i].
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.LinearPalette#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/LinearPalette.java:90 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการวนลูป. เรียกต่อ: writeVarInt(), getId().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LinearPalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
MissingPaletteEntryException
- Full name:
net.minecraft.world.level.chunk.MissingPaletteEntryException - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/MissingPaletteEntryException.java - Type:
class - Modifiers:
public - Extends:
RuntimeException
net.minecraft.world.level.chunk.MissingPaletteEntryException#MissingPaletteEntryException(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/MissingPaletteEntryException.java:4 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MissingPaletteEntryException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป.
Parameters
int i
ตัวอย่างใช้งาน
Palette
- Full name:
net.minecraft.world.level.chunk.Palette - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/Palette.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.Palette#copy(PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:23 - Modifiers: ``
- Return:
Palette<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
PaletteResize<T> paletteResize
ตัวอย่างใช้งาน
Palette instance = ...;
PaletteResize<T> paletteResize = ...;
Palette<T> result = instance.copy(paletteResize);
net.minecraft.world.level.chunk.Palette#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:19 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.Palette#getSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:21 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.Palette#idFor(T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:9 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ Palette
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.Palette#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:11 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ Palette
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
Palette instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.Palette#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:15 - Modifiers: ``
- Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.Palette#valueFor(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:13 - Modifiers: ``
- Return:
T
คืออะไร
ดำเนินการ valueFor ตาม implementation ของ Palette
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.Palette#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/Palette.java:17 - Modifiers: ``
- Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
PalettedContainer
- Full name:
net.minecraft.world.level.chunk.PalettedContainer - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/PalettedContainer.java - Type:
class - Modifiers:
public - Implements:
PaletteResize<T>,PalettedContainerRO<T>
net.minecraft.world.level.chunk.PalettedContainer#acquire()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:35 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ acquire ตาม implementation ของ PalettedContainer
ทำงานยังไง
เรียกต่อ: checkAndLock().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#codecRO(IdMap<T>,Codec<T>,PalettedContainer.Strategy,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:48 - Modifiers:
public static - Return:
Codec<PalettedContainerRO<T>>
คืออะไร
ดำเนินการ codecRO ตาม implementation ของ PalettedContainer
ทำงานยังไง
เรียกต่อ: unpack(), map(), codec(). คืนค่า: codec(idMap, codec, strategy, object, unpacker).
Parameters
IdMap<T> idMapCodec<T> codecPalettedContainer.Strategy strategyT object
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
Codec<T> codec = ...;
PalettedContainer.Strategy strategy = ...;
T object = ...;
Codec<PalettedContainerRO<T>> result = PalettedContainer.codecRO(idMap, codec, strategy, object);
net.minecraft.world.level.chunk.PalettedContainer#codecRW(IdMap<T>,Codec<T>,PalettedContainer.Strategy,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:43 - Modifiers:
public static - Return:
Codec<PalettedContainer<T>>
คืออะไร
ดำเนินการ codecRW ตาม implementation ของ PalettedContainer
ทำงานยังไง
เรียกต่อ: codec(). คืนค่า: codec(idMap, codec, strategy, object, unpacker).
Parameters
IdMap<T> idMapCodec<T> codecPalettedContainer.Strategy strategyT object
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
Codec<T> codec = ...;
PalettedContainer.Strategy strategy = ...;
T object = ...;
Codec<PalettedContainer<T>> result = PalettedContainer.codecRW(idMap, codec, strategy, object);
net.minecraft.world.level.chunk.PalettedContainer#copy()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:274 - Modifiers:
public - Return:
PalettedContainer<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: PalettedContainer<>. คืนค่า: new PalettedContainer<>(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#count(PalettedContainer.CountConsumer<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:284 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ count ตาม implementation ของ PalettedContainer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSize(), accept(), valueFor(), getAll(), addTo(), int2IntEntrySet(), forEach(), getIntKey(). สร้างออบเจ็กต์: Int2IntOpenHashMap.
Parameters
PalettedContainer.CountConsumer<T> countConsumer
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
PalettedContainer.CountConsumer<T> countConsumer = ...;
instance.count(countConsumer);
net.minecraft.world.level.chunk.PalettedContainer#get(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:151 - Modifiers:
protected - Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: valueFor(). คืนค่า: data.palette.valueFor(data.storage.get(i)).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#get(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:146 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: getIndex(). คืนค่า: this.get(this.strategy.getIndex(i, j, k)).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#getAll(Consumer<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:156 - Modifiers:
public - Return:
void
คืออะไร
อ่านค่า All
ทำงานยังไง
เรียกต่อ: palette(), forEach(), accept(), valueFor(). สร้างออบเจ็กต์: IntArraySet.
Parameters
Consumer<T> consumer
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#getAndSet(int,int,int,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:111 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า And Set
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: acquire(), getIndex(), release(). คืนค่า: this.getAndSet(this.strategy.getIndex(i, j, k), object).
Parameters
int iint jint kT object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#getAndSetUnchecked(int,int,int,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:121 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า And Set Unchecked
ทำงานยังไง
เรียกต่อ: getAndSet(), getIndex(). คืนค่า: this.getAndSet(this.strategy.getIndex(i, j, k), object).
Parameters
int iint jint kT object
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
T object = ...;
T result = instance.getAndSetUnchecked(0, 0, 0, object);
net.minecraft.world.level.chunk.PalettedContainer#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:264 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
คืนค่า: this.data.getSerializedSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:269 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ PalettedContainer
ทำงานยังไง
คืนค่า: this.data.palette.maybeHas(predicate).
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.PalettedContainer#onResize(int,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:102 - Modifiers:
public - Return:
int
คืออะไร
จัดการเหตุการณ์ Resize
ทำงานยังไง
แก้ state: data. เรียกต่อ: createOrReuseData(), copyFrom(), idFor(). คืนค่า: data2.palette.idFor(object).
Parameters
int iT object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#pack(IdMap<T>,PalettedContainer.Strategy)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:224 - Modifiers:
public - Return:
PalettedContainerRO.PackedData<T>
คืออะไร
ดำเนินการ pack ตาม implementation ของ PalettedContainer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: acquire(), getBits(), size(), unpack(), swapPalette(), idFor(), valueFor(), calculateBitsForSerialization(). สร้างออบเจ็กต์: HashMapPalette<>, SimpleBitStorage, PalettedContainerRO.PackedData<>. คืนค่า: new PalettedContainerRO.PackedData<>(hashMapPalette.getEntries(), optional).
Parameters
IdMap<T> idMapPalettedContainer.Strategy strategy
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
IdMap<T> idMap = ...;
PalettedContainer.Strategy strategy = ...;
PalettedContainerRO.PackedData<T> result = instance.pack(idMap, strategy);
net.minecraft.world.level.chunk.PalettedContainer#PalettedContainer(IdMap<T>,PalettedContainer.Strategy,PalettedContainer.Configuration<T>,BitStorage,List<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:70 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PalettedContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registry, strategy, data. เรียกต่อ: factory(), create(), bits(). สร้างออบเจ็กต์: PalettedContainer.Data<>.
Parameters
IdMap<T> idMapPalettedContainer.Strategy strategyPalettedContainer.Configuration<T> configurationBitStorage bitStorageList<T> list
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
PalettedContainer.Strategy strategy = ...;
PalettedContainer.Configuration<T> configuration = ...;
BitStorage bitStorage = ...;
List<T> list = ...;
PalettedContainer instance = new PalettedContainer(idMap, strategy, configuration, bitStorage, list);
net.minecraft.world.level.chunk.PalettedContainer#PalettedContainer(IdMap<T>,T,PalettedContainer.Strategy)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:90 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PalettedContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: strategy, registry, data. เรียกต่อ: createOrReuseData(), idFor().
Parameters
IdMap<T> idMapT objectPalettedContainer.Strategy strategy
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
T object = ...;
PalettedContainer.Strategy strategy = ...;
PalettedContainer instance = new PalettedContainer(idMap, object, strategy);
net.minecraft.world.level.chunk.PalettedContainer#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:164 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
มีการจัดการ exception. แก้ state: data. เรียกต่อ: acquire(), readByte(), createOrReuseData(), readLongArray(), getRaw(), release().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.PalettedContainer#recreate()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:279 - Modifiers:
public - Return:
PalettedContainer<T>
คืออะไร
ดำเนินการ recreate ตาม implementation ของ PalettedContainer
ทำงานยังไง
เรียกต่อ: valueFor(). สร้างออบเจ็กต์: PalettedContainer<>. คืนค่า: new PalettedContainer<>(this.registry, this.data.palette.valueFor(0), this.strategy).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#release()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:39 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ PalettedContainer
ทำงานยังไง
เรียกต่อ: checkAndUnlock().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#set(int,int,int,T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:131 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: acquire(), getIndex(), release().
Parameters
int iint jint kT object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:178 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: acquire(), release().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
PalettedContainer instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
PalettedContainer$CountConsumer
- Full name:
net.minecraft.world.level.chunk.PalettedContainer$CountConsumer - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/PalettedContainer.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.PalettedContainer$CountConsumer#accept(T,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:305 - Modifiers: ``
- Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T objectint i
ตัวอย่างใช้งาน
PalettedContainer$Strategy
- Full name:
net.minecraft.world.level.chunk.PalettedContainer$Strategy - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/PalettedContainer.java - Type:
class - Modifiers:
public abstract static
net.minecraft.world.level.chunk.PalettedContainer$Strategy#getConfiguration(IdMap<A>,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:372 - Modifiers:
public abstract - Return:
PalettedContainer.Configuration<A>
คืออะไร
อ่านค่า Configuration
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
IdMap<A> idMapint i
ตัวอย่างใช้งาน
PalettedContainer.Strategy instance = ...;
IdMap<A> idMap = ...;
PalettedContainer.Configuration<A> result = instance.getConfiguration(idMap, 0);
net.minecraft.world.level.chunk.PalettedContainer$Strategy#getIndex(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:368 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Index
ทำงานยังไง
คืนค่า: (j << this.sizeBits | k) << this.sizeBits | i.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainer$Strategy#size()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainer.java:364 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ PalettedContainer$Strategy
ทำงานยังไง
คืนค่า: 1 << this.sizeBits * 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PalettedContainerRO
- Full name:
net.minecraft.world.level.chunk.PalettedContainerRO - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/PalettedContainerRO.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.PalettedContainerRO#copy()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:25 - Modifiers: ``
- Return:
PalettedContainer<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainerRO#count(PalettedContainer.CountConsumer<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:23 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ count ตาม implementation ของ PalettedContainerRO
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
PalettedContainer.CountConsumer<T> countConsumer
ตัวอย่างใช้งาน
PalettedContainerRO instance = ...;
PalettedContainer.CountConsumer<T> countConsumer = ...;
instance.count(countConsumer);
net.minecraft.world.level.chunk.PalettedContainerRO#get(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:13 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainerRO#getAll(Consumer<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:15 - Modifiers: ``
- Return:
void
คืออะไร
อ่านค่า All
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Consumer<T> consumer
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainerRO#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:19 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainerRO#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:21 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ PalettedContainerRO
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
PalettedContainerRO instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.PalettedContainerRO#pack(IdMap<T>,PalettedContainer.Strategy)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:29 - Modifiers: ``
- Return:
PalettedContainerRO.PackedData<T>
คืออะไร
ดำเนินการ pack ตาม implementation ของ PalettedContainerRO
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
IdMap<T> idMapPalettedContainer.Strategy strategy
ตัวอย่างใช้งาน
PalettedContainerRO instance = ...;
IdMap<T> idMap = ...;
PalettedContainer.Strategy strategy = ...;
PalettedContainerRO.PackedData<T> result = instance.pack(idMap, strategy);
net.minecraft.world.level.chunk.PalettedContainerRO#recreate()
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:27 - Modifiers: ``
- Return:
PalettedContainer<T>
คืออะไร
ดำเนินการ recreate ตาม implementation ของ PalettedContainerRO
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.PalettedContainerRO#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/PalettedContainerRO.java:17 - Modifiers: ``
- Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
PalettedContainerRO instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
ProtoChunk
- Full name:
net.minecraft.world.level.chunk.ProtoChunk - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/ProtoChunk.java - Type:
class - Modifiers:
public - Extends:
ChunkAccess
net.minecraft.world.level.chunk.ProtoChunk#addEntity(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:186 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Entity
ทำงานยังไง
เรียกต่อ: add().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#addEntity(Entity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:190 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPassenger(), save(). สร้างออบเจ็กต์: CompoundTag.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#addPackedPostProcess(ShortList,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:264 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Packed Post Process
ทำงานยังไง
เรียกต่อ: getOrCreateOffsetList(), addAll().
Parameters
ShortList shortListint i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getBelowZeroRetrogen()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:311 - Modifiers:
public - Return:
BelowZeroRetrogen
คืออะไร
อ่านค่า Below Zero Retrogen
ทำงานยังไง
คืนค่า: this.belowZeroRetrogen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getBlockEntities()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:182 - Modifiers:
public - Return:
Map<BlockPos, BlockEntity>
คืออะไร
อ่านค่า Block Entities
ทำงานยังไง
คืนค่า: this.blockEntities.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:176 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.blockEntities.get(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockEntity result = instance.getBlockEntity(blockPos);
net.minecraft.world.level.chunk.ProtoChunk#getBlockEntityNbtForSaving(BlockPos,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:273 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Block Entity Nbt For Saving
ทำงานยังไง
เรียกต่อ: getBlockEntity(), saveWithFullMetadata(), get(). คืนค่า: blockEntity != null ? blockEntity.saveWithFullMetadata(provider) : this.pendingBlockEntities.get(blockPos).
Parameters
BlockPos blockPosHolderLookup.Provider provider
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BlockPos blockPos = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getBlockEntityNbtForSaving(blockPos, provider);
net.minecraft.world.level.chunk.ProtoChunk#getBlockEntityNbts()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:269 - Modifiers:
public - Return:
Map<BlockPos, CompoundTag>
คืออะไร
อ่านค่า Block Entity Nbts
ทำงานยังไง
เรียกต่อ: unmodifiableMap(). คืนค่า: Collections.unmodifiableMap(this.pendingBlockEntities).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getBlockState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:88 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getY(), isOutsideBuildHeight(), defaultBlockState(), getSection(), getSectionIndex(), hasOnlyAir(), getX(), getZ(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);
net.minecraft.world.level.chunk.ProtoChunk#getBlockTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:73 - Modifiers:
public - Return:
TickContainerAccess<Block>
คืออะไร
อ่านค่า Block Ticks
ทำงานยังไง
คืนค่า: this.blockTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getCarvingMask()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:286 - Modifiers:
public - Return:
CarvingMask
คืออะไร
อ่านค่า Carving Mask
ทำงานยังไง
คืนค่า: this.carvingMask.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getEntities()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:213 - Modifiers:
public - Return:
List<CompoundTag>
คืออะไร
อ่านค่า Entities
ทำงานยังไง
คืนค่า: this.entities.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getFluidState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:99 - Modifiers:
public - Return:
FluidState
คืออะไร
อ่านค่า Fluid State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getY(), isOutsideBuildHeight(), defaultFluidState(), getSection(), getSectionIndex(), hasOnlyAir(), getX(), getZ(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BlockPos blockPos = ...;
FluidState result = instance.getFluidState(blockPos);
net.minecraft.world.level.chunk.ProtoChunk#getFluidTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:78 - Modifiers:
public - Return:
TickContainerAccess<Fluid>
คืออะไร
อ่านค่า Fluid Ticks
ทำงานยังไง
คืนค่า: this.fluidTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getHeightAccessorForGeneration()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:329 - Modifiers:
public - Return:
LevelHeightAccessor
คืออะไร
อ่านค่า Height Accessor For Generation
ทำงานยังไง
เรียกต่อ: isUpgrading(). คืนค่า: this.isUpgrading() ? BelowZeroRetrogen.UPGRADE_HEIGHT_ACCESSOR : this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getNoiseBiome(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:231 - Modifiers:
public - Return:
Holder<Biome>
คืออะไร
อ่านค่า Noise Biome
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getHighestGeneratedStatus(), isOrAfter(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: super.getNoiseBiome(i, j, k).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getOrCreateCarvingMask()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:291 - Modifiers:
public - Return:
CarvingMask
คืออะไร
อ่านค่า Or Create Carving Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: carvingMask. เรียกต่อ: getHeight(), getMinY(). สร้างออบเจ็กต์: CarvingMask. คืนค่า: this.carvingMask.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getPersistedStatus()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:217 - Modifiers:
public - Return:
ChunkStatus
คืออะไร
อ่านค่า Persisted Status
ทำงานยังไง
คืนค่า: this.status.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#getTicksForSerialization(long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:83 - Modifiers:
public - Return:
ChunkAccess.PackedTicks
คืออะไร
อ่านค่า Ticks For Serialization
ทำงานยังไง
เรียกต่อ: PackedTicks(), pack(). สร้างออบเจ็กต์: ChunkAccess.PackedTicks. คืนค่า: new ChunkAccess.PackedTicks(this.blockTicks.pack(l), this.fluidTicks.pack(l)).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#markPosForPostprocessing(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:257 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markPosForPostprocessing ตาม implementation ของ ProtoChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOutsideBuildHeight(), getOrCreateOffsetList(), getSectionIndex(), getY(), add(), packOffsetCoordinates().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#packOffsetCoordinates(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:240 - Modifiers:
public static - Return:
short
คืออะไร
ดำเนินการ packOffsetCoordinates ตาม implementation ของ ProtoChunk
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: (short)(l | m << 4 | n << 8).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#ProtoChunk(ChunkPos,UpgradeData,LevelChunkSection[],ProtoChunkTicks<Block>,ProtoChunkTicks<Fluid>,LevelHeightAccessor,Registry<Biome>,BlendingData)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:58 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ProtoChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: blockTicks, fluidTicks.
Parameters
ChunkPos chunkPosUpgradeData upgradeDataLevelChunkSection[] levelChunkSectionsProtoChunkTicks<Block> protoChunkTicksProtoChunkTicks<Fluid> protoChunkTicks2LevelHeightAccessor levelHeightAccessorRegistry<Biome> registryBlendingData blendingData
ตัวอย่างใช้งาน
ChunkPos chunkPos = ...;
UpgradeData upgradeData = ...;
LevelChunkSection[] levelChunkSections = ...;
ProtoChunkTicks<Block> protoChunkTicks = ...;
ProtoChunkTicks<Fluid> protoChunkTicks2 = ...;
LevelHeightAccessor levelHeightAccessor = ...;
Registry<Biome> registry = ...;
BlendingData blendingData = ...;
ProtoChunk instance = new ProtoChunk(chunkPos, upgradeData, levelChunkSections, protoChunkTicks, protoChunkTicks2, levelHeightAccessor, registry, blendingData);
net.minecraft.world.level.chunk.ProtoChunk#ProtoChunk(ChunkPos,UpgradeData,LevelHeightAccessor,Registry<Biome>,BlendingData)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ProtoChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: ProtoChunkTicks<>.
Parameters
ChunkPos chunkPosUpgradeData upgradeDataLevelHeightAccessor levelHeightAccessorRegistry<Biome> registryBlendingData blendingData
ตัวอย่างใช้งาน
ChunkPos chunkPos = ...;
UpgradeData upgradeData = ...;
LevelHeightAccessor levelHeightAccessor = ...;
Registry<Biome> registry = ...;
BlendingData blendingData = ...;
ProtoChunk instance = new ProtoChunk(chunkPos, upgradeData, levelHeightAccessor, registry, blendingData);
net.minecraft.world.level.chunk.ProtoChunk#removeBlockEntity(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:280 - Modifiers:
public - Return:
void
คืออะไร
ลบ Block Entity
ทำงานยังไง
เรียกต่อ: remove().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#setBelowZeroRetrogen(BelowZeroRetrogen)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:307 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Below Zero Retrogen
ทำงานยังไง
แก้ state: belowZeroRetrogen.
Parameters
BelowZeroRetrogen belowZeroRetrogen
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BelowZeroRetrogen belowZeroRetrogen = ...;
instance.setBelowZeroRetrogen(belowZeroRetrogen);
net.minecraft.world.level.chunk.ProtoChunk#setBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:170 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block Entity
ทำงานยังไง
เรียกต่อ: remove(), getBlockPos(), put().
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#setBlockState(BlockPos,BlockState,boolean)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:112 - Modifiers:
public - Return:
BlockState
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getX(), getY(), getZ(), isOutsideBuildHeight(), defaultBlockState(), getSectionIndex(), getSection(), hasOnlyAir(). มีจุด return อย่างน้อย 3 จุด.
Parameters
BlockPos blockPosBlockState blockStateboolean bl
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockState result = instance.setBlockState(blockPos, blockState, true);
net.minecraft.world.level.chunk.ProtoChunk#setCarvingMask(CarvingMask)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:299 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Carving Mask
ทำงานยังไง
แก้ state: carvingMask.
Parameters
CarvingMask carvingMask
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#setLightEngine(LevelLightEngine)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:303 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Engine
ทำงานยังไง
แก้ state: lightEngine.
Parameters
LevelLightEngine levelLightEngine
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
LevelLightEngine levelLightEngine = ...;
instance.setLightEngine(levelLightEngine);
net.minecraft.world.level.chunk.ProtoChunk#setPersistedStatus(ChunkStatus)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:222 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Persisted Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: status. เรียกต่อ: isOrAfter(), targetStatus(), setBelowZeroRetrogen(), markUnsaved().
Parameters
ChunkStatus chunkStatus
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#setStartForStructure(Structure,StructureStart)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:199 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Start For Structure
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBelowZeroRetrogen(), isValid(), getBoundingBox(), getHeightAccessorForGeneration(), minY(), getMinY(), maxY(), getMaxY().
Parameters
Structure structureStructureStart structureStart
ตัวอย่างใช้งาน
ProtoChunk instance = ...;
Structure structure = ...;
StructureStart structureStart = ...;
instance.setStartForStructure(structure, structureStart);
net.minecraft.world.level.chunk.ProtoChunk#unpackBlockTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:321 - Modifiers:
public - Return:
LevelChunkTicks<Block>
คืออะไร
ดำเนินการ unpackBlockTicks ตาม implementation ของ ProtoChunk
ทำงานยังไง
เรียกต่อ: unpackTicks(). คืนค่า: unpackTicks(this.blockTicks).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#unpackFluidTicks()
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:325 - Modifiers:
public - Return:
LevelChunkTicks<Fluid>
คืออะไร
ดำเนินการ unpackFluidTicks ตาม implementation ของ ProtoChunk
ทำงานยังไง
เรียกต่อ: unpackTicks(). คืนค่า: unpackTicks(this.fluidTicks).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.ProtoChunk#unpackOffsetCoordinates(short,int,ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/ProtoChunk.java:250 - Modifiers:
public static - Return:
BlockPos
คืออะไร
ดำเนินการ unpackOffsetCoordinates ตาม implementation ของ ProtoChunk
ทำงานยังไง
เรียกต่อ: sectionToBlockCoord(). สร้างออบเจ็กต์: BlockPos. คืนค่า: new BlockPos(j, k, l).
Parameters
short sint iChunkPos chunkPos
ตัวอย่างใช้งาน
SingleValuePalette
- Full name:
net.minecraft.world.level.chunk.SingleValuePalette - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/SingleValuePalette.java - Type:
class - Modifiers:
public - Implements:
Palette<T>
net.minecraft.world.level.chunk.SingleValuePalette#copy(PaletteResize<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:86 - Modifiers:
public - Return:
Palette<T>
คืออะไร
คัดลอก copy
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: value. สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.
Parameters
PaletteResize<T> paletteResize
ตัวอย่างใช้งาน
SingleValuePalette instance = ...;
PaletteResize<T> paletteResize = ...;
Palette<T> result = instance.copy(paletteResize);
net.minecraft.world.level.chunk.SingleValuePalette#create(int,IdMap<A>,PaletteResize<A>,List<A>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:26 - Modifiers:
public static - Return:
Palette<A>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: SingleValuePalette<>. คืนค่า: new SingleValuePalette<>(idMap, paletteResize, list).
Parameters
int iIdMap<A> idMapPaletteResize<A> paletteResizeList<A> list
ตัวอย่างใช้งาน
IdMap<A> idMap = ...;
PaletteResize<A> paletteResize = ...;
List<A> list = ...;
Palette<A> result = SingleValuePalette.create(0, idMap, paletteResize, list);
net.minecraft.world.level.chunk.SingleValuePalette#getSerializedSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:72 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Serialized Size
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: value. เรียกต่อ: getByteSize(), getId(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: VarInt.getByteSize(this.registry.getId(this.value)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.SingleValuePalette#getSize()
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:81 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.SingleValuePalette#idFor(T)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:30 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ SingleValuePalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: value. เรียกต่อ: onResize(). มีจุด return อย่างน้อย 2 จุด.
Parameters
T object
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.SingleValuePalette#maybeHas(Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:40 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ maybeHas ตาม implementation ของ SingleValuePalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: value. เรียกต่อ: test(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: predicate.test(this.value).
Parameters
Predicate<T> predicate
ตัวอย่างใช้งาน
SingleValuePalette instance = ...;
Predicate<T> predicate = ...;
boolean result = instance.maybeHas(predicate);
net.minecraft.world.level.chunk.SingleValuePalette#read(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:58 - Modifiers:
public - Return:
void
คืออะไร
อ่าน read
ทำงานยังไง
แก้ state: value. เรียกต่อ: byIdOrThrow(), readVarInt().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
SingleValuePalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.read(friendlyByteBuf);
net.minecraft.world.level.chunk.SingleValuePalette#SingleValuePalette(IdMap<T>,PaletteResize<T>,List<T>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SingleValuePalette ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: registry, resizeHandler, value. เรียกต่อ: size(), isTrue(), get().
Parameters
IdMap<T> idMapPaletteResize<T> paletteResizeList<T> list
ตัวอย่างใช้งาน
IdMap<T> idMap = ...;
PaletteResize<T> paletteResize = ...;
List<T> list = ...;
SingleValuePalette instance = new SingleValuePalette(idMap, paletteResize, list);
net.minecraft.world.level.chunk.SingleValuePalette#valueFor(int)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:49 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ valueFor ตาม implementation ของ SingleValuePalette
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.value.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.SingleValuePalette#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/world/level/chunk/SingleValuePalette.java:63 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: value. เรียกต่อ: writeVarInt(), getId(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
SingleValuePalette instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
StructureAccess
- Full name:
net.minecraft.world.level.chunk.StructureAccess - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/StructureAccess.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.StructureAccess#addReferenceForStructure(Structure,long)
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:17 - Modifiers: ``
- Return:
void
คืออะไร
เพิ่ม Reference For Structure
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Structure structurelong l
ตัวอย่างใช้งาน
StructureAccess instance = ...;
Structure structure = ...;
instance.addReferenceForStructure(structure, 0L);
net.minecraft.world.level.chunk.StructureAccess#getAllReferences()
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:19 - Modifiers: ``
- Return:
Map<Structure, LongSet>
คืออะไร
อ่านค่า All References
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.StructureAccess#getReferencesForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:15 - Modifiers: ``
- Return:
LongSet
คืออะไร
อ่านค่า References For Structure
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Structure structure
ตัวอย่างใช้งาน
StructureAccess instance = ...;
Structure structure = ...;
LongSet result = instance.getReferencesForStructure(structure);
net.minecraft.world.level.chunk.StructureAccess#getStartForStructure(Structure)
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:10 - Modifiers: ``
- Return:
StructureStart
คืออะไร
อ่านค่า Start For Structure
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Structure structure
ตัวอย่างใช้งาน
StructureAccess instance = ...;
Structure structure = ...;
StructureStart result = instance.getStartForStructure(structure);
net.minecraft.world.level.chunk.StructureAccess#setAllReferences(Map<Structure, LongSet>)
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:21 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า All References
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Map<Structure, LongSet> map
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.StructureAccess#setStartForStructure(Structure,StructureStart)
- Origin:
common - Source:
net/minecraft/world/level/chunk/StructureAccess.java:13 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Start For Structure
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Structure structureStructureStart structureStart
ตัวอย่างใช้งาน
StructureAccess instance = ...;
Structure structure = ...;
StructureStart structureStart = ...;
instance.setStartForStructure(structure, structureStart);
UpgradeData
- Full name:
net.minecraft.world.level.chunk.UpgradeData - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/UpgradeData.java - Type:
class - Modifiers:
public
net.minecraft.world.level.chunk.UpgradeData#copy()
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:265 - Modifiers:
public - Return:
UpgradeData
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: UpgradeData. คืนค่า: this == EMPTY ? EMPTY : new UpgradeData(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.UpgradeData#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:218 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.UpgradeData#upgrade(LevelChunk)
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:116 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ upgrade ตาม implementation ของ UpgradeData
ทำงานยังไง
มีการวนลูป. เรียกต่อ: upgradeInside(), upgradeSides(), getLevel(), forEach(), type(), getBlockState(), pos(), getBlock().
Parameters
LevelChunk levelChunk
ตัวอย่างใช้งาน
net.minecraft.world.level.chunk.UpgradeData#UpgradeData(CompoundTag,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:61 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ UpgradeData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: contains(), getCompound(), valueOf(), getIntArray(), getInt(), values(), ordinal(), add().
Parameters
CompoundTag compoundTagLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
LevelHeightAccessor levelHeightAccessor = ...;
UpgradeData instance = new UpgradeData(compoundTag, levelHeightAccessor);
net.minecraft.world.level.chunk.UpgradeData#write()
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:228 - Modifiers:
public - Return:
CompoundTag
คืออะไร
เขียน write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: valueOf(), putIntArray(), isEmpty(), put(), ordinal(), putByte(), forEach(), add(). สร้างออบเจ็กต์: CompoundTag, ListTag. คืนค่า: compoundTag.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
UpgradeData$BlockFixer
- Full name:
net.minecraft.world.level.chunk.UpgradeData$BlockFixer - Package:
net.minecraft.world.level.chunk - Source:
common—net/minecraft/world/level/chunk/UpgradeData.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.chunk.UpgradeData$BlockFixer#processChunk(LevelAccessor)
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:272 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ processChunk ตาม implementation ของ UpgradeData$BlockFixer
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
LevelAccessor levelAccessor
ตัวอย่างใช้งาน
UpgradeData.BlockFixer instance = ...;
LevelAccessor levelAccessor = ...;
instance.processChunk(levelAccessor);
net.minecraft.world.level.chunk.UpgradeData$BlockFixer#updateShape(BlockState,Direction,BlockState,LevelAccessor,BlockPos,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/chunk/UpgradeData.java:270 - Modifiers: ``
- Return:
BlockState
คืออะไร
อัปเดต Shape
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BlockState blockStateDirection directionBlockState blockState2LevelAccessor levelAccessorBlockPos blockPosBlockPos blockPos2
ตัวอย่างใช้งาน
UpgradeData.BlockFixer instance = ...;
BlockState blockState = ...;
Direction direction = ...;
BlockState blockState2 = ...;
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
BlockState result = instance.updateShape(blockState, direction, blockState2, levelAccessor, blockPos, blockPos2);