Package net.minecraft.world.level.levelgen
Part 1/1
Aquifer
- Full name:
net.minecraft.world.level.levelgen.Aquifer - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Aquifer.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.Aquifer#computeSubstance(DensityFunction.FunctionContext,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Aquifer.java:44 - Modifiers: ``
- Return:
BlockState
คืออะไร
คำนวณ Substance
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DensityFunction.FunctionContext functionContextdouble d
ตัวอย่างใช้งาน
Aquifer instance = ...;
DensityFunction.FunctionContext functionContext = ...;
BlockState result = instance.computeSubstance(functionContext, 0.0D);
net.minecraft.world.level.levelgen.Aquifer#create(NoiseChunk,ChunkPos,NoiseRouter,PositionalRandomFactory,int,int,Aquifer.FluidPicker)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Aquifer.java:17 - Modifiers:
static - Return:
Aquifer
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: NoiseBasedAquifer(). สร้างออบเจ็กต์: Aquifer.NoiseBasedAquifer. คืนค่า: new Aquifer.NoiseBasedAquifer(noiseChunk, chunkPos, noiseRouter, positionalRandomFactory, i, j, fluidPicker).
Parameters
NoiseChunk noiseChunkChunkPos chunkPosNoiseRouter noiseRouterPositionalRandomFactory positionalRandomFactoryint iint jAquifer.FluidPicker fluidPicker
ตัวอย่างใช้งาน
NoiseChunk noiseChunk = ...;
ChunkPos chunkPos = ...;
NoiseRouter noiseRouter = ...;
PositionalRandomFactory positionalRandomFactory = ...;
Aquifer.FluidPicker fluidPicker = ...;
Aquifer result = Aquifer.create(noiseChunk, chunkPos, noiseRouter, positionalRandomFactory, 0, 0, fluidPicker);
net.minecraft.world.level.levelgen.Aquifer#createDisabled(Aquifer.FluidPicker)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Aquifer.java:29 - Modifiers:
static - Return:
Aquifer
คืออะไร
สร้าง Disabled
ทำงานยังไง
เรียกต่อ: computeSubstance(), computeFluid(), blockX(), blockY(), blockZ(), at(), shouldScheduleFluidUpdate(). สร้างออบเจ็กต์: Aquifer. มีจุด return อย่างน้อย 2 จุด.
Parameters
Aquifer.FluidPicker fluidPicker
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Aquifer#shouldScheduleFluidUpdate()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Aquifer.java:47 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าควร Schedule Fluid Update
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Beardifier
- Full name:
net.minecraft.world.level.levelgen.Beardifier - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Beardifier.java - Type:
class - Modifiers:
public - Implements:
DensityFunctions.BeardifierOrMarker
net.minecraft.world.level.levelgen.Beardifier#Beardifier(ObjectListIterator<Beardifier.Rigid>,ObjectListIterator<JigsawJunction>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Beardifier.java:65 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Beardifier ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: pieceIterator, junctionIterator.
Parameters
ObjectListIterator<Beardifier.Rigid> objectListIteratorObjectListIterator<JigsawJunction> objectListIterator2
ตัวอย่างใช้งาน
ObjectListIterator<Beardifier.Rigid> objectListIterator = ...;
ObjectListIterator<JigsawJunction> objectListIterator2 = ...;
Beardifier instance = new Beardifier(objectListIterator, objectListIterator2);
net.minecraft.world.level.levelgen.Beardifier#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Beardifier.java:71 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: blockX(), blockY(), blockZ(), hasNext(), next(), box(), groundLevelDelta(), max(). คืนค่า: d.
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
Beardifier instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.Beardifier#forStructuresInChunk(StructureManager,ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Beardifier.java:33 - Modifiers:
public static - Return:
Beardifier
คืออะไร
ดำเนินการ forStructuresInChunk ตาม implementation ของ Beardifier
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMinBlockX(), getMinBlockZ(), startsForStructure(), terrainAdaptation(), forEach(), getStructure(), getPieces(), isCloseToChunk(). สร้างออบเจ็กต์: ObjectArrayList<>, Beardifier.Rigid, Beardifier. คืนค่า: new Beardifier(objectList.iterator(), objectList2.iterator()).
Parameters
StructureManager structureManagerChunkPos chunkPos
ตัวอย่างใช้งาน
StructureManager structureManager = ...;
ChunkPos chunkPos = ...;
Beardifier result = Beardifier.forStructuresInChunk(structureManager, chunkPos);
net.minecraft.world.level.levelgen.Beardifier#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Beardifier.java:121 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ Beardifier
ทำงานยังไง
คืนค่า: Double.POSITIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Beardifier#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Beardifier.java:116 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ Beardifier
ทำงานยังไง
คืนค่า: Double.NEGATIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BelowZeroRetrogen
- Full name:
net.minecraft.world.level.levelgen.BelowZeroRetrogen - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/BelowZeroRetrogen.java - Type:
class - Modifiers:
public final
net.minecraft.world.level.levelgen.BelowZeroRetrogen#applyBedrockMask(ProtoChunk)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:80 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Bedrock Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getHeightAccessorForGeneration(), getMinY(), getMaxY(), hasBedrockHole(), betweenClosed(), forEach(), setBlockState(), defaultBlockState().
Parameters
ProtoChunk protoChunk
ตัวอย่างใช้งาน
BelowZeroRetrogen instance = ...;
ProtoChunk protoChunk = ...;
instance.applyBedrockMask(protoChunk);
net.minecraft.world.level.levelgen.BelowZeroRetrogen#getBiomeResolver(BiomeResolver,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:106 - Modifiers:
public static - Return:
BiomeResolver
คืออะไร
อ่านค่า Biome Resolver
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isUpgrading(), getNoiseBiome(), is(). มีจุด return อย่างน้อย 3 จุด.
Parameters
BiomeResolver biomeResolverChunkAccess chunkAccess
ตัวอย่างใช้งาน
BiomeResolver biomeResolver = ...;
ChunkAccess chunkAccess = ...;
BiomeResolver result = BelowZeroRetrogen.getBiomeResolver(biomeResolver, chunkAccess);
net.minecraft.world.level.levelgen.BelowZeroRetrogen#hasBedrockHole(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:102 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Bedrock Hole
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.missingBedrock.get((j & 15) * 16 + (i & 15)).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BelowZeroRetrogen#hasBedrockHoles()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:98 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Bedrock Holes
ทำงานยังไง
เรียกต่อ: isEmpty(). คืนค่า: !this.missingBedrock.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BelowZeroRetrogen#read(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:65 - Modifiers:
public static - Return:
BelowZeroRetrogen
คืออะไร
อ่าน read
ทำงานยังไง
เรียกต่อ: byName(), getString(), of(), valueOf(), getLongArray(). สร้างออบเจ็กต์: BelowZeroRetrogen. คืนค่า: chunkStatus == ChunkStatus.EMPTY ? null : new BelowZeroRetrogen(chunkStatus, Optional.of(BitSet.valueOf(compoundTag.getLongArray("missing_bedrock")))).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BelowZeroRetrogen#replaceOldBedrock(ProtoChunk)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:71 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ replaceOldBedrock ตาม implementation ของ BelowZeroRetrogen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: betweenClosed(), forEach(), getBlockState(), is(), setBlockState(), defaultBlockState().
Parameters
ProtoChunk protoChunk
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BelowZeroRetrogen#targetStatus()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BelowZeroRetrogen.java:94 - Modifiers:
public - Return:
ChunkStatus
คืออะไร
ดำเนินการ targetStatus ตาม implementation ของ BelowZeroRetrogen
ทำงานยังไง
คืนค่า: this.targetStatus.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BitRandomSource
- Full name:
net.minecraft.world.level.levelgen.BitRandomSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/BitRandomSource.java - Type:
interface - Modifiers:
public - Implements:
RandomSource
net.minecraft.world.level.levelgen.BitRandomSource#next(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:9 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ next ตาม implementation ของ BitRandomSource
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextBoolean()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:44 - Modifiers:
default - Return:
boolean
คืออะไร
ดำเนินการ nextBoolean ตาม implementation ของ BitRandomSource
ทำงานยังไง
เรียกต่อ: next(). คืนค่า: this.next(1) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextDouble()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:54 - Modifiers:
default - Return:
double
คืออะไร
ดำเนินการ nextDouble ตาม implementation ของ BitRandomSource
ทำงานยังไง
เรียกต่อ: next(). คืนค่า: l * 1.110223E-16F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextFloat()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:49 - Modifiers:
default - Return:
float
คืออะไร
ดำเนินการ nextFloat ตาม implementation ของ BitRandomSource
ทำงานยังไง
เรียกต่อ: next(). คืนค่า: this.next(24) * 5.9604645E-8F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextInt()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:11 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ nextInt ตาม implementation ของ BitRandomSource
ทำงานยังไง
เรียกต่อ: next(). คืนค่า: this.next(32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextInt(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:16 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ nextInt ตาม implementation ของ BitRandomSource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: next(). สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.BitRandomSource#nextLong()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/BitRandomSource.java:36 - Modifiers:
default - Return:
long
คืออะไร
ดำเนินการ nextLong ตาม implementation ของ BitRandomSource
ทำงานยังไง
เรียกต่อ: next(). คืนค่า: l + j.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Column
- Full name:
net.minecraft.world.level.levelgen.Column - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Column.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.levelgen.Column#above(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:28 - Modifiers:
public static - Return:
Column
คืออะไร
ดำเนินการ above ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Ray(). สร้างออบเจ็กต์: Column.Ray. คืนค่า: new Column.Ray(i, true).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#around(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:12 - Modifiers:
public static - Return:
Column.Range
คืออะไร
ดำเนินการ around ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Range(). สร้างออบเจ็กต์: Column.Range. คืนค่า: new Column.Range(i - 1, j + 1).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#below(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:20 - Modifiers:
public static - Return:
Column
คืออะไร
ดำเนินการ below ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Ray(). สร้างออบเจ็กต์: Column.Ray. คืนค่า: new Column.Ray(i, false).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#create(OptionalInt,OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:40 - Modifiers:
public static - Return:
Column
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPresent(), inside(), getAsInt(), above(), below(), line(). มีจุด return อย่างน้อย 3 จุด.
Parameters
OptionalInt optionalIntOptionalInt optionalInt2
ตัวอย่างใช้งาน
OptionalInt optionalInt = ...;
OptionalInt optionalInt2 = ...;
Column result = Column.create(optionalInt, optionalInt2);
net.minecraft.world.level.levelgen.Column#fromHighest(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:24 - Modifiers:
public static - Return:
Column
คืออะไร
ดำเนินการ fromHighest ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Ray(). สร้างออบเจ็กต์: Column.Ray. คืนค่า: new Column.Ray(i + 1, false).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#fromLowest(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:32 - Modifiers:
public static - Return:
Column
คืออะไร
ดำเนินการ fromLowest ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Ray(). สร้างออบเจ็กต์: Column.Ray. คืนค่า: new Column.Ray(i - 1, true).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#getCeiling()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:50 - Modifiers:
public abstract - Return:
OptionalInt
คืออะไร
อ่านค่า Ceiling
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#getFloor()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:52 - Modifiers:
public abstract - Return:
OptionalInt
คืออะไร
อ่านค่า Floor
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:54 - Modifiers:
public abstract - Return:
OptionalInt
คืออะไร
อ่านค่า Height
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#inside(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:16 - Modifiers:
public static - Return:
Column.Range
คืออะไร
ดำเนินการ inside ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: Range(). สร้างออบเจ็กต์: Column.Range. คืนค่า: new Column.Range(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#line()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:36 - Modifiers:
public static - Return:
Column
คืออะไร
ดำเนินการ line ตาม implementation ของ Column
ทำงานยังไง
คืนค่า: Column.Line.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column#scan(LevelSimulatedReader,BlockPos,int,Predicate<BlockState>,Predicate<BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:64 - Modifiers:
public static - Return:
Optional<Column>
คืออะไร
ดำเนินการ scan ตาม implementation ของ Column
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: mutable(), isStateAtPosition(), empty(), getY(), scanDirection(), of(), create(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelSimulatedReader levelSimulatedReaderBlockPos blockPosint iPredicate<BlockState> predicatePredicate<BlockState> predicate2
ตัวอย่างใช้งาน
LevelSimulatedReader levelSimulatedReader = ...;
BlockPos blockPos = ...;
Predicate<BlockState> predicate = ...;
Predicate<BlockState> predicate2 = ...;
Optional<Column> result = Column.scan(levelSimulatedReader, blockPos, 0, predicate, predicate2);
net.minecraft.world.level.levelgen.Column#withCeiling(OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:60 - Modifiers:
public - Return:
Column
คืออะไร
ดำเนินการ withCeiling ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: create(), getFloor(). คืนค่า: create(this.getFloor(), optionalInt).
Parameters
OptionalInt optionalInt
ตัวอย่างใช้งาน
Column instance = ...;
OptionalInt optionalInt = ...;
Column result = instance.withCeiling(optionalInt);
net.minecraft.world.level.levelgen.Column#withFloor(OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:56 - Modifiers:
public - Return:
Column
คืออะไร
ดำเนินการ withFloor ตาม implementation ของ Column
ทำงานยังไง
เรียกต่อ: create(), getCeiling(). คืนค่า: create(optionalInt, this.getCeiling()).
Parameters
OptionalInt optionalInt
ตัวอย่างใช้งาน
Column instance = ...;
OptionalInt optionalInt = ...;
Column result = instance.withFloor(optionalInt);
Column$Line
- Full name:
net.minecraft.world.level.levelgen.Column$Line - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Column.java - Type:
class - Modifiers:
public static final - Extends:
Column
net.minecraft.world.level.levelgen.Column$Line#getCeiling()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:102 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Ceiling
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: OptionalInt.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Line#getFloor()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:107 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Floor
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: OptionalInt.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Line#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:112 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: OptionalInt.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Line#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:117 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Column$Line
ทำงานยังไง
เรียกต่อ: C(). คืนค่า: "C(-)".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Column$Range
- Full name:
net.minecraft.world.level.levelgen.Column$Range - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Column.java - Type:
class - Modifiers:
public static final - Extends:
Column
net.minecraft.world.level.levelgen.Column$Range#ceiling()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:150 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ ceiling ตาม implementation ของ Column$Range
ทำงานยังไง
คืนค่า: this.ceiling.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#floor()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:154 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ floor ตาม implementation ของ Column$Range
ทำงานยังไง
คืนค่า: this.floor.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#getCeiling()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:135 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Ceiling
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: OptionalInt.of(this.ceiling).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#getFloor()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:140 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Floor
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: OptionalInt.of(this.floor).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:145 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: of(), height(). คืนค่า: OptionalInt.of(this.height()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#height()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:158 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ Column$Range
ทำงานยังไง
คืนค่า: this.ceiling - this.floor - 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#Range(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:127 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Column.Range ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: floor, ceiling. เรียกต่อ: height(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Range#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:162 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Column$Range
ทำงานยังไง
เรียกต่อ: C(). คืนค่า: "C(" + this.ceiling + "-" + this.floor + ")".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Column$Ray
- Full name:
net.minecraft.world.level.levelgen.Column$Ray - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Column.java - Type:
class - Modifiers:
public static final - Extends:
Column
net.minecraft.world.level.levelgen.Column$Ray#getCeiling()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:177 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Ceiling
ทำงานยังไง
เรียกต่อ: empty(), of(). คืนค่า: this.pointingUp ? OptionalInt.empty() : OptionalInt.of(this.edge).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Ray#getFloor()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:182 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Floor
ทำงานยังไง
เรียกต่อ: of(), empty(). คืนค่า: this.pointingUp ? OptionalInt.of(this.edge) : OptionalInt.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Ray#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:187 - Modifiers:
public - Return:
OptionalInt
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: OptionalInt.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Ray#Ray(int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:172 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Column.Ray ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: edge, pointingUp.
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Column$Ray#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Column.java:192 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Column$Ray
ทำงานยังไง
เรียกต่อ: C(). คืนค่า: this.pointingUp ? "C(" + this.edge + "-)" : "C(-" + this.edge + ")".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DebugLevelSource
- Full name:
net.minecraft.world.level.levelgen.DebugLevelSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DebugLevelSource.java - Type:
class - Modifiers:
public - Extends:
ChunkGenerator
net.minecraft.world.level.levelgen.DebugLevelSource#addDebugScreenInfo(List<String>,RandomState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:92 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Debug Screen Info
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
List<String> listRandomState randomStateBlockPos blockPos
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
List<String> list = ...;
RandomState randomState = ...;
BlockPos blockPos = ...;
instance.addDebugScreenInfo(list, randomState, blockPos);
net.minecraft.world.level.levelgen.DebugLevelSource#applyBiomeDecoration(WorldGenLevel,ChunkAccess,StructureManager)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:59 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Biome Decoration
ทำงานยังไง
มีการวนลูป. เรียกต่อ: MutableBlockPos(), getPos(), sectionToBlockCoord(), setBlock(), set(), getBlockStateFor(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos.
Parameters
WorldGenLevel worldGenLevelChunkAccess chunkAccessStructureManager structureManager
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
WorldGenLevel worldGenLevel = ...;
ChunkAccess chunkAccess = ...;
StructureManager structureManager = ...;
instance.applyBiomeDecoration(worldGenLevel, chunkAccess, structureManager);
net.minecraft.world.level.levelgen.DebugLevelSource#applyCarvers(WorldGenRegion,long,RandomState,BiomeManager,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:112 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Carvers
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegionlong lRandomState randomStateBiomeManager biomeManagerStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
RandomState randomState = ...;
BiomeManager biomeManager = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
instance.applyCarvers(worldGenRegion, 0L, randomState, biomeManager, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.DebugLevelSource#buildSurface(WorldGenRegion,StructureManager,RandomState,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:55 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegionStructureManager structureManagerRandomState randomStateChunkAccess chunkAccess
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
StructureManager structureManager = ...;
RandomState randomState = ...;
ChunkAccess chunkAccess = ...;
instance.buildSurface(worldGenRegion, structureManager, randomState, chunkAccess);
net.minecraft.world.level.levelgen.DebugLevelSource#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:50 - Modifiers:
protected - Return:
MapCodec<? extends ChunkGenerator>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DebugLevelSource
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DebugLevelSource#DebugLevelSource(Holder.Reference<Biome>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DebugLevelSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: FixedBiomeSource.
Parameters
Holder.Reference<Biome> reference
ตัวอย่างใช้งาน
Holder.Reference<Biome> reference = ...;
DebugLevelSource instance = new DebugLevelSource(reference);
net.minecraft.world.level.levelgen.DebugLevelSource#fillFromNoise(Blender,RandomState,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:77 - Modifiers:
public - Return:
CompletableFuture<ChunkAccess>
คืออะไร
ดำเนินการ fillFromNoise ตาม implementation ของ DebugLevelSource
ทำงานยังไง
เรียกต่อ: completedFuture(). คืนค่า: CompletableFuture.completedFuture(chunkAccess).
Parameters
Blender blenderRandomState randomStateStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
Blender blender = ...;
RandomState randomState = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.fillFromNoise(blender, randomState, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.DebugLevelSource#getBaseColumn(int,int,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:87 - Modifiers:
public - Return:
NoiseColumn
คืออะไร
อ่านค่า Base Column
ทำงานยังไง
สร้างออบเจ็กต์: NoiseColumn. คืนค่า: new NoiseColumn(0, new BlockState[0]).
Parameters
int iint jLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
NoiseColumn result = instance.getBaseColumn(0, 0, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.DebugLevelSource#getBaseHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:82 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Base Height
ทำงานยังไง
คืนค่า: 0.
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getBaseHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.DebugLevelSource#getBlockStateFor(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:96 - Modifiers:
public static - Return:
BlockState
คืออะไร
อ่านค่า Block State For
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: abs(), size(), get(). คืนค่า: blockState.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DebugLevelSource#getGenDepth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:127 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gen Depth
ทำงานยังไง
คืนค่า: 384.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DebugLevelSource#getMinY()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:122 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Y
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DebugLevelSource#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:132 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
คืนค่า: 63.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DebugLevelSource#spawnOriginalMobs(WorldGenRegion)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DebugLevelSource.java:118 - Modifiers:
public - Return:
void
คืออะไร
สร้าง entity ในโลก Original Mobs
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegion
ตัวอย่างใช้งาน
DebugLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
instance.spawnOriginalMobs(worldGenRegion);
DensityFunction
- Full name:
net.minecraft.world.level.levelgen.DensityFunction - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunction.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.DensityFunction#abs()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:36 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ abs ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.ABS).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#clamp(double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:32 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ clamp ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: Clamp(). สร้างออบเจ็กต์: DensityFunctions.Clamp. คืนค่า: new DensityFunctions.Clamp(this, d, e).
Parameters
double ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:30 - Modifiers: ``
- Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunction instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunction#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:20 - Modifiers: ``
- Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunction instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunction#cube()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:44 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ cube ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.CUBE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:22 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunction instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunction#halfNegative()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:48 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ halfNegative ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.HALF_NEGATIVE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:24 - Modifiers: ``
- Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunction instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunction#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:28 - Modifiers: ``
- Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:26 - Modifiers: ``
- Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#quarterNegative()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:52 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ quarterNegative ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.QUARTER_NEGATIVE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#square()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:40 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ square ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.SQUARE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunction#squeeze()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunction.java:56 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ squeeze ตาม implementation ของ DensityFunction
ทำงานยังไง
เรียกต่อ: map(). คืนค่า: DensityFunctions.map(this, DensityFunctions.Mapped.Type.SQUEEZE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
class - Modifiers:
public final
net.minecraft.world.level.levelgen.DensityFunctions#add(DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:193 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: DensityFunctions.TwoArgumentSimpleFunction.create(DensityFunctions.TwoArgumentSimpleFunction.Type.ADD, densityFunction, densityFunction2).
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction result = DensityFunctions.add(densityFunction, densityFunction2);
net.minecraft.world.level.levelgen.DensityFunctions#blendAlpha()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:235 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ blendAlpha ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: DensityFunctions.BlendAlpha.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions#blendDensity(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:179 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ blendDensity ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: BlendDensity(). สร้างออบเจ็กต์: DensityFunctions.BlendDensity. คืนค่า: new DensityFunctions.BlendDensity(densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.blendDensity(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#blendOffset()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:239 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ blendOffset ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: DensityFunctions.BlendOffset.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions#bootstrap(Registry<MapCodec<? extends DensityFunction>>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:42 - Modifiers:
public static - Return:
MapCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ DensityFunctions
ทำงานยังไง
มีการวนลูป. เรียกต่อ: register(), values(), getSerializedName(). คืนค่า: register(registry, "y_clamped_gradient", DensityFunctions.YClampedGradient.CODEC).
Parameters
Registry<MapCodec<? extends DensityFunction>> registry
ตัวอย่างใช้งาน
Registry<MapCodec<? extends DensityFunction>> registry = ...;
MapCodec<? extends DensityFunction> result = DensityFunctions.bootstrap(registry);
net.minecraft.world.level.levelgen.DensityFunctions#cache2d(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:119 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ cache2d ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Marker(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: new DensityFunctions.Marker(DensityFunctions.Marker.Type.Cache2D, densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.cache2d(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#cacheAllInCell(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:127 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ cacheAllInCell ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Marker(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: new DensityFunctions.Marker(DensityFunctions.Marker.Type.CacheAllInCell, densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.cacheAllInCell(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#cacheOnce(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:123 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ cacheOnce ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Marker(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: new DensityFunctions.Marker(DensityFunctions.Marker.Type.CacheOnce, densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.cacheOnce(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#constant(double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:217 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ constant ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Constant(). สร้างออบเจ็กต์: DensityFunctions.Constant. คืนค่า: new DensityFunctions.Constant(d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions#endIslands(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:183 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ endIslands ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: EndIslandDensityFunction(). สร้างออบเจ็กต์: DensityFunctions.EndIslandDensityFunction. คืนค่า: new DensityFunctions.EndIslandDensityFunction(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions#flatCache(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:115 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ flatCache ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Marker(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: new DensityFunctions.Marker(DensityFunctions.Marker.Type.FlatCache, densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.flatCache(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#interpolated(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:111 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ interpolated ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Marker(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: new DensityFunctions.Marker(DensityFunctions.Marker.Type.Interpolated, densityFunction).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction result = DensityFunctions.interpolated(densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions#lerp(DensityFunction,DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:243 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ lerp ตาม implementation ของ DensityFunctions
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: cacheOnce(), add(), mul(), constant(). มีจุด return อย่างน้อย 2 จุด.
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2DensityFunction densityFunction3
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction densityFunction3 = ...;
DensityFunction result = DensityFunctions.lerp(densityFunction, densityFunction2, densityFunction3);
net.minecraft.world.level.levelgen.DensityFunctions#lerp(DensityFunction,double,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:253 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ lerp ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: add(), mul(), constant(). คืนค่า: add(mul(densityFunction, add(densityFunction2, constant(-d))), constant(d)).
Parameters
DensityFunction densityFunctiondouble dDensityFunction densityFunction2
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction result = DensityFunctions.lerp(densityFunction, 0.0D, densityFunction2);
net.minecraft.world.level.levelgen.DensityFunctions#map(DensityFunction,DensityFunctions.Mapped.Type)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:225 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ map ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: DensityFunctions.Mapped.create(type, densityFunction).
Parameters
DensityFunction densityFunctionDensityFunctions.Mapped.Type type
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunctions.Mapped.Type type = ...;
DensityFunction result = DensityFunctions.map(densityFunction, type);
net.minecraft.world.level.levelgen.DensityFunctions#mappedNoise(Holder<NormalNoise.NoiseParameters>,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:139 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ mappedNoise ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: mappedNoise(holder, 1.0, 1.0, d, e).
Parameters
Holder<NormalNoise.NoiseParameters> holderdouble ddouble e
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.mappedNoise(holder, 0.0D, 0.0D);
net.minecraft.world.level.levelgen.DensityFunctions#mappedNoise(Holder<NormalNoise.NoiseParameters>,double,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:135 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ mappedNoise ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: mappedNoise(holder, 1.0, d, e, f).
Parameters
Holder<NormalNoise.NoiseParameters> holderdouble ddouble edouble f
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.mappedNoise(holder, 0.0D, 0.0D, 0.0D);
net.minecraft.world.level.levelgen.DensityFunctions#mappedNoise(Holder<NormalNoise.NoiseParameters>,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:131 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ mappedNoise ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: mapFromUnitTo(), Noise(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.Noise, DensityFunction.NoiseHolder. คืนค่า: mapFromUnitTo(new DensityFunctions.Noise(new DensityFunction.NoiseHolder(holder), d, e), f, g).
Parameters
Holder<NormalNoise.NoiseParameters> holderdouble ddouble edouble fdouble g
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.mappedNoise(holder, 0.0D, 0.0D, 0.0D, 0.0D);
net.minecraft.world.level.levelgen.DensityFunctions#max(DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:205 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ max ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: DensityFunctions.TwoArgumentSimpleFunction.create(DensityFunctions.TwoArgumentSimpleFunction.Type.MAX, densityFunction, densityFunction2).
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction result = DensityFunctions.max(densityFunction, densityFunction2);
net.minecraft.world.level.levelgen.DensityFunctions#min(DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:201 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ min ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: DensityFunctions.TwoArgumentSimpleFunction.create(DensityFunctions.TwoArgumentSimpleFunction.Type.MIN, densityFunction, densityFunction2).
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction result = DensityFunctions.min(densityFunction, densityFunction2);
net.minecraft.world.level.levelgen.DensityFunctions#mul(DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:197 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ mul ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: DensityFunctions.TwoArgumentSimpleFunction.create(DensityFunctions.TwoArgumentSimpleFunction.Type.MUL, densityFunction, densityFunction2).
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction result = DensityFunctions.mul(densityFunction, densityFunction2);
net.minecraft.world.level.levelgen.DensityFunctions#noise(Holder<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:149 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ noise ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: noise(holder, 1.0, 1.0).
Parameters
Holder<NormalNoise.NoiseParameters> holder
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.noise(holder);
net.minecraft.world.level.levelgen.DensityFunctions#noise(Holder<NormalNoise.NoiseParameters>,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:157 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ noise ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: noise(holder, 1.0, d).
Parameters
Holder<NormalNoise.NoiseParameters> holderdouble d
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.noise(holder, 0.0D);
net.minecraft.world.level.levelgen.DensityFunctions#noise(Holder<NormalNoise.NoiseParameters>,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:153 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ noise ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Noise(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.Noise, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.Noise(new DensityFunction.NoiseHolder(holder), d, e).
Parameters
Holder<NormalNoise.NoiseParameters> holderdouble ddouble e
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.noise(holder, 0.0D, 0.0D);
net.minecraft.world.level.levelgen.DensityFunctions#rangeChoice(DensityFunction,double,double,DensityFunction,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:161 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ rangeChoice ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: RangeChoice(). สร้างออบเจ็กต์: DensityFunctions.RangeChoice. คืนค่า: new DensityFunctions.RangeChoice(densityFunction, d, e, densityFunction2, densityFunction3).
Parameters
DensityFunction densityFunctiondouble ddouble eDensityFunction densityFunction2DensityFunction densityFunction3
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction densityFunction3 = ...;
DensityFunction result = DensityFunctions.rangeChoice(densityFunction, 0.0D, 0.0D, densityFunction2, densityFunction3);
net.minecraft.world.level.levelgen.DensityFunctions#shift(Holder<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:175 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ shift ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Shift(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.Shift, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.Shift(new DensityFunction.NoiseHolder(holder)).
Parameters
Holder<NormalNoise.NoiseParameters> holder
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.shift(holder);
net.minecraft.world.level.levelgen.DensityFunctions#shiftA(Holder<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:167 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ shiftA ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: ShiftA(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.ShiftA, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.ShiftA(new DensityFunction.NoiseHolder(holder)).
Parameters
Holder<NormalNoise.NoiseParameters> holder
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.shiftA(holder);
net.minecraft.world.level.levelgen.DensityFunctions#shiftB(Holder<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:171 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ shiftB ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: ShiftB(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.ShiftB, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.ShiftB(new DensityFunction.NoiseHolder(holder)).
Parameters
Holder<NormalNoise.NoiseParameters> holder
ตัวอย่างใช้งาน
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.shiftB(holder);
net.minecraft.world.level.levelgen.DensityFunctions#shiftedNoise2d(DensityFunction,DensityFunction,double,Holder<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:143 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ shiftedNoise2d ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: ShiftedNoise(), zero(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.ShiftedNoise, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.ShiftedNoise(densityFunction, zero(), densityFunction2, d, 0.0, new DensityFunction.NoiseHolder(holder)).
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2double dHolder<NormalNoise.NoiseParameters> holder
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunction result = DensityFunctions.shiftedNoise2d(densityFunction, densityFunction2, 0.0D, holder);
net.minecraft.world.level.levelgen.DensityFunctions#spline(CubicSpline<DensityFunctions.Spline.Point, DensityFunctions.Spline.Coordinate>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:209 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ spline ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: Spline(). สร้างออบเจ็กต์: DensityFunctions.Spline. คืนค่า: new DensityFunctions.Spline(cubicSpline).
Parameters
CubicSpline<DensityFunctions.Spline.Point, DensityFunctions.Spline.Coordinate> cubicSpline
ตัวอย่างใช้งาน
CubicSpline<DensityFunctions.Spline.Point, DensityFunctions.Spline.Coordinate> cubicSpline = ...;
DensityFunction result = DensityFunctions.spline(cubicSpline);
net.minecraft.world.level.levelgen.DensityFunctions#weirdScaledSampler(DensityFunction,Holder<NormalNoise.NoiseParameters>,DensityFunctions.WeirdScaledSampler.RarityValueMapper)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:187 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ weirdScaledSampler ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: WeirdScaledSampler(), NoiseHolder(). สร้างออบเจ็กต์: DensityFunctions.WeirdScaledSampler, DensityFunction.NoiseHolder. คืนค่า: new DensityFunctions.WeirdScaledSampler(densityFunction, new DensityFunction.NoiseHolder(holder), rarityValueMapper).
Parameters
DensityFunction densityFunctionHolder<NormalNoise.NoiseParameters> holderDensityFunctions.WeirdScaledSampler.RarityValueMapper rarityValueMapper
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
Holder<NormalNoise.NoiseParameters> holder = ...;
DensityFunctions.WeirdScaledSampler.RarityValueMapper rarityValueMapper = ...;
DensityFunction result = DensityFunctions.weirdScaledSampler(densityFunction, holder, rarityValueMapper);
net.minecraft.world.level.levelgen.DensityFunctions#yClampedGradient(int,int,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:221 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ yClampedGradient ตาม implementation ของ DensityFunctions
ทำงานยังไง
เรียกต่อ: YClampedGradient(). สร้างออบเจ็กต์: DensityFunctions.YClampedGradient. คืนค่า: new DensityFunctions.YClampedGradient(i, j, d, e).
Parameters
int iint jdouble ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions#zero()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:213 - Modifiers:
public static - Return:
DensityFunction
คืออะไร
ดำเนินการ zero ตาม implementation ของ DensityFunctions
ทำงานยังไง
คืนค่า: DensityFunctions.Constant.ZERO.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$BeardifierMarker
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierMarker - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
enum - Modifiers:
protected - Implements:
DensityFunctions.BeardifierOrMarker
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierMarker#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:316 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
คืนค่า: 0.0.
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.BeardifierMarker instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierMarker#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:321 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$BeardifierMarker
ทำงานยังไง
เรียกต่อ: fill().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.BeardifierMarker instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierMarker#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:331 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$BeardifierMarker
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierMarker#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:326 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$BeardifierMarker
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$BeardifierOrMarker
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierOrMarker - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
interface - Modifiers:
public - Implements:
DensityFunction.SimpleFunction
net.minecraft.world.level.levelgen.DensityFunctions$BeardifierOrMarker#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:340 - Modifiers:
default - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$BeardifierOrMarker
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.BeardifierOrMarker instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
DensityFunctions$BlendAlpha
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
enum - Modifiers:
protected - Implements:
DensityFunction.SimpleFunction
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:371 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$BlendAlpha
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.BlendAlpha instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:351 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
คืนค่า: 1.0.
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.BlendAlpha instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:356 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$BlendAlpha
ทำงานยังไง
เรียกต่อ: fill().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.BlendAlpha instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:366 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$BlendAlpha
ทำงานยังไง
คืนค่า: 1.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$BlendAlpha#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:361 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$BlendAlpha
ทำงานยังไง
คืนค่า: 1.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$BlendOffset
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
enum - Modifiers:
protected - Implements:
DensityFunction.SimpleFunction
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:433 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$BlendOffset
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.BlendOffset instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:413 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
คืนค่า: 0.0.
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.BlendOffset instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:418 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$BlendOffset
ทำงานยังไง
เรียกต่อ: fill().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.BlendOffset instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:428 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$BlendOffset
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$BlendOffset#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:423 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$BlendOffset
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Clamp
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Clamp - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.PureTransformer
net.minecraft.world.level.levelgen.DensityFunctions$Clamp#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:460 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$Clamp
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.Clamp instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$Clamp#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:455 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Clamp
ทำงานยังไง
เรียกต่อ: Clamp(). สร้างออบเจ็กต์: DensityFunctions.Clamp. คืนค่า: new DensityFunctions.Clamp(this.input.mapAll(visitor), this.minValue, this.maxValue).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Clamp instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$Clamp#transform(double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:450 - Modifiers:
public - Return:
double
คืออะไร
แปลงรูป transform
ทำงานยังไง
เรียกต่อ: clamp(). คืนค่า: Mth.clamp(d, this.minValue, this.maxValue).
Parameters
double d
ตัวอย่างใช้งาน
DensityFunctions$EndIslandDensityFunction
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
class - Modifiers:
protected static final - Implements:
DensityFunction.SimpleFunction
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:552 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$EndIslandDensityFunction
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.EndIslandDensityFunction instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:537 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: getHeightValue(), blockX(), blockZ(). คืนค่า: (getHeightValue(this.islandNoise, functionContext.blockX() / 8, functionContext.blockZ() / 8) - 8.0) / 128.0.
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.EndIslandDensityFunction instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction#EndIslandDensityFunction(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:505 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DensityFunctions.EndIslandDensityFunction ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: islandNoise. เรียกต่อ: consumeCount(). สร้างออบเจ็กต์: LegacyRandomSource, SimplexNoise.
Parameters
long l
ตัวอย่างใช้งาน
DensityFunctions.EndIslandDensityFunction instance = new DensityFunctions.EndIslandDensityFunction(0L);
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:547 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$EndIslandDensityFunction
ทำงานยังไง
คืนค่า: 0.5625.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$EndIslandDensityFunction#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:542 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$EndIslandDensityFunction
ทำงานยังไง
คืนค่า: -0.84375.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$HolderHolder
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
public - Implements:
DensityFunction
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:585 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$HolderHolder
ทำงานยังไง
สร้างออบเจ็กต์: UnsupportedOperationException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.HolderHolder instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:560 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: value(). คืนค่า: this.function.value().compute(functionContext).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.HolderHolder instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:565 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$HolderHolder
ทำงานยังไง
เรียกต่อ: value().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.HolderHolder instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:570 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$HolderHolder
ทำงานยังไง
เรียกต่อ: apply(), HolderHolder(), value(). สร้างออบเจ็กต์: DensityFunctions.HolderHolder, Holder.Direct<>. คืนค่า: visitor.apply(new DensityFunctions.HolderHolder(new Holder.Direct<>(this.function.value().mapAll(visitor)))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.HolderHolder instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:580 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$HolderHolder
ทำงานยังไง
เรียกต่อ: isBound(), value(). คืนค่า: this.function.isBound() ? this.function.value().maxValue() : Double.POSITIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$HolderHolder#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:575 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$HolderHolder
ทำงานยังไง
เรียกต่อ: isBound(), value(). คืนค่า: this.function.isBound() ? this.function.value().minValue() : Double.NEGATIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Mapped
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Mapped - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.PureTransformer
net.minecraft.world.level.levelgen.DensityFunctions$Mapped#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:625 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$Mapped
ทำงานยังไง
คืนค่า: this.type.codec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.Mapped instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$Mapped#create(DensityFunctions.Mapped.Type,DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:593 - Modifiers:
public static - Return:
DensityFunctions.Mapped
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: minValue(), transform(), maxValue(), Mapped(), max(). สร้างออบเจ็กต์: DensityFunctions.Mapped.
Parameters
DensityFunctions.Mapped.Type typeDensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunctions.Mapped.Type type = ...;
DensityFunction densityFunction = ...;
DensityFunctions.Mapped result = DensityFunctions.Mapped.create(type, densityFunction);
net.minecraft.world.level.levelgen.DensityFunctions$Mapped#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:621 - Modifiers:
public - Return:
DensityFunctions.Mapped
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Mapped
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: create(this.type, this.input.mapAll(visitor)).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Mapped instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunctions.Mapped result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$Mapped#transform(double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:616 - Modifiers:
public - Return:
double
คืออะไร
แปลงรูป transform
ทำงานยังไง
คืนค่า: transform(this.type, d).
Parameters
double d
ตัวอย่างใช้งาน
DensityFunctions$Marker
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Marker - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.MarkerOrMarked
net.minecraft.world.level.levelgen.DensityFunctions$Marker#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:655 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
คืนค่า: this.wrapped.compute(functionContext).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.Marker instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$Marker#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:660 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$Marker
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.Marker instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$Marker#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:670 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$Marker
ทำงานยังไง
คืนค่า: this.wrapped.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$Marker#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:665 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$Marker
ทำงานยังไง
คืนค่า: this.wrapped.minValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$MarkerOrMarked
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$MarkerOrMarked - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
interface - Modifiers:
public - Implements:
DensityFunction
net.minecraft.world.level.levelgen.DensityFunctions$MarkerOrMarked#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:703 - Modifiers:
default - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$MarkerOrMarked
ทำงานยังไง
เรียกต่อ: type(). คืนค่า: this.type().codec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.MarkerOrMarked instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$MarkerOrMarked#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:708 - Modifiers:
default - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$MarkerOrMarked
ทำงานยังไง
เรียกต่อ: apply(), Marker(), type(), wrapped(). สร้างออบเจ็กต์: DensityFunctions.Marker. คืนค่า: visitor.apply(new DensityFunctions.Marker(this.type(), this.wrapped().mapAll(visitor))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.MarkerOrMarked instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$MarkerOrMarked#type()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:699 - Modifiers: ``
- Return:
DensityFunctions.Marker.Type
คืออะไร
ดำเนินการ type ตาม implementation ของ DensityFunctions$MarkerOrMarked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.MarkerOrMarked instance = ...;
DensityFunctions.Marker.Type result = instance.type();
net.minecraft.world.level.levelgen.DensityFunctions$MarkerOrMarked#wrapped()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:701 - Modifiers: ``
- Return:
DensityFunction
คืออะไร
ดำเนินการ wrapped ตาม implementation ของ DensityFunctions$MarkerOrMarked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Noise
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Noise - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunction
net.minecraft.world.level.levelgen.DensityFunctions$Noise#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:805 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$Noise
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.Noise instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$Noise#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:780 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: getValue(), blockX(), blockY(), blockZ(). คืนค่า: this.noise.getValue(functionContext.blockX() * this.xzScale, functionContext.blockY() * this.yScale, functionContext.blockZ() * this.xzScale).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.Noise instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$Noise#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:785 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$Noise
ทำงานยังไง
เรียกต่อ: fillAllDirectly().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.Noise instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$Noise#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:790 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Noise
ทำงานยังไง
เรียกต่อ: apply(), Noise(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.Noise. คืนค่า: visitor.apply(new DensityFunctions.Noise(visitor.visitNoise(this.noise), this.xzScale, this.yScale)).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Noise instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$Noise#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:800 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$Noise
ทำงานยังไง
คืนค่า: this.noise.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$Noise#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:795 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$Noise
ทำงานยังไง
เรียกต่อ: maxValue(). คืนค่า: -this.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Shift
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Shift - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.ShiftNoise
net.minecraft.world.level.levelgen.DensityFunctions$Shift#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:905 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$Shift
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.Shift instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$Shift#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:895 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: blockX(), blockY(), blockZ(). คืนค่า: this.compute(functionContext.blockX(), functionContext.blockY(), functionContext.blockZ()).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.Shift instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$Shift#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:900 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Shift
ทำงานยังไง
เรียกต่อ: apply(), Shift(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.Shift. คืนค่า: visitor.apply(new DensityFunctions.Shift(visitor.visitNoise(this.offsetNoise))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Shift instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
DensityFunctions$ShiftA
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$ShiftA - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.ShiftNoise
net.minecraft.world.level.levelgen.DensityFunctions$ShiftA#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:926 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$ShiftA
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.ShiftA instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$ShiftA#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:916 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: blockX(), blockZ(). คืนค่า: this.compute(functionContext.blockX(), 0.0, functionContext.blockZ()).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.ShiftA instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$ShiftA#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:921 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$ShiftA
ทำงานยังไง
เรียกต่อ: apply(), ShiftA(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.ShiftA. คืนค่า: visitor.apply(new DensityFunctions.ShiftA(visitor.visitNoise(this.offsetNoise))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.ShiftA instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
DensityFunctions$ShiftB
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$ShiftB - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.ShiftNoise
net.minecraft.world.level.levelgen.DensityFunctions$ShiftB#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:947 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$ShiftB
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.ShiftB instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$ShiftB#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:937 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: blockZ(), blockX(). คืนค่า: this.compute(functionContext.blockZ(), functionContext.blockX(), 0.0).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.ShiftB instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$ShiftB#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:942 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$ShiftB
ทำงานยังไง
เรียกต่อ: apply(), ShiftB(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.ShiftB. คืนค่า: visitor.apply(new DensityFunctions.ShiftB(visitor.visitNoise(this.offsetNoise))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.ShiftB instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
DensityFunctions$ShiftedNoise
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunction
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1024 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$ShiftedNoise
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.ShiftedNoise instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:992 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: blockX(), blockY(), blockZ(), getValue(). คืนค่า: this.noise.getValue(d, e, f).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.ShiftedNoise instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1000 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$ShiftedNoise
ทำงานยังไง
เรียกต่อ: fillAllDirectly().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.ShiftedNoise instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1005 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$ShiftedNoise
ทำงานยังไง
เรียกต่อ: apply(), ShiftedNoise(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.ShiftedNoise.
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.ShiftedNoise instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1019 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$ShiftedNoise
ทำงานยังไง
คืนค่า: this.noise.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$ShiftedNoise#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1014 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$ShiftedNoise
ทำงานยังไง
เรียกต่อ: maxValue(). คืนค่า: -this.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Spline
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Spline - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
public - Implements:
DensityFunction
net.minecraft.world.level.levelgen.DensityFunctions$Spline#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1063 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$Spline
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.Spline instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$Spline#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1038 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
เรียกต่อ: apply(), Point(). สร้างออบเจ็กต์: DensityFunctions.Spline.Point. คืนค่า: this.spline.apply(new DensityFunctions.Spline.Point(functionContext)).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
DensityFunctions.Spline instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.DensityFunctions$Spline#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1053 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ DensityFunctions$Spline
ทำงานยังไง
เรียกต่อ: fillAllDirectly().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
DensityFunctions.Spline instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.DensityFunctions$Spline#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1058 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Spline
ทำงานยังไง
เรียกต่อ: apply(), Spline(). สร้างออบเจ็กต์: DensityFunctions.Spline. คืนค่า: visitor.apply(new DensityFunctions.Spline(this.spline.mapAll(coordinate -> coordinate.mapAll(visitor)))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Spline instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$Spline#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1048 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$Spline
ทำงานยังไง
คืนค่า: this.spline.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$Spline#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1043 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$Spline
ทำงานยังไง
คืนค่า: this.spline.minValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$Spline$Coordinate
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
public - Implements:
ToFloatFunction<DensityFunctions.Spline.Point>
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate#apply(DensityFunctions.Spline.Point)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1097 - Modifiers:
public - Return:
float
คืออะไร
นำไปใช้ apply
ทำงานยังไง
เรียกต่อ: value(), compute(), context(). คืนค่า: (float)this.function.value().compute(point.context()).
Parameters
DensityFunctions.Spline.Point point
ตัวอย่างใช้งาน
DensityFunctions.Spline.Coordinate instance = ...;
DensityFunctions.Spline.Point point = ...;
float result = instance.apply(point);
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1111 - Modifiers:
public - Return:
DensityFunctions.Spline.Coordinate
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$Spline$Coordinate
ทำงานยังไง
เรียกต่อ: Coordinate(), value(). สร้างออบเจ็กต์: DensityFunctions.Spline.Coordinate, Holder.Direct<>. คืนค่า: new DensityFunctions.Spline.Coordinate(new Holder.Direct<>(this.function.value().mapAll(visitor))).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.Spline.Coordinate instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunctions.Spline.Coordinate result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1106 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$Spline$Coordinate
ทำงานยังไง
เรียกต่อ: isBound(), value(). คืนค่า: this.function.isBound() ? (float)this.function.value().maxValue() : Float.POSITIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1101 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$Spline$Coordinate
ทำงานยังไง
เรียกต่อ: isBound(), value(). คืนค่า: this.function.isBound() ? (float)this.function.value().minValue() : Float.NEGATIVE_INFINITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$Spline$Coordinate#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1072 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DensityFunctions$Spline$Coordinate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: unwrapKey(), isPresent(), get(). มีจุด return อย่างน้อย 5 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions$WeirdScaledSampler
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
record - Modifiers:
protected - Implements:
DensityFunctions.TransformerWithContext
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1266 - Modifiers:
public - Return:
KeyDispatchDataCodec<? extends DensityFunction>
คืออะไร
ดำเนินการ codec ตาม implementation ของ DensityFunctions$WeirdScaledSampler
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.WeirdScaledSampler instance = ...;
KeyDispatchDataCodec<? extends DensityFunction> result = instance.codec();
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1251 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ DensityFunctions$WeirdScaledSampler
ทำงานยังไง
เรียกต่อ: apply(), WeirdScaledSampler(), visitNoise(). สร้างออบเจ็กต์: DensityFunctions.WeirdScaledSampler. คืนค่า: visitor.apply(new DensityFunctions.WeirdScaledSampler(this.input.mapAll(visitor), visitor.visitNoise(this.noise), this.rarityValueMapper)).
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
DensityFunctions.WeirdScaledSampler instance = ...;
DensityFunction.Visitor visitor = ...;
DensityFunction result = instance.mapAll(visitor);
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler#maxValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1261 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ maxValue ตาม implementation ของ DensityFunctions$WeirdScaledSampler
ทำงานยังไง
คืนค่า: this.rarityValueMapper.maxRarity * this.noise.maxValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler#minValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1256 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ minValue ตาม implementation ของ DensityFunctions$WeirdScaledSampler
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler#transform(DensityFunction.FunctionContext,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1245 - Modifiers:
public - Return:
double
คืออะไร
แปลงรูป transform
ทำงานยังไง
เรียกต่อ: get(), abs(), getValue(), blockX(), blockY(), blockZ(). คืนค่า: e * Math.abs(this.noise.getValue(functionContext.blockX() / e, functionContext.blockY() / e, functionContext.blockZ() / e)).
Parameters
DensityFunction.FunctionContext functionContextdouble d
ตัวอย่างใช้งาน
DensityFunctions.WeirdScaledSampler instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.transform(functionContext, 0.0D);
DensityFunctions$WeirdScaledSampler$RarityValueMapper
- Full name:
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler$RarityValueMapper - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/DensityFunctions.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.levelgen.DensityFunctions$WeirdScaledSampler$RarityValueMapper#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/DensityFunctions.java:1288 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DensityFunctions.WeirdScaledSampler.RarityValueMapper instance = ...;
String result = instance.getSerializedName();
FlatLevelSource
- Full name:
net.minecraft.world.level.levelgen.FlatLevelSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/FlatLevelSource.java - Type:
class - Modifiers:
public - Extends:
ChunkGenerator
net.minecraft.world.level.levelgen.FlatLevelSource#addDebugScreenInfo(List<String>,RandomState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:119 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Debug Screen Info
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
List<String> listRandomState randomStateBlockPos blockPos
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
List<String> list = ...;
RandomState randomState = ...;
BlockPos blockPos = ...;
instance.addDebugScreenInfo(list, randomState, blockPos);
net.minecraft.world.level.levelgen.FlatLevelSource#applyCarvers(WorldGenRegion,long,RandomState,BiomeManager,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:123 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Carvers
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegionlong lRandomState randomStateBiomeManager biomeManagerStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
RandomState randomState = ...;
BiomeManager biomeManager = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
instance.applyCarvers(worldGenRegion, 0L, randomState, biomeManager, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.FlatLevelSource#buildSurface(WorldGenRegion,StructureManager,RandomState,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:58 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegionStructureManager structureManagerRandomState randomStateChunkAccess chunkAccess
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
StructureManager structureManager = ...;
RandomState randomState = ...;
ChunkAccess chunkAccess = ...;
instance.buildSurface(worldGenRegion, structureManager, randomState, chunkAccess);
net.minecraft.world.level.levelgen.FlatLevelSource#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:49 - Modifiers:
protected - Return:
MapCodec<? extends ChunkGenerator>
คืออะไร
ดำเนินการ codec ตาม implementation ของ FlatLevelSource
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.FlatLevelSource#createState(HolderLookup<StructureSet>,RandomState,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:40 - Modifiers:
public - Return:
ChunkGeneratorStructureState
คืออะไร
สร้าง State
ทำงานยังไง
เรียกต่อ: structureOverrides(), map(), orElseGet(), listElements(), createForFlat(). คืนค่า: ChunkGeneratorStructureState.createForFlat(randomState, l, this.biomeSource, stream).
Parameters
HolderLookup<StructureSet> holderLookupRandomState randomStatelong l
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
HolderLookup<StructureSet> holderLookup = ...;
RandomState randomState = ...;
ChunkGeneratorStructureState result = instance.createState(holderLookup, randomState, 0L);
net.minecraft.world.level.levelgen.FlatLevelSource#fillFromNoise(Blender,RandomState,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:67 - Modifiers:
public - Return:
CompletableFuture<ChunkAccess>
คืออะไร
ดำเนินการ fillFromNoise ตาม implementation ของ FlatLevelSource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getLayers(), MutableBlockPos(), getOrCreateHeightmapUnprimed(), min(), getHeight(), size(), get(), getMinY(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: CompletableFuture.completedFuture(chunkAccess).
Parameters
Blender blenderRandomState randomStateStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
Blender blender = ...;
RandomState randomState = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.fillFromNoise(blender, randomState, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.FlatLevelSource#FlatLevelSource(FlatLevelGeneratorSettings)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FlatLevelSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: settings. เรียกต่อ: getBiome(), memoize(). สร้างออบเจ็กต์: FixedBiomeSource.
Parameters
FlatLevelGeneratorSettings flatLevelGeneratorSettings
ตัวอย่างใช้งาน
FlatLevelGeneratorSettings flatLevelGeneratorSettings = ...;
FlatLevelSource instance = new FlatLevelSource(flatLevelGeneratorSettings);
net.minecraft.world.level.levelgen.FlatLevelSource#getBaseColumn(int,int,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:106 - Modifiers:
public - Return:
NoiseColumn
คืออะไร
อ่านค่า Base Column
ทำงานยังไง
เรียกต่อ: getMinY(), getLayers(), stream(), limit(), getHeight(), map(), defaultBlockState(), toArray(). สร้างออบเจ็กต์: NoiseColumn.
Parameters
int iint jLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
NoiseColumn result = instance.getBaseColumn(0, 0, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.FlatLevelSource#getBaseHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:92 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Base Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getLayers(), min(), size(), getMaxY(), get(), isOpaque(), test(), getMinY(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getBaseHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.FlatLevelSource#getGenDepth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:138 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gen Depth
ทำงานยังไง
คืนค่า: 384.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.FlatLevelSource#getMinY()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:133 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Y
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.FlatLevelSource#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:143 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
คืนค่า: -63.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.FlatLevelSource#getSpawnHeight(LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:62 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Spawn Height
ทำงานยังไง
เรียกต่อ: getMinY(), min(), getHeight(), getLayers(), size(). คืนค่า: levelHeightAccessor.getMinY() + Math.min(levelHeightAccessor.getHeight(), this.settings.getLayers().size()).
Parameters
LevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
int result = instance.getSpawnHeight(levelHeightAccessor);
net.minecraft.world.level.levelgen.FlatLevelSource#settings()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:54 - Modifiers:
public - Return:
FlatLevelGeneratorSettings
คืออะไร
ดำเนินการ settings ตาม implementation ของ FlatLevelSource
ทำงานยังไง
คืนค่า: this.settings.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.FlatLevelSource#spawnOriginalMobs(WorldGenRegion)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/FlatLevelSource.java:129 - Modifiers:
public - Return:
void
คืออะไร
สร้าง entity ในโลก Original Mobs
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
WorldGenRegion worldGenRegion
ตัวอย่างใช้งาน
FlatLevelSource instance = ...;
WorldGenRegion worldGenRegion = ...;
instance.spawnOriginalMobs(worldGenRegion);
GenerationStep$Decoration
- Full name:
net.minecraft.world.level.levelgen.GenerationStep$Decoration - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/GenerationStep.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.levelgen.GenerationStep$Decoration#getName()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/GenerationStep.java:27 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.GenerationStep$Decoration#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/GenerationStep.java:31 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
GeodeBlockSettings
- Full name:
net.minecraft.world.level.levelgen.GeodeBlockSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/GeodeBlockSettings.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.GeodeBlockSettings#GeodeBlockSettings(BlockStateProvider,BlockStateProvider,BlockStateProvider,BlockStateProvider,BlockStateProvider,List<BlockState>,TagKey<Block>,TagKey<Block>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/GeodeBlockSettings.java:36 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GeodeBlockSettings ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fillingProvider, innerLayerProvider, alternateInnerLayerProvider, middleLayerProvider, outerLayerProvider, innerPlacements.
Parameters
BlockStateProvider blockStateProviderBlockStateProvider blockStateProvider2BlockStateProvider blockStateProvider3BlockStateProvider blockStateProvider4BlockStateProvider blockStateProvider5List<BlockState> listTagKey<Block> tagKeyTagKey<Block> tagKey2
ตัวอย่างใช้งาน
BlockStateProvider blockStateProvider = ...;
BlockStateProvider blockStateProvider2 = ...;
BlockStateProvider blockStateProvider3 = ...;
BlockStateProvider blockStateProvider4 = ...;
BlockStateProvider blockStateProvider5 = ...;
List<BlockState> list = ...;
TagKey<Block> tagKey = ...;
TagKey<Block> tagKey2 = ...;
GeodeBlockSettings instance = new GeodeBlockSettings(blockStateProvider, blockStateProvider2, blockStateProvider3, blockStateProvider4, blockStateProvider5, list, tagKey, tagKey2);
GeodeCrackSettings
- Full name:
net.minecraft.world.level.levelgen.GeodeCrackSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/GeodeCrackSettings.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.GeodeCrackSettings#GeodeCrackSettings(double,double,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/GeodeCrackSettings.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GeodeCrackSettings ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: generateCrackChance, baseCrackSize, crackPointOffset.
Parameters
double ddouble eint i
ตัวอย่างใช้งาน
GeodeLayerSettings
- Full name:
net.minecraft.world.level.levelgen.GeodeLayerSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/GeodeLayerSettings.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.GeodeLayerSettings#GeodeLayerSettings(double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/GeodeLayerSettings.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GeodeLayerSettings ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: filling, innerLayer, middleLayer, outerLayer.
Parameters
double ddouble edouble fdouble g
ตัวอย่างใช้งาน
Heightmap
- Full name:
net.minecraft.world.level.levelgen.Heightmap - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Heightmap.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.Heightmap#getFirstAvailable(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:105 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า First Available
ทำงานยังไง
เรียกต่อ: getIndex(). คืนค่า: this.getFirstAvailable(getIndex(i, j)).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap#getHighestTaken(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:109 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Highest Taken
ทำงานยังไง
เรียกต่อ: getFirstAvailable(), getIndex(). คืนค่า: this.getFirstAvailable(getIndex(i, j)) - 1.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap#getRawData()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:131 - Modifiers:
public - Return:
long[]
คืออะไร
อ่านค่า Raw Data
ทำงานยังไง
เรียกต่อ: getRaw(). คืนค่า: this.data.getRaw().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap#Heightmap(ChunkAccess,Heightmap.Types)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Heightmap ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: isOpaque, chunk, data. เรียกต่อ: isOpaque(), ceillog2(), getHeight(). สร้างออบเจ็กต์: SimpleBitStorage.
Parameters
ChunkAccess chunkAccessHeightmap.Types types
ตัวอย่างใช้งาน
ChunkAccess chunkAccess = ...;
Heightmap.Types types = ...;
Heightmap instance = new Heightmap(chunkAccess, types);
net.minecraft.world.level.levelgen.Heightmap#primeHeightmaps(ChunkAccess,Set<Heightmap.Types>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:38 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ primeHeightmaps ตาม implementation ของ Heightmap
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), size(), iterator(), getHighestSectionPosition(), MutableBlockPos(), add(), getOrCreateHeightmapUnprimed(), getMinY(). สร้างออบเจ็กต์: ObjectArrayList<>, BlockPos.MutableBlockPos.
Parameters
ChunkAccess chunkAccessSet<Heightmap.Types> set
ตัวอย่างใช้งาน
ChunkAccess chunkAccess = ...;
Set<Heightmap.Types> set = ...;
Heightmap.primeHeightmaps(chunkAccess, set);
net.minecraft.world.level.levelgen.Heightmap#setRawData(ChunkAccess,Heightmap.Types,long[])
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:121 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Raw Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getRaw(), arraycopy(), warn(), getPos(), primeHeightmaps(), of().
Parameters
ChunkAccess chunkAccessHeightmap.Types typeslong[] ls
ตัวอย่างใช้งาน
Heightmap instance = ...;
ChunkAccess chunkAccess = ...;
Heightmap.Types types = ...;
long[] ls = ...;
instance.setRawData(chunkAccess, types, ls);
net.minecraft.world.level.levelgen.Heightmap#update(int,int,int,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:76 - Modifiers:
public - Return:
boolean
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getFirstAvailable(), test(), setHeight(), MutableBlockPos(), getMinY(), set(), getBlockState(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 5 จุด.
Parameters
int iint jint kBlockState blockState
ตัวอย่างใช้งาน
Heightmap instance = ...;
BlockState blockState = ...;
boolean result = instance.update(0, 0, 0, blockState);
Heightmap$Types
- Full name:
net.minecraft.world.level.levelgen.Heightmap$Types - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Heightmap.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.levelgen.Heightmap$Types#getSerializationKey()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:162 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialization Key
ทำงานยังไง
คืนค่า: this.serializationKey.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap$Types#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:178 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.serializationKey.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap$Types#isOpaque()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:174 - Modifiers:
public - Return:
Predicate<BlockState>
คืออะไร
ตรวจสอบสถานะ Opaque
ทำงานยังไง
คืนค่า: this.isOpaque.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap$Types#keepAfterWorldgen()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:170 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ keepAfterWorldgen ตาม implementation ของ Heightmap$Types
ทำงานยังไง
คืนค่า: this.usage != Heightmap.Usage.WORLDGEN.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Heightmap$Types#sendToClient()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Heightmap.java:166 - Modifiers:
public - Return:
boolean
คืออะไร
ส่ง To Client
ทำงานยังไง
แก้ state: usage. คืนค่า: this.usage == Heightmap.Usage.CLIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LegacyRandomSource
- Full name:
net.minecraft.world.level.levelgen.LegacyRandomSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/LegacyRandomSource.java - Type:
class - Modifiers:
public - Implements:
BitRandomSource
net.minecraft.world.level.levelgen.LegacyRandomSource#fork()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:21 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fork ตาม implementation ของ LegacyRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). สร้างออบเจ็กต์: LegacyRandomSource. คืนค่า: new LegacyRandomSource(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.LegacyRandomSource#forkPositional()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:26 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ forkPositional ตาม implementation ของ LegacyRandomSource
ทำงานยังไง
เรียกต่อ: LegacyPositionalRandomFactory(), nextLong(). สร้างออบเจ็กต์: LegacyRandomSource.LegacyPositionalRandomFactory. คืนค่า: new LegacyRandomSource.LegacyPositionalRandomFactory(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.LegacyRandomSource#LegacyRandomSource(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LegacyRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setSeed().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.LegacyRandomSource#next(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:40 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ next ตาม implementation ของ LegacyRandomSource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), compareAndSet(), makeThreadingException(). คืนค่า: (int)(m >> 48 - i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.LegacyRandomSource#nextGaussian()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:51 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextGaussian ตาม implementation ของ LegacyRandomSource
ทำงานยังไง
คืนค่า: this.gaussianSource.nextGaussian().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.LegacyRandomSource#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:31 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: compareAndSet(), get(), makeThreadingException(), reset().
Parameters
long l
ตัวอย่างใช้งาน
LegacyRandomSource$LegacyPositionalRandomFactory
- Full name:
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/LegacyRandomSource.java - Type:
class - Modifiers:
public static - Implements:
PositionalRandomFactory
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory#at(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:63 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ at ตาม implementation ของ LegacyRandomSource$LegacyPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: getSeed(). สร้างออบเจ็กต์: LegacyRandomSource. คืนค่า: new LegacyRandomSource(m).
Parameters
int iint jint k
ตัวอย่างใช้งาน
LegacyRandomSource.LegacyPositionalRandomFactory instance = ...;
RandomSource result = instance.at(0, 0, 0);
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory#fromHashOf(String)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:70 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fromHashOf ตาม implementation ของ LegacyRandomSource$LegacyPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: hashCode(). สร้างออบเจ็กต์: LegacyRandomSource. คืนค่า: new LegacyRandomSource(i ^ this.seed).
Parameters
String string
ตัวอย่างใช้งาน
LegacyRandomSource.LegacyPositionalRandomFactory instance = ...;
RandomSource result = instance.fromHashOf("value");
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory#fromSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:76 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fromSeed ตาม implementation ของ LegacyRandomSource$LegacyPositionalRandomFactory
ทำงานยังไง
สร้างออบเจ็กต์: LegacyRandomSource. คืนค่า: new LegacyRandomSource(l).
Parameters
long l
ตัวอย่างใช้งาน
LegacyRandomSource.LegacyPositionalRandomFactory instance = ...;
RandomSource result = instance.fromSeed(0L);
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory#LegacyPositionalRandomFactory(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:59 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LegacyRandomSource.LegacyPositionalRandomFactory ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: seed.
Parameters
long l
ตัวอย่างใช้งาน
LegacyRandomSource.LegacyPositionalRandomFactory instance = new LegacyRandomSource.LegacyPositionalRandomFactory(0L);
net.minecraft.world.level.levelgen.LegacyRandomSource$LegacyPositionalRandomFactory#parityConfigString(StringBuilder)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/LegacyRandomSource.java:81 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ parityConfigString ตาม implementation ของ LegacyRandomSource$LegacyPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: append().
Parameters
StringBuilder stringBuilder
ตัวอย่างใช้งาน
LegacyRandomSource.LegacyPositionalRandomFactory instance = ...;
StringBuilder stringBuilder = ...;
instance.parityConfigString(stringBuilder);
MarsagliaPolarGaussian
- Full name:
net.minecraft.world.level.levelgen.MarsagliaPolarGaussian - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/MarsagliaPolarGaussian.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.MarsagliaPolarGaussian#MarsagliaPolarGaussian(RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/MarsagliaPolarGaussian.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MarsagliaPolarGaussian ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: randomSource.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
MarsagliaPolarGaussian instance = new MarsagliaPolarGaussian(randomSource);
net.minecraft.world.level.levelgen.MarsagliaPolarGaussian#nextGaussian()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/MarsagliaPolarGaussian.java:19 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextGaussian ตาม implementation ของ MarsagliaPolarGaussian
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: haveNextNextGaussian, nextNextGaussian. เรียกต่อ: nextDouble(), square(), sqrt(), log(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.MarsagliaPolarGaussian#reset()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/MarsagliaPolarGaussian.java:15 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต reset
ทำงานยังไง
แก้ state: haveNextNextGaussian.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator
- Full name:
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java - Type:
class - Modifiers:
public final - Extends:
ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#addDebugScreenInfo(List<String>,RandomState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:125 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Debug Screen Info
ทำงานยังไง
เรียกต่อ: router(), SinglePointContext(), getX(), getY(), getZ(), ridges(), compute(), add(). สร้างออบเจ็กต์: DecimalFormat, DensityFunction.SinglePointContext.
Parameters
List<String> listRandomState randomStateBlockPos blockPos
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
List<String> list = ...;
RandomState randomState = ...;
BlockPos blockPos = ...;
instance.addDebugScreenInfo(list, randomState, blockPos);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#applyCarvers(WorldGenRegion,long,RandomState,BiomeManager,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:261 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Carvers
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: withDifferentSource(), getNoiseBiome(), sampler(), generateUniqueSeed(), getPos(), getOrCreateNoiseChunk(), createNoiseChunk(), of(). สร้างออบเจ็กต์: WorldgenRandom, LegacyRandomSource, CarvingContext, ChunkPos.
Parameters
WorldGenRegion worldGenRegionlong lRandomState randomStateBiomeManager biomeManagerStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
RandomState randomState = ...;
BiomeManager biomeManager = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
instance.applyCarvers(worldGenRegion, 0L, randomState, biomeManager, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#buildSurface(ChunkAccess,WorldGenerationContext,RandomState,StructureManager,BiomeManager,Registry<Biome>,Blender)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:236 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
เรียกต่อ: getOrCreateNoiseChunk(), createNoiseChunk(), value(), surfaceSystem(), useLegacyRandomSource(), surfaceRule().
Parameters
ChunkAccess chunkAccessWorldGenerationContext worldGenerationContextRandomState randomStateStructureManager structureManagerBiomeManager biomeManagerRegistry<Biome> registryBlender blender
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
ChunkAccess chunkAccess = ...;
WorldGenerationContext worldGenerationContext = ...;
RandomState randomState = ...;
StructureManager structureManager = ...;
BiomeManager biomeManager = ...;
Registry<Biome> registry = ...;
Blender blender = ...;
instance.buildSurface(chunkAccess, worldGenerationContext, randomState, structureManager, biomeManager, registry, blender);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#buildSurface(WorldGenRegion,StructureManager,RandomState,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:220 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: debugVoidTerrain(), getPos(), getBiomeManager(), registryAccess(), lookupOrThrow(), of(). สร้างออบเจ็กต์: WorldGenerationContext.
Parameters
WorldGenRegion worldGenRegionStructureManager structureManagerRandomState randomStateChunkAccess chunkAccess
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
StructureManager structureManager = ...;
RandomState randomState = ...;
ChunkAccess chunkAccess = ...;
instance.buildSurface(worldGenRegion, structureManager, randomState, chunkAccess);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:100 - Modifiers:
protected - Return:
MapCodec<? extends ChunkGenerator>
คืออะไร
ดำเนินการ codec ตาม implementation ของ NoiseBasedChunkGenerator
ทำงานยังไง
คืนค่า: CODEC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#createBiomes(RandomState,Blender,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:75 - Modifiers:
public - Return:
CompletableFuture<ChunkAccess>
คืออะไร
สร้าง Biomes
ทำงานยังไง
เรียกต่อ: supplyAsync(), doCreateBiomes(), backgroundExecutor(), forName(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomState randomStateBlender blenderStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
RandomState randomState = ...;
Blender blender = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.createBiomes(randomState, blender, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#fillFromNoise(Blender,RandomState,StructureManager,ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:303 - Modifiers:
public - Return:
CompletableFuture<ChunkAccess>
คืออะไร
ดำเนินการ fillFromNoise ตาม implementation ของ NoiseBasedChunkGenerator
ทำงานยังไง
มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: value(), noiseSettings(), clampToHeightAccessor(), getHeightAccessorForGeneration(), minY(), floorDiv(), getCellHeight(), height(). คืนค่า: this.doFill(blender, structureManager, randomState, chunkAccess, j, k).
Parameters
Blender blenderRandomState randomStateStructureManager structureManagerChunkAccess chunkAccess
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
Blender blender = ...;
RandomState randomState = ...;
StructureManager structureManager = ...;
ChunkAccess chunkAccess = ...;
CompletableFuture<ChunkAccess> result = instance.fillFromNoise(blender, randomState, structureManager, chunkAccess);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#generatorSettings()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:105 - Modifiers:
public - Return:
Holder<NoiseGeneratorSettings>
คืออะไร
ดำเนินการ generatorSettings ตาม implementation ของ NoiseBasedChunkGenerator
ทำงานยังไง
คืนค่า: this.settings.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
Holder<NoiseGeneratorSettings> result = instance.generatorSettings();
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#getBaseColumn(int,int,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:118 - Modifiers:
public - Return:
NoiseColumn
คืออะไร
อ่านค่า Base Column
ทำงานยังไง
เรียกต่อ: iterateNoiseColumn(), getValue(). สร้างออบเจ็กต์: MutableObject<>. คืนค่า: mutableObject.getValue().
Parameters
int iint jLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
NoiseColumn result = instance.getBaseColumn(0, 0, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#getBaseHeight(int,int,Heightmap.Types,LevelHeightAccessor,RandomState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:113 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Base Height
ทำงานยังไง
เรียกต่อ: iterateNoiseColumn(), isOpaque(), orElse(), getMinY(). คืนค่า: this.iterateNoiseColumn(levelHeightAccessor, randomState, i, j, null, types.isOpaque()).orElse(levelHeightAccessor.getMinY()).
Parameters
int iint jHeightmap.Types typesLevelHeightAccessor levelHeightAccessorRandomState randomState
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
Heightmap.Types types = ...;
LevelHeightAccessor levelHeightAccessor = ...;
RandomState randomState = ...;
int result = instance.getBaseHeight(0, 0, types, levelHeightAccessor, randomState);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#getGenDepth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:410 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gen Depth
ทำงานยังไง
เรียกต่อ: value(), noiseSettings(), height(). คืนค่า: this.settings.value().noiseSettings().height().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#getMinY()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:420 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Y
ทำงานยังไง
เรียกต่อ: value(), noiseSettings(), minY(). คืนค่า: this.settings.value().noiseSettings().minY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:415 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
เรียกต่อ: value(), seaLevel(). คืนค่า: this.settings.value().seaLevel().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#NoiseBasedChunkGenerator(BiomeSource,Holder<NoiseGeneratorSettings>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:61 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NoiseBasedChunkGenerator ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: settings, globalFluidPicker. เรียกต่อ: memoize(), createFluidPicker(), value().
Parameters
BiomeSource biomeSourceHolder<NoiseGeneratorSettings> holder
ตัวอย่างใช้งาน
BiomeSource biomeSource = ...;
Holder<NoiseGeneratorSettings> holder = ...;
NoiseBasedChunkGenerator instance = new NoiseBasedChunkGenerator(biomeSource, holder);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#spawnOriginalMobs(WorldGenRegion)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:425 - Modifiers:
public - Return:
void
คืออะไร
สร้าง entity ในโลก Original Mobs
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: value(), disableMobGeneration(), getCenter(), getBiome(), getWorldPosition(), atY(), getMaxY(), generateUniqueSeed(). สร้างออบเจ็กต์: WorldgenRandom, LegacyRandomSource.
Parameters
WorldGenRegion worldGenRegion
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
WorldGenRegion worldGenRegion = ...;
instance.spawnOriginalMobs(worldGenRegion);
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator#stable(ResourceKey<NoiseGeneratorSettings>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java:109 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stable ตาม implementation ของ NoiseBasedChunkGenerator
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: this.settings.is(resourceKey).
Parameters
ResourceKey<NoiseGeneratorSettings> resourceKey
ตัวอย่างใช้งาน
NoiseBasedChunkGenerator instance = ...;
ResourceKey<NoiseGeneratorSettings> resourceKey = ...;
boolean result = instance.stable(resourceKey);
NoiseChunk
- Full name:
net.minecraft.world.level.levelgen.NoiseChunk - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseChunk.java - Type:
class - Modifiers:
public - Implements:
DensityFunction.ContextProvider,DensityFunction.FunctionContext
net.minecraft.world.level.levelgen.NoiseChunk#advanceCellX(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:249 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ advanceCellX ตาม implementation ของ NoiseChunk
ทำงานยังไง
แก้ state: cellStartBlockX. เรียกต่อ: fillSlice().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#aquifer()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:339 - Modifiers:
public - Return:
Aquifer
คืออะไร
ดำเนินการ aquifer ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.aquifer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#blockX()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:180 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ blockX ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.cellStartBlockX + this.inCellX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#blockY()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:185 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ blockY ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.cellStartBlockY + this.inCellY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#blockZ()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:190 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ blockZ ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.cellStartBlockZ + this.inCellZ.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#cachedClimateSampler(NoiseRouter,List<Climate.ParameterPoint>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:163 - Modifiers:
protected - Return:
Climate.Sampler
คืออะไร
ดำเนินการ cachedClimateSampler ตาม implementation ของ NoiseChunk
ทำงานยังไง
เรียกต่อ: Sampler(), temperature(), mapAll(), vegetation(), continents(), erosion(), depth(), ridges(). สร้างออบเจ็กต์: Climate.Sampler.
Parameters
NoiseRouter noiseRouterList<Climate.ParameterPoint> list
ตัวอย่างใช้งาน
NoiseRouter noiseRouter = ...;
List<Climate.ParameterPoint> list = ...;
@Override
protected Climate.Sampler cachedClimateSampler(NoiseRouter noiseRouter, List<Climate.ParameterPoint> list) {
return super.cachedClimateSampler(noiseRouter, list);
}
net.minecraft.world.level.levelgen.NoiseChunk#cellHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:347 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ cellHeight ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.cellHeight.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#cellWidth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:343 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ cellWidth ตาม implementation ของ NoiseChunk
ทำงานยังไง
คืนค่า: this.cellWidth.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#fillAllDirectly(double[],DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:266 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillAllDirectly ตาม implementation ของ NoiseChunk
ทำงานยังไง
มีการวนลูป. แก้ state: arrayIndex, inCellY, inCellX, inCellZ. เรียกต่อ: compute().
Parameters
double[] dsDensityFunction densityFunction
ตัวอย่างใช้งาน
NoiseChunk instance = ...;
double[] ds = ...;
DensityFunction densityFunction = ...;
instance.fillAllDirectly(ds, densityFunction);
net.minecraft.world.level.levelgen.NoiseChunk#forChunk(ChunkAccess,RandomState,DensityFunctions.BeardifierOrMarker,NoiseGeneratorSettings,Aquifer.FluidPicker,Blender)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:81 - Modifiers:
public static - Return:
NoiseChunk
คืออะไร
ดำเนินการ forChunk ตาม implementation ของ NoiseChunk
ทำงานยังไง
เรียกต่อ: noiseSettings(), clampToHeightAccessor(), getPos(), getCellWidth(), getMinBlockX(), getMinBlockZ(). สร้างออบเจ็กต์: NoiseChunk.
Parameters
ChunkAccess chunkAccessRandomState randomStateDensityFunctions.BeardifierOrMarker beardifierOrMarkerNoiseGeneratorSettings noiseGeneratorSettingsAquifer.FluidPicker fluidPickerBlender blender
ตัวอย่างใช้งาน
ChunkAccess chunkAccess = ...;
RandomState randomState = ...;
DensityFunctions.BeardifierOrMarker beardifierOrMarker = ...;
NoiseGeneratorSettings noiseGeneratorSettings = ...;
Aquifer.FluidPicker fluidPicker = ...;
Blender blender = ...;
NoiseChunk result = NoiseChunk.forChunk(chunkAccess, randomState, beardifierOrMarker, noiseGeneratorSettings, fluidPicker, blender);
net.minecraft.world.level.levelgen.NoiseChunk#forIndex(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:254 - Modifiers:
public - Return:
NoiseChunk
คืออะไร
ดำเนินการ forIndex ตาม implementation ของ NoiseChunk
ทำงานยังไง
แก้ state: inCellX, inCellY, inCellZ, arrayIndex. เรียกต่อ: floorMod(), floorDiv(). คืนค่า: this.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#getBlender()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:215 - Modifiers:
public - Return:
Blender
คืออะไร
อ่านค่า Blender
ทำงานยังไง
คืนค่า: this.blender.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#getInterpolatedState()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:175 - Modifiers:
protected - Return:
BlockState
คืออะไร
อ่านค่า Interpolated State
ทำงานยังไง
เรียกต่อ: calculate(). คืนค่า: this.blockStateRule.calculate(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#initializeForFirstCellX()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:239 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ initializeForFirstCellX ตาม implementation ของ NoiseChunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: interpolating, interpolationCounter. เรียกต่อ: fillSlice(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#NoiseChunk(int,RandomState,int,int,NoiseSettings,DensityFunctions.BeardifierOrMarker,NoiseGeneratorSettings,Aquifer.FluidPicker,Blender)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:97 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NoiseChunk ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: noiseSettings, cellWidth, cellHeight, cellCountXZ, cellCountY, cellNoiseMinY. เรียกต่อ: getCellWidth(), getCellHeight(), floorDiv(), height(), minY(), newArrayList(), fromBlock(), FlatCache(). สร้างออบเจ็กต์: NoiseChunk.FlatCache, NoiseChunk.BlendAlpha, NoiseChunk.BlendOffset, ChunkPos.
Parameters
int iRandomState randomStateint jint kNoiseSettings noiseSettingsDensityFunctions.BeardifierOrMarker beardifierOrMarkerNoiseGeneratorSettings noiseGeneratorSettingsAquifer.FluidPicker fluidPickerBlender blender
ตัวอย่างใช้งาน
RandomState randomState = ...;
NoiseSettings noiseSettings = ...;
DensityFunctions.BeardifierOrMarker beardifierOrMarker = ...;
NoiseGeneratorSettings noiseGeneratorSettings = ...;
Aquifer.FluidPicker fluidPicker = ...;
Blender blender = ...;
NoiseChunk instance = new NoiseChunk(0, randomState, 0, 0, noiseSettings, beardifierOrMarker, noiseGeneratorSettings, fluidPicker, blender);
net.minecraft.world.level.levelgen.NoiseChunk#preliminarySurfaceLevel(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:195 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ preliminarySurfaceLevel ตาม implementation ของ NoiseChunk
ทำงานยังไง
เรียกต่อ: toBlock(), fromBlock(), computeIfAbsent(), asLong(). คืนค่า: this.preliminarySurfaceLevel.computeIfAbsent(ColumnPos.asLong(k, l), this::computePreliminarySurfaceLevel).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#selectCellYZ(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:284 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ selectCellYZ ตาม implementation ของ NoiseChunk
ทำงานยังไง
มีการวนลูป. แก้ state: fillingCell, cellStartBlockY, cellStartBlockZ, arrayInterpolationCounter. เรียกต่อ: fillArray().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#stopInterpolation()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:327 - Modifiers:
public - Return:
void
คืออะไร
หยุด Interpolation
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: interpolating. สร้างออบเจ็กต์: IllegalStateException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#swapSlices()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:335 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ swapSlices ตาม implementation ของ NoiseChunk
ทำงานยังไง
เรียกต่อ: forEach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#updateForX(int,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:310 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต For X
ทำงานยังไง
มีการวนลูป. แก้ state: inCellX.
Parameters
int idouble d
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#updateForY(int,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:302 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต For Y
ทำงานยังไง
มีการวนลูป. แก้ state: inCellY.
Parameters
int idouble d
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#updateForZ(int,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:318 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต For Z
ทำงานยังไง
มีการวนลูป. แก้ state: inCellZ, interpolationCounter.
Parameters
int idouble d
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk#wrap(DensityFunction)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:363 - Modifiers:
protected - Return:
DensityFunction
คืออะไร
ดำเนินการ wrap ตาม implementation ของ NoiseChunk
ทำงานยังไง
เรียกต่อ: computeIfAbsent(). คืนค่า: this.wrapped.computeIfAbsent(densityFunction, this::wrapNew).
Parameters
DensityFunction densityFunction
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
@Override
protected DensityFunction wrap(DensityFunction densityFunction) {
return super.wrap(densityFunction);
}
NoiseChunk$BlockStateFiller
- Full name:
net.minecraft.world.level.levelgen.NoiseChunk$BlockStateFiller - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseChunk.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.NoiseChunk$BlockStateFiller#calculate(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:471 - Modifiers: ``
- Return:
BlockState
คืออะไร
คำนวณ calculate
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
NoiseChunk.BlockStateFiller instance = ...;
DensityFunction.FunctionContext functionContext = ...;
BlockState result = instance.calculate(functionContext);
NoiseChunk$NoiseInterpolator
- Full name:
net.minecraft.world.level.levelgen.NoiseChunk$NoiseInterpolator - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseChunk.java - Type:
class - Modifiers:
public - Implements:
DensityFunctions.MarkerOrMarked,NoiseChunk.NoiseChunkDensityFunction
net.minecraft.world.level.levelgen.NoiseChunk$NoiseInterpolator#compute(DensityFunction.FunctionContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:745 - Modifiers:
public - Return:
double
คืออะไร
คำนวณ compute
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: lerp3(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.noiseFiller.compute(functionContext).
Parameters
DensityFunction.FunctionContext functionContext
ตัวอย่างใช้งาน
NoiseChunk.NoiseInterpolator instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.compute(functionContext);
net.minecraft.world.level.levelgen.NoiseChunk$NoiseInterpolator#fillArray(double[],DensityFunction.ContextProvider)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:770 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillArray ตาม implementation ของ NoiseChunk$NoiseInterpolator
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fillAllDirectly(), wrapped().
Parameters
double[] dsDensityFunction.ContextProvider contextProvider
ตัวอย่างใช้งาน
NoiseChunk.NoiseInterpolator instance = ...;
double[] ds = ...;
DensityFunction.ContextProvider contextProvider = ...;
instance.fillArray(ds, contextProvider);
net.minecraft.world.level.levelgen.NoiseChunk$NoiseInterpolator#type()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:790 - Modifiers:
public - Return:
DensityFunctions.Marker.Type
คืออะไร
ดำเนินการ type ตาม implementation ของ NoiseChunk$NoiseInterpolator
ทำงานยังไง
คืนค่า: DensityFunctions.Marker.Type.Interpolated.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseChunk$NoiseInterpolator#wrapped()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseChunk.java:779 - Modifiers:
public - Return:
DensityFunction
คืออะไร
ดำเนินการ wrapped ตาม implementation ของ NoiseChunk$NoiseInterpolator
ทำงานยังไง
คืนค่า: this.noiseFiller.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NoiseGeneratorSettings
- Full name:
net.minecraft.world.level.levelgen.NoiseGeneratorSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseGeneratorSettings.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.NoiseGeneratorSettings#bootstrap(BootstrapContext<NoiseGeneratorSettings>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseGeneratorSettings.java:72 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ NoiseGeneratorSettings
ทำงานยังไง
เรียกต่อ: register(), overworld(), nether(), end(), caves(), floatingIslands().
Parameters
BootstrapContext<NoiseGeneratorSettings> bootstrapContext
ตัวอย่างใช้งาน
BootstrapContext<NoiseGeneratorSettings> bootstrapContext = ...;
NoiseGeneratorSettings.bootstrap(bootstrapContext);
net.minecraft.world.level.levelgen.NoiseGeneratorSettings#dummy()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseGeneratorSettings.java:162 - Modifiers:
public static - Return:
NoiseGeneratorSettings
คืออะไร
ดำเนินการ dummy ตาม implementation ของ NoiseGeneratorSettings
ทำงานยังไง
เรียกต่อ: defaultBlockState(), none(), air(), of(). สร้างออบเจ็กต์: NoiseGeneratorSettings.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseGeneratorSettings#getRandomSource()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseGeneratorSettings.java:68 - Modifiers:
public - Return:
WorldgenRandom.Algorithm
คืออะไร
อ่านค่า Random Source
ทำงานยังไง
คืนค่า: this.useLegacyRandomSource ? WorldgenRandom.Algorithm.LEGACY : WorldgenRandom.Algorithm.XOROSHIRO.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NoiseGeneratorSettings instance = ...;
WorldgenRandom.Algorithm result = instance.getRandomSource();
net.minecraft.world.level.levelgen.NoiseGeneratorSettings#isAquifersEnabled()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseGeneratorSettings.java:64 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Aquifers Enabled
ทำงานยังไง
คืนค่า: this.aquifersEnabled.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NoiseRouter
- Full name:
net.minecraft.world.level.levelgen.NoiseRouter - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseRouter.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.NoiseRouter#mapAll(DensityFunction.Visitor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouter.java:49 - Modifiers:
public - Return:
NoiseRouter
คืออะไร
ดำเนินการ mapAll ตาม implementation ของ NoiseRouter
ทำงานยังไง
สร้างออบเจ็กต์: NoiseRouter.
Parameters
DensityFunction.Visitor visitor
ตัวอย่างใช้งาน
NoiseRouter instance = ...;
DensityFunction.Visitor visitor = ...;
NoiseRouter result = instance.mapAll(visitor);
NoiseRouterData
- Full name:
net.minecraft.world.level.levelgen.NoiseRouterData - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseRouterData.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.NoiseRouterData#bootstrap(BootstrapContext<DensityFunction>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:66 - Modifiers:
public static - Return:
Holder<? extends DensityFunction>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: lookup(), register(), zero(), yClampedGradient(), registerAndWrap(), flatCache(), cache2d(), shiftA(). คืนค่า: bootstrapContext.register(PILLARS, pillars(holderGetter)).
Parameters
BootstrapContext<DensityFunction> bootstrapContext
ตัวอย่างใช้งาน
BootstrapContext<DensityFunction> bootstrapContext = ...;
Holder<? extends DensityFunction> result = NoiseRouterData.bootstrap(bootstrapContext);
net.minecraft.world.level.levelgen.NoiseRouterData#caves(HolderGetter<DensityFunction>,HolderGetter<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:406 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ caves ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: noNewCaves(), slideNetherLike(). คืนค่า: noNewCaves(holderGetter, holderGetter2, slideNetherLike(holderGetter, -64, 192)).
Parameters
HolderGetter<DensityFunction> holderGetterHolderGetter<NormalNoise.NoiseParameters> holderGetter2
ตัวอย่างใช้งาน
HolderGetter<DensityFunction> holderGetter = ...;
HolderGetter<NormalNoise.NoiseParameters> holderGetter2 = ...;
@Override
protected NoiseRouter caves(HolderGetter<DensityFunction> holderGetter, HolderGetter<NormalNoise.NoiseParameters> holderGetter2) {
return super.caves(holderGetter, holderGetter2);
}
net.minecraft.world.level.levelgen.NoiseRouterData#end(HolderGetter<DensityFunction>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:418 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ end ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: cache2d(), endIslands(), postProcess(), slideEnd(), getFunction(), zero(), add(), constant(). สร้างออบเจ็กต์: NoiseRouter.
Parameters
HolderGetter<DensityFunction> holderGetter
ตัวอย่างใช้งาน
HolderGetter<DensityFunction> holderGetter = ...;
@Override
protected NoiseRouter end(HolderGetter<DensityFunction> holderGetter) {
return super.end(holderGetter);
}
net.minecraft.world.level.levelgen.NoiseRouterData#floatingIslands(HolderGetter<DensityFunction>,HolderGetter<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:410 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ floatingIslands ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: noNewCaves(), slideEndLike(), getFunction(). คืนค่า: noNewCaves(holderGetter, holderGetter2, slideEndLike(getFunction(holderGetter, BASE_3D_NOISE_END), 0, 256)).
Parameters
HolderGetter<DensityFunction> holderGetterHolderGetter<NormalNoise.NoiseParameters> holderGetter2
ตัวอย่างใช้งาน
HolderGetter<DensityFunction> holderGetter = ...;
HolderGetter<NormalNoise.NoiseParameters> holderGetter2 = ...;
@Override
protected NoiseRouter floatingIslands(HolderGetter<DensityFunction> holderGetter, HolderGetter<NormalNoise.NoiseParameters> holderGetter2) {
return super.floatingIslands(holderGetter, holderGetter2);
}
net.minecraft.world.level.levelgen.NoiseRouterData#nether(HolderGetter<DensityFunction>,HolderGetter<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:402 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ nether ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: noNewCaves(), slideNetherLike(). คืนค่า: noNewCaves(holderGetter, holderGetter2, slideNetherLike(holderGetter, 0, 128)).
Parameters
HolderGetter<DensityFunction> holderGetterHolderGetter<NormalNoise.NoiseParameters> holderGetter2
ตัวอย่างใช้งาน
HolderGetter<DensityFunction> holderGetter = ...;
HolderGetter<NormalNoise.NoiseParameters> holderGetter2 = ...;
@Override
protected NoiseRouter nether(HolderGetter<DensityFunction> holderGetter, HolderGetter<NormalNoise.NoiseParameters> holderGetter2) {
return super.nether(holderGetter, holderGetter2);
}
net.minecraft.world.level.levelgen.NoiseRouterData#none()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:440 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ none ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: zero(). สร้างออบเจ็กต์: NoiseRouter.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseRouterData#overworld(HolderGetter<DensityFunction>,HolderGetter<NormalNoise.NoiseParameters>,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:301 - Modifiers:
protected static - Return:
NoiseRouter
คืออะไร
ดำเนินการ overworld ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: noise(), getOrThrow(), getFunction(), shiftedNoise2d(), noiseGradientDensity(), cache2d(), min(), mul(). สร้างออบเจ็กต์: NoiseRouter.
Parameters
HolderGetter<DensityFunction> holderGetterHolderGetter<NormalNoise.NoiseParameters> holderGetter2boolean blboolean bl2
ตัวอย่างใช้งาน
HolderGetter<DensityFunction> holderGetter = ...;
HolderGetter<NormalNoise.NoiseParameters> holderGetter2 = ...;
@Override
protected NoiseRouter overworld(HolderGetter<DensityFunction> holderGetter, HolderGetter<NormalNoise.NoiseParameters> holderGetter2, boolean bl, boolean bl2) {
return super.overworld(holderGetter, holderGetter2, bl, bl2);
}
net.minecraft.world.level.levelgen.NoiseRouterData#peaksAndValleys(float)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:197 - Modifiers:
public static - Return:
float
คืออะไร
ดำเนินการ peaksAndValleys ตาม implementation ของ NoiseRouterData
ทำงานยังไง
เรียกต่อ: abs(). คืนค่า: -(Math.abs(Math.abs(f) - 0.6666667F) - 0.33333334F) * 3.0F.
Parameters
float f
ตัวอย่างใช้งาน
NoiseRouterData$QuantizedSpaghettiRarity
- Full name:
net.minecraft.world.level.levelgen.NoiseRouterData$QuantizedSpaghettiRarity - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseRouterData.java - Type:
class - Modifiers:
protected static final
net.minecraft.world.level.levelgen.NoiseRouterData$QuantizedSpaghettiRarity#getSpaghettiRarity3D(double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:495 - Modifiers:
protected static - Return:
double
คืออะไร
อ่านค่า Spaghetti Rarity3 D
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 3 จุด.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseRouterData$QuantizedSpaghettiRarity#getSphaghettiRarity2D(double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseRouterData.java:483 - Modifiers:
protected static - Return:
double
คืออะไร
อ่านค่า Sphaghetti Rarity2 D
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 4 จุด.
Parameters
double d
ตัวอย่างใช้งาน
@Override
protected double getSphaghettiRarity2D(double d) {
return super.getSphaghettiRarity2D(d);
}
Noises
- Full name:
net.minecraft.world.level.levelgen.Noises - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Noises.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.Noises#instantiate(HolderGetter<NormalNoise.NoiseParameters>,PositionalRandomFactory,ResourceKey<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Noises.java:76 - Modifiers:
public static - Return:
NormalNoise
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ Noises
ทำงานยังไง
เรียกต่อ: getOrThrow(), create(), fromHashOf(), unwrapKey(), orElseThrow(), location(), value(). คืนค่า: NormalNoise.create(positionalRandomFactory.fromHashOf(holder.unwrapKey().orElseThrow().location()), holder.value()).
Parameters
HolderGetter<NormalNoise.NoiseParameters> holderGetterPositionalRandomFactory positionalRandomFactoryResourceKey<NormalNoise.NoiseParameters> resourceKey
ตัวอย่างใช้งาน
HolderGetter<NormalNoise.NoiseParameters> holderGetter = ...;
PositionalRandomFactory positionalRandomFactory = ...;
ResourceKey<NormalNoise.NoiseParameters> resourceKey = ...;
NormalNoise result = Noises.instantiate(holderGetter, positionalRandomFactory, resourceKey);
NoiseSettings
- Full name:
net.minecraft.world.level.levelgen.NoiseSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/NoiseSettings.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.NoiseSettings#clampToHeightAccessor(LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseSettings.java:54 - Modifiers:
public - Return:
NoiseSettings
คืออะไร
ดำเนินการ clampToHeightAccessor ตาม implementation ของ NoiseSettings
ทำงานยังไง
เรียกต่อ: max(), getMinY(), min(), getMaxY(). สร้างออบเจ็กต์: NoiseSettings. คืนค่า: new NoiseSettings(i, j, this.noiseSizeHorizontal, this.noiseSizeVertical).
Parameters
LevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
NoiseSettings instance = ...;
LevelHeightAccessor levelHeightAccessor = ...;
NoiseSettings result = instance.clampToHeightAccessor(levelHeightAccessor);
net.minecraft.world.level.levelgen.NoiseSettings#create(int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseSettings.java:38 - Modifiers:
public static - Return:
NoiseSettings
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: guardY(), error(), ifPresent(), message(). สร้างออบเจ็กต์: NoiseSettings, IllegalStateException. คืนค่า: noiseSettings.
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseSettings#getCellHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseSettings.java:46 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Cell Height
ทำงานยังไง
เรียกต่อ: toBlock(), noiseSizeVertical(). คืนค่า: QuartPos.toBlock(this.noiseSizeVertical()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.NoiseSettings#getCellWidth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/NoiseSettings.java:50 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Cell Width
ทำงานยังไง
เรียกต่อ: toBlock(), noiseSizeHorizontal(). คืนค่า: QuartPos.toBlock(this.noiseSizeHorizontal()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
OreVeinifier
- Full name:
net.minecraft.world.level.levelgen.OreVeinifier - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/OreVeinifier.java - Type:
class - Modifiers:
public final
net.minecraft.world.level.levelgen.OreVeinifier#create(DensityFunction,DensityFunction,DensityFunction,PositionalRandomFactory)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/OreVeinifier.java:22 - Modifiers:
protected static - Return:
NoiseChunk.BlockStateFiller
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: compute(), blockY(), abs(), min(), clampedMap(), at(), blockX(), blockZ(). มีจุด return อย่างน้อย 7 จุด.
Parameters
DensityFunction densityFunctionDensityFunction densityFunction2DensityFunction densityFunction3PositionalRandomFactory positionalRandomFactory
ตัวอย่างใช้งาน
DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction densityFunction3 = ...;
PositionalRandomFactory positionalRandomFactory = ...;
@Override
protected NoiseChunk.BlockStateFiller create(DensityFunction densityFunction, DensityFunction densityFunction2, DensityFunction densityFunction3, PositionalRandomFactory positionalRandomFactory) {
return super.create(densityFunction, densityFunction2, densityFunction3, positionalRandomFactory);
}
PatrolSpawner
- Full name:
net.minecraft.world.level.levelgen.PatrolSpawner - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/PatrolSpawner.java - Type:
class - Modifiers:
public - Implements:
CustomSpawner
net.minecraft.world.level.levelgen.PatrolSpawner#tick(ServerLevel,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PatrolSpawner.java:21 - Modifiers:
public - Return:
int
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: nextTick. เรียกต่อ: getGameRules(), getBoolean(), nextInt(), getDayTime(), isDay(), players(), size(), get(). มีจุด return อย่างน้อย 11 จุด.
Parameters
ServerLevel serverLevelboolean blboolean bl2
ตัวอย่างใช้งาน
PatrolSpawner instance = ...;
ServerLevel serverLevel = ...;
int result = instance.tick(serverLevel, true, true);
PhantomSpawner
- Full name:
net.minecraft.world.level.levelgen.PhantomSpawner - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/PhantomSpawner.java - Type:
class - Modifiers:
public - Implements:
CustomSpawner
net.minecraft.world.level.levelgen.PhantomSpawner#tick(ServerLevel,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PhantomSpawner.java:24 - Modifiers:
public - Return:
int
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: nextTick. เรียกต่อ: getGameRules(), getBoolean(), nextInt(), getSkyDarken(), dimensionType(), hasSkyLight(), players(), isSpectator(). มีจุด return อย่างน้อย 5 จุด.
Parameters
ServerLevel serverLevelboolean blboolean bl2
ตัวอย่างใช้งาน
PhantomSpawner instance = ...;
ServerLevel serverLevel = ...;
int result = instance.tick(serverLevel, true, true);
PositionalRandomFactory
- Full name:
net.minecraft.world.level.levelgen.PositionalRandomFactory - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/PositionalRandomFactory.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.PositionalRandomFactory#at(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:9 - Modifiers:
default - Return:
RandomSource
คืออะไร
ดำเนินการ at ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: this.at(blockPos.getX(), blockPos.getY(), blockPos.getZ()).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
PositionalRandomFactory instance = ...;
BlockPos blockPos = ...;
RandomSource result = instance.at(blockPos);
net.minecraft.world.level.levelgen.PositionalRandomFactory#at(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:21 - Modifiers: ``
- Return:
RandomSource
คืออะไร
ดำเนินการ at ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.PositionalRandomFactory#fromHashOf(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:13 - Modifiers:
default - Return:
RandomSource
คืออะไร
ดำเนินการ fromHashOf ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
เรียกต่อ: toString(). คืนค่า: this.fromHashOf(resourceLocation.toString()).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
PositionalRandomFactory instance = ...;
ResourceLocation resourceLocation = ...;
RandomSource result = instance.fromHashOf(resourceLocation);
net.minecraft.world.level.levelgen.PositionalRandomFactory#fromHashOf(String)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:17 - Modifiers: ``
- Return:
RandomSource
คืออะไร
ดำเนินการ fromHashOf ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.PositionalRandomFactory#fromSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:19 - Modifiers: ``
- Return:
RandomSource
คืออะไร
ดำเนินการ fromSeed ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.PositionalRandomFactory#parityConfigString(StringBuilder)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/PositionalRandomFactory.java:23 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ parityConfigString ตาม implementation ของ PositionalRandomFactory
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
StringBuilder stringBuilder
ตัวอย่างใช้งาน
PositionalRandomFactory instance = ...;
StringBuilder stringBuilder = ...;
instance.parityConfigString(stringBuilder);
RandomState
- Full name:
net.minecraft.world.level.levelgen.RandomState - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/RandomState.java - Type:
class - Modifiers:
public final
net.minecraft.world.level.levelgen.RandomState#aquiferRandom()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:139 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ aquiferRandom ตาม implementation ของ RandomState
ทำงานยังไง
คืนค่า: this.aquiferRandom.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomState#create(HolderGetter.Provider,ResourceKey<NoiseGeneratorSettings>,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:27 - Modifiers:
public static - Return:
RandomState
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: lookupOrThrow(), getOrThrow(), value(). คืนค่า: create(provider.lookupOrThrow(Registries.NOISE_SETTINGS).getOrThrow(resourceKey).value(), provider.lookupOrThrow(Registries.NOISE), l).
Parameters
HolderGetter.Provider providerResourceKey<NoiseGeneratorSettings> resourceKeylong l
ตัวอย่างใช้งาน
HolderGetter.Provider provider = ...;
ResourceKey<NoiseGeneratorSettings> resourceKey = ...;
RandomState result = RandomState.create(provider, resourceKey, 0L);
net.minecraft.world.level.levelgen.RandomState#create(NoiseGeneratorSettings,HolderGetter<NormalNoise.NoiseParameters>,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:31 - Modifiers:
public static - Return:
RandomState
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: RandomState. คืนค่า: new RandomState(noiseGeneratorSettings, holderGetter, l).
Parameters
NoiseGeneratorSettings noiseGeneratorSettingsHolderGetter<NormalNoise.NoiseParameters> holderGetterlong l
ตัวอย่างใช้งาน
NoiseGeneratorSettings noiseGeneratorSettings = ...;
HolderGetter<NormalNoise.NoiseParameters> holderGetter = ...;
RandomState result = RandomState.create(noiseGeneratorSettings, holderGetter, 0L);
net.minecraft.world.level.levelgen.RandomState#getOrCreateNoise(ResourceKey<NormalNoise.NoiseParameters>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:119 - Modifiers:
public - Return:
NormalNoise
คืออะไร
อ่านค่า Or Create Noise
ทำงานยังไง
เรียกต่อ: computeIfAbsent(), instantiate(). คืนค่า: this.noiseIntances.computeIfAbsent(resourceKey, resourceKey2 -> Noises.instantiate(this.noises, this.random, resourceKey)).
Parameters
ResourceKey<NormalNoise.NoiseParameters> resourceKey
ตัวอย่างใช้งาน
RandomState instance = ...;
ResourceKey<NormalNoise.NoiseParameters> resourceKey = ...;
NormalNoise result = instance.getOrCreateNoise(resourceKey);
net.minecraft.world.level.levelgen.RandomState#getOrCreateRandomFactory(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:123 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
อ่านค่า Or Create Random Factory
ทำงานยังไง
เรียกต่อ: computeIfAbsent(), fromHashOf(), forkPositional(). คืนค่า: this.positionalRandoms.computeIfAbsent(resourceLocation, resourceLocation2 -> this.random.fromHashOf(resourceLocation).forkPositional()).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
RandomState instance = ...;
ResourceLocation resourceLocation = ...;
PositionalRandomFactory result = instance.getOrCreateRandomFactory(resourceLocation);
net.minecraft.world.level.levelgen.RandomState#oreRandom()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:143 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ oreRandom ตาม implementation ของ RandomState
ทำงานยังไง
คืนค่า: this.oreRandom.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomState#router()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:127 - Modifiers:
public - Return:
NoiseRouter
คืออะไร
ดำเนินการ router ตาม implementation ของ RandomState
ทำงานยังไง
คืนค่า: this.router.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomState#sampler()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:131 - Modifiers:
public - Return:
Climate.Sampler
คืออะไร
ดำเนินการ sampler ตาม implementation ของ RandomState
ทำงานยังไง
คืนค่า: this.sampler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomState#surfaceSystem()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomState.java:135 - Modifiers:
public - Return:
SurfaceSystem
คืออะไร
ดำเนินการ surfaceSystem ตาม implementation ของ RandomState
ทำงานยังไง
คืนค่า: this.surfaceSystem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RandomSupport
- Full name:
net.minecraft.world.level.levelgen.RandomSupport - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/RandomSupport.java - Type:
class - Modifiers:
public final
net.minecraft.world.level.levelgen.RandomSupport#generateUniqueSeed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:40 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ generateUniqueSeed ตาม implementation ของ RandomSupport
ทำงานยังไง
เรียกต่อ: updateAndGet(), nanoTime(). คืนค่า: SEED_UNIQUIFIER.updateAndGet(l -> l * 1181783497276652981L) ^ System.nanoTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport#mixStafford13(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:16 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ mixStafford13 ตาม implementation ของ RandomSupport
ทำงานยังไง
คืนค่า: l ^ l >>> 31.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport#seedFromHashOf(String)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:33 - Modifiers:
public static - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ seedFromHashOf ตาม implementation ของ RandomSupport
ทำงานยังไง
เรียกต่อ: hashString(), asBytes(), fromBytes(), Seed128bit(). สร้างออบเจ็กต์: RandomSupport.Seed128bit. คืนค่า: new RandomSupport.Seed128bit(l, m).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport#upgradeSeedTo128bit(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:29 - Modifiers:
public static - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ upgradeSeedTo128bit ตาม implementation ของ RandomSupport
ทำงานยังไง
เรียกต่อ: upgradeSeedTo128bitUnmixed(), mixed(). คืนค่า: upgradeSeedTo128bitUnmixed(l).mixed().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport#upgradeSeedTo128bitUnmixed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:23 - Modifiers:
public static - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ upgradeSeedTo128bitUnmixed ตาม implementation ของ RandomSupport
ทำงานยังไง
เรียกต่อ: Seed128bit(). สร้างออบเจ็กต์: RandomSupport.Seed128bit. คืนค่า: new RandomSupport.Seed128bit(m, n).
Parameters
long l
ตัวอย่างใช้งาน
RandomSupport$Seed128bit
- Full name:
net.minecraft.world.level.levelgen.RandomSupport$Seed128bit - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/RandomSupport.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.RandomSupport$Seed128bit#mixed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:53 - Modifiers:
public - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ mixed ตาม implementation ของ RandomSupport$Seed128bit
ทำงานยังไง
เรียกต่อ: Seed128bit(), mixStafford13(). สร้างออบเจ็กต์: RandomSupport.Seed128bit. คืนค่า: new RandomSupport.Seed128bit(RandomSupport.mixStafford13(this.seedLo), RandomSupport.mixStafford13(this.seedHi)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport$Seed128bit#xor(long,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:45 - Modifiers:
public - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ xor ตาม implementation ของ RandomSupport$Seed128bit
ทำงานยังไง
เรียกต่อ: Seed128bit(). สร้างออบเจ็กต์: RandomSupport.Seed128bit. คืนค่า: new RandomSupport.Seed128bit(this.seedLo ^ l, this.seedHi ^ m).
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.RandomSupport$Seed128bit#xor(RandomSupport.Seed128bit)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/RandomSupport.java:49 - Modifiers:
public - Return:
RandomSupport.Seed128bit
คืออะไร
ดำเนินการ xor ตาม implementation ของ RandomSupport$Seed128bit
ทำงานยังไง
คืนค่า: this.xor(seed128bit.seedLo, seed128bit.seedHi).
Parameters
RandomSupport.Seed128bit seed128bit
ตัวอย่างใช้งาน
RandomSupport.Seed128bit instance = ...;
RandomSupport.Seed128bit seed128bit = ...;
RandomSupport.Seed128bit result = instance.xor(seed128bit);
SingleThreadedRandomSource
- Full name:
net.minecraft.world.level.levelgen.SingleThreadedRandomSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java - Type:
class - Modifiers:
public - Implements:
BitRandomSource
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#fork()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:17 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fork ตาม implementation ของ SingleThreadedRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). สร้างออบเจ็กต์: SingleThreadedRandomSource. คืนค่า: new SingleThreadedRandomSource(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#forkPositional()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:22 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ forkPositional ตาม implementation ของ SingleThreadedRandomSource
ทำงานยังไง
เรียกต่อ: LegacyPositionalRandomFactory(), nextLong(). สร้างออบเจ็กต์: LegacyRandomSource.LegacyPositionalRandomFactory. คืนค่า: new LegacyRandomSource.LegacyPositionalRandomFactory(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SingleThreadedRandomSource instance = ...;
PositionalRandomFactory result = instance.forkPositional();
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#next(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:33 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ next ตาม implementation ของ SingleThreadedRandomSource
ทำงานยังไง
แก้ state: seed. คืนค่า: (int)(l >> 48 - i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#nextGaussian()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:40 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextGaussian ตาม implementation ของ SingleThreadedRandomSource
ทำงานยังไง
คืนค่า: this.gaussianSource.nextGaussian().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:27 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
แก้ state: seed. เรียกต่อ: reset().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SingleThreadedRandomSource#SingleThreadedRandomSource(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SingleThreadedRandomSource.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SingleThreadedRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setSeed().
Parameters
long l
ตัวอย่างใช้งาน
SurfaceRules
- Full name:
net.minecraft.world.level.levelgen.SurfaceRules - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceRules.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.SurfaceRules#abovePreliminarySurface()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:98 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ abovePreliminarySurface ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: SurfaceRules.AbovePreliminarySurface.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#bandlands()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:122 - Modifiers:
public static - Return:
SurfaceRules.RuleSource
คืออะไร
ดำเนินการ bandlands ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: SurfaceRules.Bandlands.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#hole()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:94 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ hole ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: SurfaceRules.Hole.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#ifTrue(SurfaceRules.ConditionSource,SurfaceRules.RuleSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:106 - Modifiers:
public static - Return:
SurfaceRules.RuleSource
คืออะไร
ดำเนินการ ifTrue ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: TestRuleSource(). สร้างออบเจ็กต์: SurfaceRules.TestRuleSource. คืนค่า: new SurfaceRules.TestRuleSource(conditionSource, ruleSource).
Parameters
SurfaceRules.ConditionSource conditionSourceSurfaceRules.RuleSource ruleSource
ตัวอย่างใช้งาน
SurfaceRules.ConditionSource conditionSource = ...;
SurfaceRules.RuleSource ruleSource = ...;
SurfaceRules.RuleSource result = SurfaceRules.ifTrue(conditionSource, ruleSource);
net.minecraft.world.level.levelgen.SurfaceRules#isBiome(ResourceKey<Biome>[])
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:69 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ตรวจสอบสถานะ Biome
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: isBiome(List.of(resourceKeys)).
Parameters
ResourceKey<Biome>[] resourceKeys
ตัวอย่างใช้งาน
ResourceKey<Biome>[] resourceKeys = ...;
SurfaceRules.ConditionSource result = SurfaceRules.isBiome(resourceKeys);
net.minecraft.world.level.levelgen.SurfaceRules#noiseCondition(ResourceKey<NormalNoise.NoiseParameters>,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:78 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ noiseCondition ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: noiseCondition(resourceKey, d, Double.MAX_VALUE).
Parameters
ResourceKey<NormalNoise.NoiseParameters> resourceKeydouble d
ตัวอย่างใช้งาน
ResourceKey<NormalNoise.NoiseParameters> resourceKey = ...;
SurfaceRules.ConditionSource result = SurfaceRules.noiseCondition(resourceKey, 0.0D);
net.minecraft.world.level.levelgen.SurfaceRules#noiseCondition(ResourceKey<NormalNoise.NoiseParameters>,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:82 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ noiseCondition ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: NoiseThresholdConditionSource(). สร้างออบเจ็กต์: SurfaceRules.NoiseThresholdConditionSource. คืนค่า: new SurfaceRules.NoiseThresholdConditionSource(resourceKey, d, e).
Parameters
ResourceKey<NormalNoise.NoiseParameters> resourceKeydouble ddouble e
ตัวอย่างใช้งาน
ResourceKey<NormalNoise.NoiseParameters> resourceKey = ...;
SurfaceRules.ConditionSource result = SurfaceRules.noiseCondition(resourceKey, 0.0D, 0.0D);
net.minecraft.world.level.levelgen.SurfaceRules#not(SurfaceRules.ConditionSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:49 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ not ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: NotConditionSource(). สร้างออบเจ็กต์: SurfaceRules.NotConditionSource. คืนค่า: new SurfaceRules.NotConditionSource(conditionSource).
Parameters
SurfaceRules.ConditionSource conditionSource
ตัวอย่างใช้งาน
SurfaceRules.ConditionSource conditionSource = ...;
SurfaceRules.ConditionSource result = SurfaceRules.not(conditionSource);
net.minecraft.world.level.levelgen.SurfaceRules#sequence(SurfaceRules.RuleSource[])
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:110 - Modifiers:
public static - Return:
SurfaceRules.RuleSource
คืออะไร
ดำเนินการ sequence ตาม implementation ของ SurfaceRules
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: SequenceRuleSource(), asList(). สร้างออบเจ็กต์: IllegalArgumentException, SurfaceRules.SequenceRuleSource. คืนค่า: new SurfaceRules.SequenceRuleSource(Arrays.asList(ruleSources)).
Parameters
SurfaceRules.RuleSource[] ruleSources
ตัวอย่างใช้งาน
SurfaceRules.RuleSource[] ruleSources = ...;
SurfaceRules.RuleSource result = SurfaceRules.sequence(ruleSources);
net.minecraft.world.level.levelgen.SurfaceRules#state(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:118 - Modifiers:
public static - Return:
SurfaceRules.RuleSource
คืออะไร
ดำเนินการ state ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: BlockRuleSource(). สร้างออบเจ็กต์: SurfaceRules.BlockRuleSource. คืนค่า: new SurfaceRules.BlockRuleSource(blockState).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#steep()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:90 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ steep ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: SurfaceRules.Steep.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#stoneDepthCheck(int,boolean,CaveSurface)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:41 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ stoneDepthCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: StoneDepthCheck(). สร้างออบเจ็กต์: SurfaceRules.StoneDepthCheck. คืนค่า: new SurfaceRules.StoneDepthCheck(i, bl, 0, caveSurface).
Parameters
int iboolean blCaveSurface caveSurface
ตัวอย่างใช้งาน
CaveSurface caveSurface = ...;
SurfaceRules.ConditionSource result = SurfaceRules.stoneDepthCheck(0, true, caveSurface);
net.minecraft.world.level.levelgen.SurfaceRules#stoneDepthCheck(int,boolean,int,CaveSurface)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:45 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ stoneDepthCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: StoneDepthCheck(). สร้างออบเจ็กต์: SurfaceRules.StoneDepthCheck. คืนค่า: new SurfaceRules.StoneDepthCheck(i, bl, j, caveSurface).
Parameters
int iboolean blint jCaveSurface caveSurface
ตัวอย่างใช้งาน
CaveSurface caveSurface = ...;
SurfaceRules.ConditionSource result = SurfaceRules.stoneDepthCheck(0, true, 0, caveSurface);
net.minecraft.world.level.levelgen.SurfaceRules#temperature()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:102 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ temperature ตาม implementation ของ SurfaceRules
ทำงานยังไง
คืนค่า: SurfaceRules.Temperature.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#verticalGradient(String,VerticalAnchor,VerticalAnchor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:86 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ verticalGradient ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: VerticalGradientConditionSource(), parse(). สร้างออบเจ็กต์: SurfaceRules.VerticalGradientConditionSource. คืนค่า: new SurfaceRules.VerticalGradientConditionSource(ResourceLocation.parse(string), verticalAnchor, verticalAnchor2).
Parameters
String stringVerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
SurfaceRules.ConditionSource result = SurfaceRules.verticalGradient("value", verticalAnchor, verticalAnchor2);
net.minecraft.world.level.levelgen.SurfaceRules#waterBlockCheck(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:61 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ waterBlockCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: WaterConditionSource(). สร้างออบเจ็กต์: SurfaceRules.WaterConditionSource. คืนค่า: new SurfaceRules.WaterConditionSource(i, j, false).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#waterStartCheck(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:65 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ waterStartCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: WaterConditionSource(). สร้างออบเจ็กต์: SurfaceRules.WaterConditionSource. คืนค่า: new SurfaceRules.WaterConditionSource(i, j, true).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules#yBlockCheck(VerticalAnchor,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:53 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ yBlockCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: YConditionSource(). สร้างออบเจ็กต์: SurfaceRules.YConditionSource. คืนค่า: new SurfaceRules.YConditionSource(verticalAnchor, i, false).
Parameters
VerticalAnchor verticalAnchorint i
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
SurfaceRules.ConditionSource result = SurfaceRules.yBlockCheck(verticalAnchor, 0);
net.minecraft.world.level.levelgen.SurfaceRules#yStartCheck(VerticalAnchor,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:57 - Modifiers:
public static - Return:
SurfaceRules.ConditionSource
คืออะไร
ดำเนินการ yStartCheck ตาม implementation ของ SurfaceRules
ทำงานยังไง
เรียกต่อ: YConditionSource(). สร้างออบเจ็กต์: SurfaceRules.YConditionSource. คืนค่า: new SurfaceRules.YConditionSource(verticalAnchor, i, true).
Parameters
VerticalAnchor verticalAnchorint i
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
SurfaceRules.ConditionSource result = SurfaceRules.yStartCheck(verticalAnchor, 0);
SurfaceRules$ConditionSource
- Full name:
net.minecraft.world.level.levelgen.SurfaceRules$ConditionSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceRules.java - Type:
interface - Modifiers:
public - Implements:
Function<SurfaceRules.Context, SurfaceRules.Condition>
net.minecraft.world.level.levelgen.SurfaceRules$ConditionSource#bootstrap(Registry<MapCodec<? extends SurfaceRules.ConditionSource>>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:240 - Modifiers:
static - Return:
MapCodec<? extends SurfaceRules.ConditionSource>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ SurfaceRules$ConditionSource
ทำงานยังไง
เรียกต่อ: register(). คืนค่า: SurfaceRules.register(registry, "stone_depth", SurfaceRules.StoneDepthCheck.CODEC).
Parameters
Registry<MapCodec<? extends SurfaceRules.ConditionSource>> registry
ตัวอย่างใช้งาน
Registry<MapCodec<? extends SurfaceRules.ConditionSource>> registry = ...;
MapCodec<? extends SurfaceRules.ConditionSource> result = SurfaceRules.ConditionSource.bootstrap(registry);
net.minecraft.world.level.levelgen.SurfaceRules$ConditionSource#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:254 - Modifiers: ``
- Return:
KeyDispatchDataCodec<? extends SurfaceRules.ConditionSource>
คืออะไร
ดำเนินการ codec ตาม implementation ของ SurfaceRules$ConditionSource
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SurfaceRules.ConditionSource instance = ...;
KeyDispatchDataCodec<? extends SurfaceRules.ConditionSource> result = instance.codec();
SurfaceRules$Context
- Full name:
net.minecraft.world.level.levelgen.SurfaceRules$Context - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceRules.java - Type:
class - Modifiers:
protected static final
net.minecraft.world.level.levelgen.SurfaceRules$Context#Context(SurfaceSystem,RandomState,ChunkAccess,NoiseChunk,Function<BlockPos, Holder<Biome>>,Registry<Biome>,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:290 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SurfaceRules.Context ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: system, randomState, chunk, noiseChunk, biomeGetter, context.
Parameters
SurfaceSystem surfaceSystemRandomState randomStateChunkAccess chunkAccessNoiseChunk noiseChunkFunction<BlockPos, Holder<Biome>> functionRegistry<Biome> registryWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
SurfaceSystem surfaceSystem = ...;
RandomState randomState = ...;
ChunkAccess chunkAccess = ...;
NoiseChunk noiseChunk = ...;
Function<BlockPos, Holder<Biome>> function = ...;
Registry<Biome> registry = ...;
WorldGenerationContext worldGenerationContext = ...;
SurfaceRules.Context instance = new SurfaceRules.Context(surfaceSystem, randomState, chunkAccess, noiseChunk, function, registry, worldGenerationContext);
net.minecraft.world.level.levelgen.SurfaceRules$Context#getMinSurfaceLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:345 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Min Surface Level
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastMinSurfaceLevelUpdate, lastPreliminarySurfaceCellOrigin, minSurfaceLevel. เรียกต่อ: blockCoordToSurfaceCell(), asLong(), preliminarySurfaceLevel(), surfaceCellToBlockCoord(), floor(), lerp2(). คืนค่า: this.minSurfaceLevel.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules$Context#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:333 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
คืนค่า: this.system.getSeaLevel().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules$Context#getSurfaceSecondary()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:324 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Surface Secondary
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastSurfaceDepth2Update, surfaceSecondary. คืนค่า: this.surfaceSecondary.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules$Context#updateXZ(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:307 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต XZ
ทำงานยังไง
แก้ state: lastUpdateXZ, lastUpdateY, blockX, blockZ, surfaceDepth. เรียกต่อ: getSurfaceDepth().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceRules$Context#updateY(int,int,int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:315 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Y
ทำงานยังไง
แก้ state: lastUpdateY, biome, blockY, waterHeight, stoneDepthBelow, stoneDepthAbove. เรียกต่อ: memoize(), apply(), set().
Parameters
int iint jint kint lint mint n
ตัวอย่างใช้งาน
@Override
protected void updateY(int i, int j, int k, int l, int m, int n) {
super.updateY(i, j, k, l, m, n);
}
SurfaceRules$RuleSource
- Full name:
net.minecraft.world.level.levelgen.SurfaceRules$RuleSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceRules.java - Type:
interface - Modifiers:
public - Implements:
Function<SurfaceRules.Context, SurfaceRules.SurfaceRule>
net.minecraft.world.level.levelgen.SurfaceRules$RuleSource#bootstrap(Registry<MapCodec<? extends SurfaceRules.RuleSource>>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:566 - Modifiers:
static - Return:
MapCodec<? extends SurfaceRules.RuleSource>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ SurfaceRules$RuleSource
ทำงานยังไง
เรียกต่อ: register(). คืนค่า: SurfaceRules.register(registry, "condition", SurfaceRules.TestRuleSource.CODEC).
Parameters
Registry<MapCodec<? extends SurfaceRules.RuleSource>> registry
ตัวอย่างใช้งาน
Registry<MapCodec<? extends SurfaceRules.RuleSource>> registry = ...;
MapCodec<? extends SurfaceRules.RuleSource> result = SurfaceRules.RuleSource.bootstrap(registry);
net.minecraft.world.level.levelgen.SurfaceRules$RuleSource#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:573 - Modifiers: ``
- Return:
KeyDispatchDataCodec<? extends SurfaceRules.RuleSource>
คืออะไร
ดำเนินการ codec ตาม implementation ของ SurfaceRules$RuleSource
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SurfaceRules.RuleSource instance = ...;
KeyDispatchDataCodec<? extends SurfaceRules.RuleSource> result = instance.codec();
SurfaceRules$SurfaceRule
- Full name:
net.minecraft.world.level.levelgen.SurfaceRules$SurfaceRule - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceRules.java - Type:
interface - Modifiers:
protected
net.minecraft.world.level.levelgen.SurfaceRules$SurfaceRule#tryApply(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceRules.java:680 - Modifiers: ``
- Return:
BlockState
คืออะไร
ดำเนินการ tryApply ตาม implementation ของ SurfaceRules$SurfaceRule
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jint k
ตัวอย่างใช้งาน
SurfaceSystem
- Full name:
net.minecraft.world.level.levelgen.SurfaceSystem - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/SurfaceSystem.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.SurfaceSystem#buildSurface(RandomState,BiomeManager,Registry<Biome>,boolean,WorldGenerationContext,ChunkAccess,NoiseChunk,SurfaceRules.RuleSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:66 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Surface
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: MutableBlockPos(), getPos(), getMinBlockX(), getMinBlockZ(), getBlock(), getBlockState(), setY(), setBlock(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos, BlockColumn, SurfaceRules.Context. มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomState randomStateBiomeManager biomeManagerRegistry<Biome> registryboolean blWorldGenerationContext worldGenerationContextChunkAccess chunkAccessNoiseChunk noiseChunkSurfaceRules.RuleSource ruleSource
ตัวอย่างใช้งาน
SurfaceSystem instance = ...;
RandomState randomState = ...;
BiomeManager biomeManager = ...;
Registry<Biome> registry = ...;
WorldGenerationContext worldGenerationContext = ...;
ChunkAccess chunkAccess = ...;
NoiseChunk noiseChunk = ...;
SurfaceRules.RuleSource ruleSource = ...;
instance.buildSurface(randomState, biomeManager, registry, true, worldGenerationContext, chunkAccess, noiseChunk, ruleSource);
net.minecraft.world.level.levelgen.SurfaceSystem#getBand(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:320 - Modifiers:
protected - Return:
BlockState
คืออะไร
อ่านค่า Band
ทำงานยังไง
เรียกต่อ: round(), getValue(). คืนค่า: this.clayBands[(j + l + this.clayBands.length) % this.clayBands.length].
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceSystem#getSeaLevel()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:178 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Sea Level
ทำงานยังไง
คืนค่า: this.seaLevel.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceSystem#getSurfaceDepth(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:165 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Surface Depth
ทำงานยังไง
เรียกต่อ: getValue(), at(), nextDouble(). คืนค่า: (int)(d * 2.75 + 3.0 + this.noiseRandom.at(i, 0, j).nextDouble() * 0.25).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.SurfaceSystem#getSurfaceSecondary(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:170 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Surface Secondary
ทำงานยังไง
เรียกต่อ: getValue(). คืนค่า: this.surfaceSecondaryNoise.getValue(i, 0.0, j).
Parameters
int iint j
ตัวอย่างใช้งาน
@Override
protected double getSurfaceSecondary(int i, int j) {
return super.getSurfaceSecondary(i, j);
}
net.minecraft.world.level.levelgen.SurfaceSystem#SurfaceSystem(RandomState,BlockState,int,PositionalRandomFactory)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SurfaceSystem ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: defaultBlock, seaLevel, noiseRandom, clayBandsOffsetNoise, clayBands, surfaceNoise. เรียกต่อ: getOrCreateNoise(), generateBands(), fromHashOf(), withDefaultNamespace().
Parameters
RandomState randomStateBlockState blockStateint iPositionalRandomFactory positionalRandomFactory
ตัวอย่างใช้งาน
RandomState randomState = ...;
BlockState blockState = ...;
PositionalRandomFactory positionalRandomFactory = ...;
SurfaceSystem instance = new SurfaceSystem(randomState, blockState, 0, positionalRandomFactory);
net.minecraft.world.level.levelgen.SurfaceSystem#topMaterial(SurfaceRules.RuleSource,CarvingContext,Function<BlockPos, Holder<Biome>>,ChunkAccess,NoiseChunk,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/SurfaceSystem.java:182 - Modifiers:
public - Return:
Optional<BlockState>
คืออะไร
ดำเนินการ topMaterial ตาม implementation ของ SurfaceSystem
ทำงานยังไง
เรียกต่อ: Context(), randomState(), registryAccess(), lookupOrThrow(), apply(), getX(), getY(), getZ(). สร้างออบเจ็กต์: SurfaceRules.Context. คืนค่า: Optional.ofNullable(blockState).
Parameters
SurfaceRules.RuleSource ruleSourceCarvingContext carvingContextFunction<BlockPos, Holder<Biome>> functionChunkAccess chunkAccessNoiseChunk noiseChunkBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
SurfaceSystem instance = ...;
SurfaceRules.RuleSource ruleSource = ...;
CarvingContext carvingContext = ...;
Function<BlockPos, Holder<Biome>> function = ...;
ChunkAccess chunkAccess = ...;
NoiseChunk noiseChunk = ...;
BlockPos blockPos = ...;
Optional<BlockState> result = instance.topMaterial(ruleSource, carvingContext, function, chunkAccess, noiseChunk, blockPos, true);
ThreadSafeLegacyRandomSource
- Full name:
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java - Type:
class - Modifiers:
public - Implements:
BitRandomSource
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#fork()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:19 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fork ตาม implementation ของ ThreadSafeLegacyRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). สร้างออบเจ็กต์: ThreadSafeLegacyRandomSource. คืนค่า: new ThreadSafeLegacyRandomSource(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#forkPositional()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:24 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ forkPositional ตาม implementation ของ ThreadSafeLegacyRandomSource
ทำงานยังไง
เรียกต่อ: LegacyPositionalRandomFactory(), nextLong(). สร้างออบเจ็กต์: LegacyRandomSource.LegacyPositionalRandomFactory. คืนค่า: new LegacyRandomSource.LegacyPositionalRandomFactory(this.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ThreadSafeLegacyRandomSource instance = ...;
PositionalRandomFactory result = instance.forkPositional();
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#next(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:34 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ next ตาม implementation ของ ThreadSafeLegacyRandomSource
ทำงานยังไง
มีการวนลูป. เรียกต่อ: get(), compareAndSet(). คืนค่า: (int)(m >>> 48 - i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#nextGaussian()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:46 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextGaussian ตาม implementation ของ ThreadSafeLegacyRandomSource
ทำงานยังไง
คืนค่า: this.gaussianSource.nextGaussian().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:29 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
เรียกต่อ: set().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource#ThreadSafeLegacyRandomSource(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/ThreadSafeLegacyRandomSource.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ThreadSafeLegacyRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setSeed().
Parameters
long l
ตัวอย่างใช้งาน
VerticalAnchor
- Full name:
net.minecraft.world.level.levelgen.VerticalAnchor - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/VerticalAnchor.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.VerticalAnchor#aboveBottom(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:18 - Modifiers:
static - Return:
VerticalAnchor
คืออะไร
ดำเนินการ aboveBottom ตาม implementation ของ VerticalAnchor
ทำงานยังไง
เรียกต่อ: AboveBottom(). สร้างออบเจ็กต์: VerticalAnchor.AboveBottom. คืนค่า: new VerticalAnchor.AboveBottom(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.VerticalAnchor#absolute(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:14 - Modifiers:
static - Return:
VerticalAnchor
คืออะไร
ดำเนินการ absolute ตาม implementation ของ VerticalAnchor
ทำงานยังไง
เรียกต่อ: Absolute(). สร้างออบเจ็กต์: VerticalAnchor.Absolute. คืนค่า: new VerticalAnchor.Absolute(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.VerticalAnchor#belowTop(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:22 - Modifiers:
static - Return:
VerticalAnchor
คืออะไร
ดำเนินการ belowTop ตาม implementation ของ VerticalAnchor
ทำงานยังไง
เรียกต่อ: BelowTop(). สร้างออบเจ็กต์: VerticalAnchor.BelowTop. คืนค่า: new VerticalAnchor.BelowTop(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.VerticalAnchor#bottom()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:26 - Modifiers:
static - Return:
VerticalAnchor
คืออะไร
ดำเนินการ bottom ตาม implementation ของ VerticalAnchor
ทำงานยังไง
คืนค่า: BOTTOM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.VerticalAnchor#resolveY(WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:48 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ resolveY ตาม implementation ของ VerticalAnchor
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
WorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
VerticalAnchor instance = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.resolveY(worldGenerationContext);
net.minecraft.world.level.levelgen.VerticalAnchor#top()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/VerticalAnchor.java:30 - Modifiers:
static - Return:
VerticalAnchor
คืออะไร
ดำเนินการ top ตาม implementation ของ VerticalAnchor
ทำงานยังไง
คืนค่า: TOP.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldDimensions
- Full name:
net.minecraft.world.level.levelgen.WorldDimensions - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldDimensions.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.WorldDimensions#bake(Registry<LevelStem>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:155 - Modifiers:
public - Return:
WorldDimensions.Complete
คืออะไร
ดำเนินการ bake ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: concat(), registryKeySet(), stream(), keySet(), distinct(), Entry(), registrationInfo(), empty(). สร้างออบเจ็กต์: RegistrationInfo, ArrayList<>, Entry, MappedRegistry<>. มีจุด return อย่างน้อย 2 จุด.
Parameters
Registry<LevelStem> registry
ตัวอย่างใช้งาน
WorldDimensions instance = ...;
Registry<LevelStem> registry = ...;
WorldDimensions.Complete result = instance.bake(registry);
net.minecraft.world.level.levelgen.WorldDimensions#get(ResourceKey<LevelStem>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:93 - Modifiers:
public - Return:
Optional<LevelStem>
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: ofNullable(). คืนค่า: Optional.ofNullable(this.dimensions.get(resourceKey)).
Parameters
ResourceKey<LevelStem> resourceKey
ตัวอย่างใช้งาน
WorldDimensions instance = ...;
ResourceKey<LevelStem> resourceKey = ...;
Optional<LevelStem> result = instance.get(resourceKey);
net.minecraft.world.level.levelgen.WorldDimensions#isDebug()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:101 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Debug
ทำงานยังไง
เรียกต่อ: overworld(). คืนค่า: this.overworld() instanceof DebugLevelSource.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldDimensions#keysInOrder(Stream<ResourceKey<LevelStem>>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:57 - Modifiers:
public static - Return:
Stream<ResourceKey<LevelStem>>
คืออะไร
ดำเนินการ keysInOrder ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: concat(), stream(), filter(), contains(). คืนค่า: Stream.concat(BUILTIN_ORDER.stream(), stream.filter(resourceKey -> !BUILTIN_ORDER.contains(resourceKey))).
Parameters
Stream<ResourceKey<LevelStem>> stream
ตัวอย่างใช้งาน
Stream<ResourceKey<LevelStem>> stream = ...;
Stream<ResourceKey<LevelStem>> result = WorldDimensions.keysInOrder(stream);
net.minecraft.world.level.levelgen.WorldDimensions#levels()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:97 - Modifiers:
public - Return:
ImmutableSet<ResourceKey<Level>>
คืออะไร
ดำเนินการ levels ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: dimensions(), keySet(), stream(), map(), collect(), toImmutableSet(). คืนค่า: this.dimensions().keySet().stream().map(Registries::levelStemToLevel).collect(ImmutableSet.toImmutableSet()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldDimensions#overworld()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:84 - Modifiers:
public - Return:
ChunkGenerator
คืออะไร
ดำเนินการ overworld ตาม implementation ของ WorldDimensions
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), generator(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: levelStem.generator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldDimensions#replaceOverworldGenerator(HolderLookup.Provider,ChunkGenerator)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:61 - Modifiers:
public - Return:
WorldDimensions
คืออะไร
ดำเนินการ replaceOverworldGenerator ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: lookupOrThrow(), withOverworld(). สร้างออบเจ็กต์: WorldDimensions. คืนค่า: new WorldDimensions(map).
Parameters
HolderLookup.Provider providerChunkGenerator chunkGenerator
ตัวอย่างใช้งาน
WorldDimensions instance = ...;
HolderLookup.Provider provider = ...;
ChunkGenerator chunkGenerator = ...;
WorldDimensions result = instance.replaceOverworldGenerator(provider, chunkGenerator);
net.minecraft.world.level.levelgen.WorldDimensions#withOverworld(HolderLookup<DimensionType>,Map<ResourceKey<LevelStem>, LevelStem>,ChunkGenerator)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:67 - Modifiers:
public static - Return:
Map<ResourceKey<LevelStem>, LevelStem>
คืออะไร
ดำเนินการ withOverworld ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: get(), getOrThrow(), type(). คืนค่า: withOverworld(map, holder, chunkGenerator).
Parameters
HolderLookup<DimensionType> holderLookupMap<ResourceKey<LevelStem>, LevelStem> mapChunkGenerator chunkGenerator
ตัวอย่างใช้งาน
HolderLookup<DimensionType> holderLookup = ...;
Map<ResourceKey<LevelStem>, LevelStem> map = ...;
ChunkGenerator chunkGenerator = ...;
Map<ResourceKey<LevelStem>, LevelStem> result = WorldDimensions.withOverworld(holderLookup, map, chunkGenerator);
net.minecraft.world.level.levelgen.WorldDimensions#withOverworld(Map<ResourceKey<LevelStem>, LevelStem>,Holder<DimensionType>,ChunkGenerator)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:75 - Modifiers:
public static - Return:
Map<ResourceKey<LevelStem>, LevelStem>
คืออะไร
ดำเนินการ withOverworld ตาม implementation ของ WorldDimensions
ทำงานยังไง
เรียกต่อ: builder(), putAll(), put(), buildKeepingLast(). สร้างออบเจ็กต์: LevelStem. คืนค่า: builder.buildKeepingLast().
Parameters
Map<ResourceKey<LevelStem>, LevelStem> mapHolder<DimensionType> holderChunkGenerator chunkGenerator
ตัวอย่างใช้งาน
Map<ResourceKey<LevelStem>, LevelStem> map = ...;
Holder<DimensionType> holder = ...;
ChunkGenerator chunkGenerator = ...;
Map<ResourceKey<LevelStem>, LevelStem> result = WorldDimensions.withOverworld(map, holder, chunkGenerator);
net.minecraft.world.level.levelgen.WorldDimensions#WorldDimensions(Map<ResourceKey<LevelStem>, LevelStem>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldDimensions ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Map<ResourceKey<LevelStem>, LevelStem> dimensions
ตัวอย่างใช้งาน
Map<ResourceKey<LevelStem>, LevelStem> dimensions = ...;
WorldDimensions instance = new WorldDimensions(dimensions);
net.minecraft.world.level.levelgen.WorldDimensions#WorldDimensions(Registry<LevelStem>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:53 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldDimensions ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: listElements(), collect(), toMap().
Parameters
Registry<LevelStem> registry
ตัวอย่างใช้งาน
WorldDimensions$Complete
- Full name:
net.minecraft.world.level.levelgen.WorldDimensions$Complete - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldDimensions.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.WorldDimensions$Complete#dimensionsRegistryAccess()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:185 - Modifiers:
public - Return:
RegistryAccess.Frozen
คืออะไร
ดำเนินการ dimensionsRegistryAccess ตาม implementation ของ WorldDimensions$Complete
ทำงานยังไง
เรียกต่อ: ImmutableRegistryAccess(), of(), freeze(). สร้างออบเจ็กต์: RegistryAccess.ImmutableRegistryAccess. คืนค่า: new RegistryAccess.ImmutableRegistryAccess(List.of(this.dimensions)).freeze().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldDimensions.Complete instance = ...;
RegistryAccess.Frozen result = instance.dimensionsRegistryAccess();
net.minecraft.world.level.levelgen.WorldDimensions$Complete#lifecycle()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldDimensions.java:181 - Modifiers:
public - Return:
Lifecycle
คืออะไร
ดำเนินการ lifecycle ตาม implementation ของ WorldDimensions$Complete
ทำงานยังไง
เรียกต่อ: registryLifecycle(). คืนค่า: this.dimensions.registryLifecycle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WorldGenerationContext
- Full name:
net.minecraft.world.level.levelgen.WorldGenerationContext - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldGenerationContext.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.WorldGenerationContext#getGenDepth()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldGenerationContext.java:19 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gen Depth
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldGenerationContext#getMinGenY()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldGenerationContext.java:15 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Gen Y
ทำงานยังไง
คืนค่า: this.minY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldGenerationContext#WorldGenerationContext(ChunkGenerator,LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldGenerationContext.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldGenerationContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minY, height. เรียกต่อ: max(), getMinY(), min(), getHeight(), getGenDepth().
Parameters
ChunkGenerator chunkGeneratorLevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
ChunkGenerator chunkGenerator = ...;
LevelHeightAccessor levelHeightAccessor = ...;
WorldGenerationContext instance = new WorldGenerationContext(chunkGenerator, levelHeightAccessor);
WorldgenRandom
- Full name:
net.minecraft.world.level.levelgen.WorldgenRandom - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldgenRandom.java - Type:
class - Modifiers:
public - Extends:
LegacyRandomSource
net.minecraft.world.level.levelgen.WorldgenRandom#fork()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:19 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fork ตาม implementation ของ WorldgenRandom
ทำงานยังไง
คืนค่า: this.randomSource.fork().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#forkPositional()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:24 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ forkPositional ตาม implementation ของ WorldgenRandom
ทำงานยังไง
คืนค่า: this.randomSource.forkPositional().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#getCount()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:15 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Count
ทำงานยังไง
คืนค่า: this.count.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#next(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:29 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ next ตาม implementation ของ WorldgenRandom
ทำงานยังไง
แก้ state: count. เรียกต่อ: nextLong(). คืนค่า: this.randomSource instanceof LegacyRandomSource legacyRandomSource ? legacyRandomSource.next(i) : (int)(this.randomSource.nextLong() >>> 64 - i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#seedSlimeChunk(int,int,long,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:69 - Modifiers:
public static - Return:
RandomSource
คืออะไร
ดำเนินการ seedSlimeChunk ตาม implementation ของ WorldgenRandom
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: RandomSource.create(l + i * i * 4987142 + i * 5947611 + j * j * 4392871L + j * 389711 ^ m).
Parameters
int iint jlong llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#setDecorationSeed(long,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:42 - Modifiers:
public - Return:
long
คืออะไร
กำหนดค่า Decoration Seed
ทำงานยังไง
เรียกต่อ: setSeed(), nextLong(). คืนค่า: o.
Parameters
long lint iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#setFeatureSeed(long,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:51 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Feature Seed
ทำงานยังไง
เรียกต่อ: setSeed().
Parameters
long lint iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#setLargeFeatureSeed(long,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:56 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Large Feature Seed
ทำงานยังไง
เรียกต่อ: setSeed(), nextLong().
Parameters
long lint iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#setLargeFeatureWithSalt(long,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:64 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Large Feature With Salt
ทำงานยังไง
เรียกต่อ: setSeed().
Parameters
long lint iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:35 - Modifiers:
public synchronized - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldgenRandom#WorldgenRandom(RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldgenRandom ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: randomSource.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
WorldgenRandom$Algorithm
- Full name:
net.minecraft.world.level.levelgen.WorldgenRandom$Algorithm - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldgenRandom.java - Type:
enum - Modifiers:
public
net.minecraft.world.level.levelgen.WorldgenRandom$Algorithm#newInstance(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldgenRandom.java:83 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ newInstance ตาม implementation ของ WorldgenRandom$Algorithm
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: this.constructor.apply(l).
Parameters
long l
ตัวอย่างใช้งาน
WorldGenSettings
- Full name:
net.minecraft.world.level.levelgen.WorldGenSettings - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldGenSettings.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.WorldGenSettings#encode(DynamicOps<T>,WorldOptions,RegistryAccess)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldGenSettings.java:20 - Modifiers:
public static - Return:
DataResult<T>
คืออะไร
เข้ารหัสข้อมูล encode
ทำงานยังไง
เรียกต่อ: lookupOrThrow(). สร้างออบเจ็กต์: WorldDimensions. คืนค่า: encode(dynamicOps, worldOptions, new WorldDimensions(registryAccess.lookupOrThrow(Registries.LEVEL_STEM))).
Parameters
DynamicOps<T> dynamicOpsWorldOptions worldOptionsRegistryAccess registryAccess
ตัวอย่างใช้งาน
DynamicOps<T> dynamicOps = ...;
WorldOptions worldOptions = ...;
RegistryAccess registryAccess = ...;
DataResult<T> result = WorldGenSettings.encode(dynamicOps, worldOptions, registryAccess);
net.minecraft.world.level.levelgen.WorldGenSettings#encode(DynamicOps<T>,WorldOptions,WorldDimensions)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldGenSettings.java:16 - Modifiers:
public static - Return:
DataResult<T>
คืออะไร
เข้ารหัสข้อมูล encode
ทำงานยังไง
เรียกต่อ: encodeStart(). สร้างออบเจ็กต์: WorldGenSettings. คืนค่า: CODEC.encodeStart(dynamicOps, new WorldGenSettings(worldOptions, worldDimensions)).
Parameters
DynamicOps<T> dynamicOpsWorldOptions worldOptionsWorldDimensions worldDimensions
ตัวอย่างใช้งาน
DynamicOps<T> dynamicOps = ...;
WorldOptions worldOptions = ...;
WorldDimensions worldDimensions = ...;
DataResult<T> result = WorldGenSettings.encode(dynamicOps, worldOptions, worldDimensions);
WorldOptions
- Full name:
net.minecraft.world.level.levelgen.WorldOptions - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/WorldOptions.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.WorldOptions#defaultWithRandomSeed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:31 - Modifiers:
public static - Return:
WorldOptions
คืออะไร
ดำเนินการ defaultWithRandomSeed ตาม implementation ของ WorldOptions
ทำงานยังไง
เรียกต่อ: randomSeed(). สร้างออบเจ็กต์: WorldOptions. คืนค่า: new WorldOptions(randomSeed(), true, false).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#generateBonusChest()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:54 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ generateBonusChest ตาม implementation ของ WorldOptions
ทำงานยังไง
คืนค่า: this.generateBonusChest.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#generateStructures()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:50 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ generateStructures ตาม implementation ของ WorldOptions
ทำงานยังไง
คืนค่า: this.generateStructures.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#isOldCustomizedWorld()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:58 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Old Customized World
ทำงานยังไง
เรียกต่อ: isPresent(). คืนค่า: this.legacyCustomOptions.isPresent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#parseSeed(String)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:74 - Modifiers:
public static - Return:
OptionalLong
คืออะไร
แปลง/วิเคราะห์ข้อมูล Seed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: trim(), isEmpty(), empty(), of(), parseLong(), hashCode(). มีจุด return อย่างน้อย 3 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#randomSeed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:87 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ randomSeed ตาม implementation ของ WorldOptions
ทำงานยังไง
เรียกต่อ: create(), nextLong(). คืนค่า: RandomSource.create().nextLong().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#seed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:46 - Modifiers:
public - Return:
long
คืออะไร
ดำเนินการ seed ตาม implementation ของ WorldOptions
ทำงานยังไง
คืนค่า: this.seed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#testWorldWithRandomSeed()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:35 - Modifiers:
public static - Return:
WorldOptions
คืออะไร
ทดสอบเงื่อนไข World With Random Seed
ทำงานยังไง
เรียกต่อ: randomSeed(). สร้างออบเจ็กต์: WorldOptions. คืนค่า: new WorldOptions(randomSeed(), false, false).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#withBonusChest(boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:62 - Modifiers:
public - Return:
WorldOptions
คืออะไร
ดำเนินการ withBonusChest ตาม implementation ของ WorldOptions
ทำงานยังไง
สร้างออบเจ็กต์: WorldOptions. คืนค่า: new WorldOptions(this.seed, this.generateStructures, bl, this.legacyCustomOptions).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#withSeed(OptionalLong)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:70 - Modifiers:
public - Return:
WorldOptions
คืออะไร
ดำเนินการ withSeed ตาม implementation ของ WorldOptions
ทำงานยังไง
เรียกต่อ: orElse(), randomSeed(). สร้างออบเจ็กต์: WorldOptions. คืนค่า: new WorldOptions(optionalLong.orElse(randomSeed()), this.generateStructures, this.generateBonusChest, this.legacyCustomOptions).
Parameters
OptionalLong optionalLong
ตัวอย่างใช้งาน
WorldOptions instance = ...;
OptionalLong optionalLong = ...;
WorldOptions result = instance.withSeed(optionalLong);
net.minecraft.world.level.levelgen.WorldOptions#withStructures(boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:66 - Modifiers:
public - Return:
WorldOptions
คืออะไร
ดำเนินการ withStructures ตาม implementation ของ WorldOptions
ทำงานยังไง
สร้างออบเจ็กต์: WorldOptions. คืนค่า: new WorldOptions(this.seed, bl, this.generateBonusChest, this.legacyCustomOptions).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.WorldOptions#WorldOptions(long,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/WorldOptions.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldOptions ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: empty().
Parameters
long lboolean blboolean bl2
ตัวอย่างใช้งาน
Xoroshiro128PlusPlus
- Full name:
net.minecraft.world.level.levelgen.Xoroshiro128PlusPlus - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/Xoroshiro128PlusPlus.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.Xoroshiro128PlusPlus#nextLong()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Xoroshiro128PlusPlus.java:29 - Modifiers:
public - Return:
long
คืออะไร
ดำเนินการ nextLong ตาม implementation ของ Xoroshiro128PlusPlus
ทำงานยังไง
แก้ state: seedLo, seedHi. เรียกต่อ: rotateLeft(). คืนค่า: n.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Xoroshiro128PlusPlus#Xoroshiro128PlusPlus(long,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Xoroshiro128PlusPlus.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Xoroshiro128PlusPlus ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: seedLo, seedHi.
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.Xoroshiro128PlusPlus#Xoroshiro128PlusPlus(RandomSupport.Seed128bit)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/Xoroshiro128PlusPlus.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Xoroshiro128PlusPlus ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: seedLo(), seedHi().
Parameters
RandomSupport.Seed128bit seed128bit
ตัวอย่างใช้งาน
RandomSupport.Seed128bit seed128bit = ...;
Xoroshiro128PlusPlus instance = new Xoroshiro128PlusPlus(seed128bit);
XoroshiroRandomSource
- Full name:
net.minecraft.world.level.levelgen.XoroshiroRandomSource - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/XoroshiroRandomSource.java - Type:
class - Modifiers:
public - Implements:
RandomSource
net.minecraft.world.level.levelgen.XoroshiroRandomSource#consumeCount(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:98 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ consumeCount ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
มีการวนลูป. เรียกต่อ: nextLong().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#fork()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:32 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fork ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). สร้างออบเจ็กต์: XoroshiroRandomSource. คืนค่า: new XoroshiroRandomSource(this.randomNumberGenerator.nextLong(), this.randomNumberGenerator.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#forkPositional()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:37 - Modifiers:
public - Return:
PositionalRandomFactory
คืออะไร
ดำเนินการ forkPositional ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: XoroshiroPositionalRandomFactory(), nextLong(). สร้างออบเจ็กต์: XoroshiroRandomSource.XoroshiroPositionalRandomFactory. คืนค่า: new XoroshiroRandomSource.XoroshiroPositionalRandomFactory(this.randomNumberGenerator.nextLong(), this.randomNumberGenerator.nextLong()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextBoolean()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ nextBoolean ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). คืนค่า: (this.randomNumberGenerator.nextLong() & 1L) != 0L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextDouble()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:88 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextDouble ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: nextBits(). คืนค่า: this.nextBits(53) * 1.110223E-16F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextFloat()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:83 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ nextFloat ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: nextBits(). คืนค่า: (float)this.nextBits(24) * 5.9604645E-8F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextGaussian()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:93 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ nextGaussian ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
คืนค่า: this.gaussianSource.nextGaussian().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextInt()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:48 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ nextInt ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
เรียกต่อ: nextLong(). คืนค่า: (int)this.randomNumberGenerator.nextLong().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextInt(int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:53 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ nextInt ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: toUnsignedLong(), remainderUnsigned(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: (int)o.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#nextLong()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:73 - Modifiers:
public - Return:
long
คืออะไร
ดำเนินการ nextLong ตาม implementation ของ XoroshiroRandomSource
ทำงานยังไง
คืนค่า: this.randomNumberGenerator.nextLong().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:42 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
แก้ state: randomNumberGenerator. เรียกต่อ: upgradeSeedTo128bit(), reset(). สร้างออบเจ็กต์: Xoroshiro128PlusPlus.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#XoroshiroRandomSource(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ XoroshiroRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: randomNumberGenerator. เรียกต่อ: upgradeSeedTo128bit(). สร้างออบเจ็กต์: Xoroshiro128PlusPlus.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#XoroshiroRandomSource(long,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ XoroshiroRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: randomNumberGenerator. สร้างออบเจ็กต์: Xoroshiro128PlusPlus.
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.XoroshiroRandomSource#XoroshiroRandomSource(RandomSupport.Seed128bit)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ XoroshiroRandomSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: randomNumberGenerator. สร้างออบเจ็กต์: Xoroshiro128PlusPlus.
Parameters
RandomSupport.Seed128bit seed128bit
ตัวอย่างใช้งาน
RandomSupport.Seed128bit seed128bit = ...;
XoroshiroRandomSource instance = new XoroshiroRandomSource(seed128bit);
XoroshiroRandomSource$XoroshiroPositionalRandomFactory
- Full name:
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory - Package:
net.minecraft.world.level.levelgen - Source:
common—net/minecraft/world/level/levelgen/XoroshiroRandomSource.java - Type:
class - Modifiers:
public static - Implements:
PositionalRandomFactory
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory#at(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:118 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ at ตาม implementation ของ XoroshiroRandomSource$XoroshiroPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: getSeed(). สร้างออบเจ็กต์: XoroshiroRandomSource. คืนค่า: new XoroshiroRandomSource(m, this.seedHi).
Parameters
int iint jint k
ตัวอย่างใช้งาน
XoroshiroRandomSource.XoroshiroPositionalRandomFactory instance = ...;
RandomSource result = instance.at(0, 0, 0);
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory#fromHashOf(String)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:125 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fromHashOf ตาม implementation ของ XoroshiroRandomSource$XoroshiroPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: seedFromHashOf(), xor(). สร้างออบเจ็กต์: XoroshiroRandomSource. คืนค่า: new XoroshiroRandomSource(seed128bit.xor(this.seedLo, this.seedHi)).
Parameters
String string
ตัวอย่างใช้งาน
XoroshiroRandomSource.XoroshiroPositionalRandomFactory instance = ...;
RandomSource result = instance.fromHashOf("value");
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory#fromSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:131 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ fromSeed ตาม implementation ของ XoroshiroRandomSource$XoroshiroPositionalRandomFactory
ทำงานยังไง
สร้างออบเจ็กต์: XoroshiroRandomSource. คืนค่า: new XoroshiroRandomSource(l ^ this.seedLo, l ^ this.seedHi).
Parameters
long l
ตัวอย่างใช้งาน
XoroshiroRandomSource.XoroshiroPositionalRandomFactory instance = ...;
RandomSource result = instance.fromSeed(0L);
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory#parityConfigString(StringBuilder)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:136 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ parityConfigString ตาม implementation ของ XoroshiroRandomSource$XoroshiroPositionalRandomFactory
ทำงานยังไง
เรียกต่อ: append().
Parameters
StringBuilder stringBuilder
ตัวอย่างใช้งาน
XoroshiroRandomSource.XoroshiroPositionalRandomFactory instance = ...;
StringBuilder stringBuilder = ...;
instance.parityConfigString(stringBuilder);
net.minecraft.world.level.levelgen.XoroshiroRandomSource$XoroshiroPositionalRandomFactory#XoroshiroPositionalRandomFactory(long,long)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/XoroshiroRandomSource.java:113 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ XoroshiroRandomSource.XoroshiroPositionalRandomFactory ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: seedLo, seedHi.
Parameters
long llong m
ตัวอย่างใช้งาน
XoroshiroRandomSource.XoroshiroPositionalRandomFactory instance = new XoroshiroRandomSource.XoroshiroPositionalRandomFactory(0L, 0L);