Package net.minecraft.world.level.levelgen.heightproviders
Part 1/1
BiasedToBottomHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.BiasedToBottomHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/BiasedToBottomHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.BiasedToBottomHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/BiasedToBottomHeight.java:49 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.BIASED_TO_BOTTOM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.BiasedToBottomHeight#of(VerticalAnchor,VerticalAnchor,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/BiasedToBottomHeight.java:32 - Modifiers:
public static - Return:
BiasedToBottomHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ BiasedToBottomHeight
ทำงานยังไง
สร้างออบเจ็กต์: BiasedToBottomHeight. คืนค่า: new BiasedToBottomHeight(verticalAnchor, verticalAnchor2, i).
Parameters
VerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2int i
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
BiasedToBottomHeight result = BiasedToBottomHeight.of(verticalAnchor, verticalAnchor2, 0);
net.minecraft.world.level.levelgen.heightproviders.BiasedToBottomHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/BiasedToBottomHeight.java:36 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ BiasedToBottomHeight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: resolveY(), warn(), nextInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
BiasedToBottomHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.BiasedToBottomHeight#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/BiasedToBottomHeight.java:54 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ BiasedToBottomHeight
ทำงานยังไง
คืนค่า: "biased[" + this.minInclusive + "-" + this.maxInclusive + " inner: " + this.inner + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ConstantHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java:30 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.CONSTANT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight#getValue()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java:21 - Modifiers:
public - Return:
VerticalAnchor
คืออะไร
อ่านค่า Value
ทำงานยังไง
คืนค่า: this.value.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight#of(VerticalAnchor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java:13 - Modifiers:
public static - Return:
ConstantHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ ConstantHeight
ทำงานยังไง
สร้างออบเจ็กต์: ConstantHeight. คืนค่า: new ConstantHeight(verticalAnchor).
Parameters
VerticalAnchor verticalAnchor
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java:25 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ ConstantHeight
ทำงานยังไง
เรียกต่อ: resolveY(). คืนค่า: this.value.resolveY(worldGenerationContext).
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
ConstantHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.ConstantHeight#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java:35 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ConstantHeight
ทำงานยังไง
คืนค่า: this.value.toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HeightProvider
- Full name:
net.minecraft.world.level.levelgen.heightproviders.HeightProvider - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/HeightProvider.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.levelgen.heightproviders.HeightProvider#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/HeightProvider.java:23 - Modifiers:
public abstract - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.HeightProvider#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/HeightProvider.java:21 - Modifiers:
public abstract - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ HeightProvider
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
HeightProvider instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
HeightProviderType
- Full name:
net.minecraft.world.level.levelgen.heightproviders.HeightProviderType - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/HeightProviderType.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.levelgen.heightproviders.HeightProviderType#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/HeightProviderType.java:15 - Modifiers: ``
- Return:
MapCodec<P>
คืออะไร
ดำเนินการ codec ตาม implementation ของ HeightProviderType
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TrapezoidHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java:60 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.TRAPEZOID.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight#of(VerticalAnchor,VerticalAnchor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java:37 - Modifiers:
public static - Return:
TrapezoidHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ TrapezoidHeight
ทำงานยังไง
คืนค่า: of(verticalAnchor, verticalAnchor2, 0).
Parameters
VerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
TrapezoidHeight result = TrapezoidHeight.of(verticalAnchor, verticalAnchor2);
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight#of(VerticalAnchor,VerticalAnchor,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java:33 - Modifiers:
public static - Return:
TrapezoidHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ TrapezoidHeight
ทำงานยังไง
สร้างออบเจ็กต์: TrapezoidHeight. คืนค่า: new TrapezoidHeight(verticalAnchor, verticalAnchor2, i).
Parameters
VerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2int i
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
TrapezoidHeight result = TrapezoidHeight.of(verticalAnchor, verticalAnchor2, 0);
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java:41 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ TrapezoidHeight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: resolveY(), warn(), randomBetweenInclusive(). มีจุด return อย่างน้อย 3 จุด.
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
TrapezoidHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.TrapezoidHeight#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/TrapezoidHeight.java:65 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ TrapezoidHeight
ทำงานยังไง
แก้ state: plateau. เรียกต่อ: triangle(), trapezoid().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
UniformHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.UniformHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/UniformHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.UniformHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/UniformHeight.java:51 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.UNIFORM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.UniformHeight#of(VerticalAnchor,VerticalAnchor)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/UniformHeight.java:32 - Modifiers:
public static - Return:
UniformHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ UniformHeight
ทำงานยังไง
สร้างออบเจ็กต์: UniformHeight. คืนค่า: new UniformHeight(verticalAnchor, verticalAnchor2).
Parameters
VerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
UniformHeight result = UniformHeight.of(verticalAnchor, verticalAnchor2);
net.minecraft.world.level.levelgen.heightproviders.UniformHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/UniformHeight.java:36 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ UniformHeight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: resolveY(), add(), warn(), randomBetweenInclusive(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
UniformHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.UniformHeight#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/UniformHeight.java:56 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ UniformHeight
ทำงานยังไง
คืนค่า: "[" + this.minInclusive + "-" + this.maxInclusive + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
VeryBiasedToBottomHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.VeryBiasedToBottomHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/VeryBiasedToBottomHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.VeryBiasedToBottomHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/VeryBiasedToBottomHeight.java:51 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.VERY_BIASED_TO_BOTTOM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.VeryBiasedToBottomHeight#of(VerticalAnchor,VerticalAnchor,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/VeryBiasedToBottomHeight.java:33 - Modifiers:
public static - Return:
VeryBiasedToBottomHeight
คืออะไร
ดำเนินการ of ตาม implementation ของ VeryBiasedToBottomHeight
ทำงานยังไง
สร้างออบเจ็กต์: VeryBiasedToBottomHeight. คืนค่า: new VeryBiasedToBottomHeight(verticalAnchor, verticalAnchor2, i).
Parameters
VerticalAnchor verticalAnchorVerticalAnchor verticalAnchor2int i
ตัวอย่างใช้งาน
VerticalAnchor verticalAnchor = ...;
VerticalAnchor verticalAnchor2 = ...;
VeryBiasedToBottomHeight result = VeryBiasedToBottomHeight.of(verticalAnchor, verticalAnchor2, 0);
net.minecraft.world.level.levelgen.heightproviders.VeryBiasedToBottomHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/VeryBiasedToBottomHeight.java:37 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ VeryBiasedToBottomHeight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: resolveY(), warn(), nextInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
VeryBiasedToBottomHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.VeryBiasedToBottomHeight#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/VeryBiasedToBottomHeight.java:56 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ VeryBiasedToBottomHeight
ทำงานยังไง
คืนค่า: "biased[" + this.minInclusive + "-" + this.maxInclusive + " inner: " + this.inner + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WeightedListHeight
- Full name:
net.minecraft.world.level.levelgen.heightproviders.WeightedListHeight - Package:
net.minecraft.world.level.levelgen.heightproviders - Source:
common—net/minecraft/world/level/levelgen/heightproviders/WeightedListHeight.java - Type:
class - Modifiers:
public - Extends:
HeightProvider
net.minecraft.world.level.levelgen.heightproviders.WeightedListHeight#getType()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/WeightedListHeight.java:27 - Modifiers:
public - Return:
HeightProviderType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HeightProviderType.WEIGHTED_LIST.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.heightproviders.WeightedListHeight#sample(RandomSource,WorldGenerationContext)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/WeightedListHeight.java:22 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sample ตาม implementation ของ WeightedListHeight
ทำงานยังไง
เรียกต่อ: getRandomValue(), orElseThrow(). คืนค่า: this.distribution.getRandomValue(randomSource).orElseThrow(IllegalStateException::new).sample(randomSource, worldGenerationContext).
Parameters
RandomSource randomSourceWorldGenerationContext worldGenerationContext
ตัวอย่างใช้งาน
WeightedListHeight instance = ...;
RandomSource randomSource = ...;
WorldGenerationContext worldGenerationContext = ...;
int result = instance.sample(randomSource, worldGenerationContext);
net.minecraft.world.level.levelgen.heightproviders.WeightedListHeight#WeightedListHeight(SimpleWeightedRandomList<HeightProvider>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/heightproviders/WeightedListHeight.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WeightedListHeight ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: distribution.
Parameters
SimpleWeightedRandomList<HeightProvider> simpleWeightedRandomList
ตัวอย่างใช้งาน
SimpleWeightedRandomList<HeightProvider> simpleWeightedRandomList = ...;
WeightedListHeight instance = new WeightedListHeight(simpleWeightedRandomList);