Skip to content

Package net.minecraft.data.worldgen.features

Part 1/1


AquaticFeatures

  • Full name: net.minecraft.data.worldgen.features.AquaticFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/AquaticFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.AquaticFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/AquaticFeatures.java:23
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ AquaticFeatures

ทำงานยังไง

เรียกต่อ: register(), direct(), inlinePlaced(). สร้างออบเจ็กต์: ProbabilityFeatureConfiguration, CountConfiguration, SimpleRandomFeatureConfiguration.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
AquaticFeatures.bootstrap(bootstrapContext);

CaveFeatures

  • Full name: net.minecraft.data.worldgen.features.CaveFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/CaveFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.CaveFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/CaveFeatures.java:120
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ CaveFeatures

ทำงานยังไง

เรียกต่อ: lookup(), register(), of(), withDefaultNamespace(), getOrThrow(), direct(), inlinePlaced(), scanningFor(). สร้างออบเจ็กต์: FossilFeatureConfiguration, DripstoneClusterConfiguration, LargeDripstoneConfiguration, SimpleRandomFeatureConfiguration.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
CaveFeatures.bootstrap(bootstrapContext);

EndFeatures

  • Full name: net.minecraft.data.worldgen.features.EndFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/EndFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.EndFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/EndFeatures.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ EndFeatures

ทำงานยังไง

เรียกต่อ: register(), of(), knownExit(), delayedExitSearch(). สร้างออบเจ็กต์: SpikeConfiguration.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
EndFeatures.bootstrap(bootstrapContext);

FeatureUtils

  • Full name: net.minecraft.data.worldgen.features.FeatureUtils
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/FeatureUtils.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.FeatureUtils#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:21
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ FeatureUtils

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 9 statement).

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
FeatureUtils.bootstrap(bootstrapContext);

net.minecraft.data.worldgen.features.FeatureUtils#createKey(String)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:64
  • Modifiers: public static
  • Return: ResourceKey<ConfiguredFeature<?, ?>>

คืออะไร

สร้าง Key

ทำงานยังไง

เรียกต่อ: create(), withDefaultNamespace(). คืนค่า: ResourceKey.create(Registries.CONFIGURED_FEATURE, ResourceLocation.withDefaultNamespace(string)).

Parameters

  • String string

ตัวอย่างใช้งาน

ResourceKey<ConfiguredFeature<?, ?>> result = FeatureUtils.createKey("value");

net.minecraft.data.worldgen.features.FeatureUtils#register(BootstrapContext<ConfiguredFeature<?, ?>>,ResourceKey<ConfiguredFeature<?, ?>>,F,FC)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:74
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

สร้างออบเจ็กต์: ConfiguredFeature.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext
  • ResourceKey<ConfiguredFeature<?, ?>> resourceKey
  • F feature
  • FC featureConfiguration

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
ResourceKey<ConfiguredFeature<?, ?>> resourceKey = ...;
F feature = ...;
FC featureConfiguration = ...;
FeatureUtils.register(bootstrapContext, resourceKey, feature, featureConfiguration);

net.minecraft.data.worldgen.features.FeatureUtils#register(BootstrapContext<ConfiguredFeature<?, ?>>,ResourceKey<ConfiguredFeature<?, ?>>,Feature<NoneFeatureConfiguration>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:68
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext
  • ResourceKey<ConfiguredFeature<?, ?>> resourceKey
  • Feature<NoneFeatureConfiguration> feature

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
ResourceKey<ConfiguredFeature<?, ?>> resourceKey = ...;
Feature<NoneFeatureConfiguration> feature = ...;
FeatureUtils.register(bootstrapContext, resourceKey, feature);

net.minecraft.data.worldgen.features.FeatureUtils#simplePatchConfiguration(F,FC)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:60
  • Modifiers: public static
  • Return: RandomPatchConfiguration

คืออะไร

ดำเนินการ simplePatchConfiguration ตาม implementation ของ FeatureUtils

ทำงานยังไง

เรียกต่อ: of(). คืนค่า: simplePatchConfiguration(feature, featureConfiguration, List.of(), 96).

Parameters

  • F feature
  • FC featureConfiguration

ตัวอย่างใช้งาน

F feature = ...;
FC featureConfiguration = ...;
RandomPatchConfiguration result = FeatureUtils.simplePatchConfiguration(feature, featureConfiguration);

net.minecraft.data.worldgen.features.FeatureUtils#simplePatchConfiguration(F,FC,List<Block>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:54
  • Modifiers: public static
  • Return: RandomPatchConfiguration

คืออะไร

ดำเนินการ simplePatchConfiguration ตาม implementation ของ FeatureUtils

ทำงานยังไง

คืนค่า: simplePatchConfiguration(feature, featureConfiguration, list, 96).

Parameters

  • F feature
  • FC featureConfiguration
  • List<Block> list

ตัวอย่างใช้งาน

F feature = ...;
FC featureConfiguration = ...;
List<Block> list = ...;
RandomPatchConfiguration result = FeatureUtils.simplePatchConfiguration(feature, featureConfiguration, list);

net.minecraft.data.worldgen.features.FeatureUtils#simplePatchConfiguration(F,FC,List<Block>,int)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:48
  • Modifiers: public static
  • Return: RandomPatchConfiguration

คืออะไร

ดำเนินการ simplePatchConfiguration ตาม implementation ของ FeatureUtils

ทำงานยังไง

เรียกต่อ: simpleRandomPatchConfiguration(), filtered(), simplePatchPredicate(). คืนค่า: simpleRandomPatchConfiguration(i, PlacementUtils.filtered(feature, featureConfiguration, simplePatchPredicate(list))).

Parameters

  • F feature
  • FC featureConfiguration
  • List<Block> list
  • int i

ตัวอย่างใช้งาน

F feature = ...;
FC featureConfiguration = ...;
List<Block> list = ...;
RandomPatchConfiguration result = FeatureUtils.simplePatchConfiguration(feature, featureConfiguration, list, 0);

net.minecraft.data.worldgen.features.FeatureUtils#simpleRandomPatchConfiguration(int,Holder<PlacedFeature>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/FeatureUtils.java:44
  • Modifiers: public static
  • Return: RandomPatchConfiguration

คืออะไร

ดำเนินการ simpleRandomPatchConfiguration ตาม implementation ของ FeatureUtils

ทำงานยังไง

สร้างออบเจ็กต์: RandomPatchConfiguration. คืนค่า: new RandomPatchConfiguration(i, 7, 3, holder).

Parameters

  • int i
  • Holder<PlacedFeature> holder

ตัวอย่างใช้งาน

Holder<PlacedFeature> holder = ...;
RandomPatchConfiguration result = FeatureUtils.simpleRandomPatchConfiguration(0, holder);

MiscOverworldFeatures

  • Full name: net.minecraft.data.worldgen.features.MiscOverworldFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/MiscOverworldFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.MiscOverworldFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/MiscOverworldFeatures.java:42
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ MiscOverworldFeatures

ทำงานยังไง

เรียกต่อ: register(), simple(), matchesBlocks(), of(), defaultBlockState(), Configuration(), Rule(), getUnitVec3i(). สร้างออบเจ็กต์: DiskConfiguration, BlockStateConfiguration, LakeFeature.Configuration, RuleBasedBlockStateProvider.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
MiscOverworldFeatures.bootstrap(bootstrapContext);

NetherFeatures

  • Full name: net.minecraft.data.worldgen.features.NetherFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/NetherFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.NetherFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/NetherFeatures.java:50
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ NetherFeatures

ทำงานยังไง

เรียกต่อ: register(), defaultBlockState(), of(), builder(), add(), simple(), simplePatchConfiguration(), defaultFluidState(). สร้างออบเจ็กต์: DeltaFeatureConfiguration, ColumnFeatureConfiguration, ReplaceSphereConfiguration, WeightedStateProvider.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
NetherFeatures.bootstrap(bootstrapContext);

OreFeatures

  • Full name: net.minecraft.data.worldgen.features.OreFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/OreFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.OreFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/OreFeatures.java:49
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ OreFeatures

ทำงานยังไง

เรียกต่อ: of(), target(), defaultBlockState(), register(). สร้างออบเจ็กต์: TagMatchTest, BlockMatchTest, OreConfiguration.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
OreFeatures.bootstrap(bootstrapContext);

PileFeatures

  • Full name: net.minecraft.data.worldgen.features.PileFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/PileFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.PileFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/PileFeatures.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ PileFeatures

ทำงานยังไง

เรียกต่อ: register(), simple(), builder(), add(), defaultBlockState(). สร้างออบเจ็กต์: BlockPileConfiguration, RotatedBlockProvider, WeightedStateProvider.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
PileFeatures.bootstrap(bootstrapContext);

TreeFeatures

  • Full name: net.minecraft.data.worldgen.features.TreeFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/TreeFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.TreeFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/TreeFeatures.java:165
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ TreeFeatures

ทำงานยังไง

เรียกต่อ: lookup(), matchesBlocks(), register(), defaultBlockState(), simple(), setValue(), createOak(), build(). สร้างออบเจ็กต์: HugeFungusConfiguration, HugeMushroomFeatureConfiguration, BeehiveDecorator, TreeConfiguration.TreeConfigurationBuilder.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
TreeFeatures.bootstrap(bootstrapContext);

VegetationFeatures

  • Full name: net.minecraft.data.worldgen.features.VegetationFeatures
  • Package: net.minecraft.data.worldgen.features
  • Source: commonnet/minecraft/data/worldgen/features/VegetationFeatures.java
  • Type: class
  • Modifiers: public

net.minecraft.data.worldgen.features.VegetationFeatures#bootstrap(BootstrapContext<ConfiguredFeature<?, ?>>)

  • Origin: common
  • Source: net/minecraft/data/worldgen/features/VegetationFeatures.java:103
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ VegetationFeatures

ทำงานยังไง

มีการวนลูป. เรียกต่อ: lookup(), getOrThrow(), register(), simplePatchConfiguration(), simple(), of(), defaultBlockState(), setValue(). สร้างออบเจ็กต์: ProbabilityFeatureConfiguration, SimpleBlockConfiguration, WeightedStateProvider, RandomPatchConfiguration.

Parameters

  • BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<ConfiguredFeature<?, ?>> bootstrapContext = ...;
VegetationFeatures.bootstrap(bootstrapContext);