Package net.minecraft.world.level.levelgen.feature
Part 1/1
AbstractHugeMushroomFeature
- Full name:
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java - Type:
class - Modifiers:
public abstract - Extends:
Feature<HugeMushroomFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#AbstractHugeMushroomFeature(Codec<HugeMushroomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractHugeMushroomFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<HugeMushroomFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<HugeMushroomFeatureConfiguration> codec = ...;
AbstractHugeMushroomFeature instance = new AbstractHugeMushroomFeature(codec);
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#getTreeHeight(RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:34 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Tree Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: nextInt(). คืนค่า: i.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected int getTreeHeight(RandomSource randomSource) {
return super.getTreeHeight(randomSource);
}
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#getTreeRadiusForHeight(int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:93 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Tree Radius For Height
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
@Override
protected int getTreeRadiusForHeight(int i, int j, int k, int l) {
return super.getTreeRadiusForHeight(i, j, k, l);
}
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#isValidPosition(LevelAccessor,BlockPos,int,BlockPos.MutableBlockPos,HugeMushroomFeatureConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:43 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Position
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getY(), getMinY(), getMaxY(), getBlockState(), below(), isDirt(), is(), getTreeRadiusForHeight(). มีจุด return อย่างน้อย 4 จุด.
Parameters
LevelAccessor levelAccessorBlockPos blockPosint iBlockPos.MutableBlockPos mutableBlockPosHugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration = ...;
@Override
protected boolean isValidPosition(LevelAccessor levelAccessor, BlockPos blockPos, int i, BlockPos.MutableBlockPos mutableBlockPos, HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration) {
return super.isValidPosition(levelAccessor, blockPos, i, mutableBlockPos, hugeMushroomFeatureConfiguration);
}
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#makeCap(LevelAccessor,RandomSource,BlockPos,int,BlockPos.MutableBlockPos,HugeMushroomFeatureConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:95 - Modifiers:
protected abstract - Return:
void
คืออะไร
สร้าง Cap
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosint iBlockPos.MutableBlockPos mutableBlockPosHugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration = ...;
@Override
protected void makeCap(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, int i, BlockPos.MutableBlockPos mutableBlockPos, HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration) {
super.makeCap(levelAccessor, randomSource, blockPos, i, mutableBlockPos, hugeMushroomFeatureConfiguration);
}
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#place(FeaturePlaceContext<HugeMushroomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:76 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ AbstractHugeMushroomFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), random(), config(), getTreeHeight(), MutableBlockPos(), isValidPosition(), makeCap(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<HugeMushroomFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
AbstractHugeMushroomFeature instance = ...;
FeaturePlaceContext<HugeMushroomFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.AbstractHugeMushroomFeature#placeTrunk(LevelAccessor,RandomSource,BlockPos,HugeMushroomFeatureConfiguration,int,BlockPos.MutableBlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/AbstractHugeMushroomFeature.java:18 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ placeTrunk ตาม implementation ของ AbstractHugeMushroomFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: set(), move(), getBlockState(), isSolidRender(), setBlock(), getState().
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosHugeMushroomFeatureConfiguration hugeMushroomFeatureConfigurationint iBlockPos.MutableBlockPos mutableBlockPos
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
@Override
protected void placeTrunk(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration, int i, BlockPos.MutableBlockPos mutableBlockPos) {
super.placeTrunk(levelAccessor, randomSource, blockPos, hugeMushroomFeatureConfiguration, i, mutableBlockPos);
}
BambooFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BambooFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BambooFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<ProbabilityFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.BambooFeature#BambooFeature(Codec<ProbabilityFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BambooFeature.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BambooFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<ProbabilityFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<ProbabilityFeatureConfiguration> codec = ...;
BambooFeature instance = new BambooFeature(codec);
net.minecraft.world.level.levelgen.feature.BambooFeature#place(FeaturePlaceContext<ProbabilityFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BambooFeature.java:29 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BambooFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), config(), mutable(), isEmptyBlock(), defaultBlockState(), canSurvive(). คืนค่า: i > 0.
Parameters
FeaturePlaceContext<ProbabilityFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BambooFeature instance = ...;
FeaturePlaceContext<ProbabilityFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BasaltColumnsFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BasaltColumnsFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BasaltColumnsFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<ColumnFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.BasaltColumnsFeature#BasaltColumnsFeature(Codec<ColumnFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BasaltColumnsFeature.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BasaltColumnsFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<ColumnFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<ColumnFeatureConfiguration> codec = ...;
BasaltColumnsFeature instance = new BasaltColumnsFeature(codec);
net.minecraft.world.level.levelgen.feature.BasaltColumnsFeature#place(FeaturePlaceContext<ColumnFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BasaltColumnsFeature.java:38 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BasaltColumnsFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: chunkGenerator(), getSeaLevel(), origin(), level(), random(), config(), canPlaceAt(), mutable(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<ColumnFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BasaltColumnsFeature instance = ...;
FeaturePlaceContext<ColumnFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BasaltPillarFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BasaltPillarFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BasaltPillarFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.BasaltPillarFeature#BasaltPillarFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BasaltPillarFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BasaltPillarFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
BasaltPillarFeature instance = new BasaltPillarFeature(codec);
net.minecraft.world.level.levelgen.feature.BasaltPillarFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BasaltPillarFeature.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BasaltPillarFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), isEmptyBlock(), above(), mutable(), isOutsideBuildHeight(), setBlock(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BasaltPillarFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BlockBlobFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BlockBlobFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BlockBlobFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<BlockStateConfiguration>
net.minecraft.world.level.levelgen.feature.BlockBlobFeature#BlockBlobFeature(Codec<BlockStateConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockBlobFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockBlobFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<BlockStateConfiguration> codec
ตัวอย่างใช้งาน
Codec<BlockStateConfiguration> codec = ...;
BlockBlobFeature instance = new BlockBlobFeature(codec);
net.minecraft.world.level.levelgen.feature.BlockBlobFeature#place(FeaturePlaceContext<BlockStateConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockBlobFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BlockBlobFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), config(), getY(), getMinY(), isEmptyBlock(), below(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<BlockStateConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BlockBlobFeature instance = ...;
FeaturePlaceContext<BlockStateConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BlockColumnFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BlockColumnFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BlockColumnFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<BlockColumnConfiguration>
net.minecraft.world.level.levelgen.feature.BlockColumnFeature#BlockColumnFeature(Codec<BlockColumnConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockColumnFeature.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockColumnFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<BlockColumnConfiguration> codec
ตัวอย่างใช้งาน
Codec<BlockColumnConfiguration> codec = ...;
BlockColumnFeature instance = new BlockColumnFeature(codec);
net.minecraft.world.level.levelgen.feature.BlockColumnFeature#place(FeaturePlaceContext<BlockColumnConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockColumnFeature.java:14 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BlockColumnFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), config(), random(), layers(), size(), get(), height(), sample(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<BlockColumnConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BlockColumnFeature instance = ...;
FeaturePlaceContext<BlockColumnConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BlockPileFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BlockPileFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BlockPileFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<BlockPileConfiguration>
net.minecraft.world.level.levelgen.feature.BlockPileFeature#BlockPileFeature(Codec<BlockPileConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockPileFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockPileFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<BlockPileConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.BlockPileFeature#place(FeaturePlaceContext<BlockPileConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlockPileFeature.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BlockPileFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), config(), getY(), getMinY(), nextInt(), betweenClosed(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<BlockPileConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BlockPileFeature instance = ...;
FeaturePlaceContext<BlockPileConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BlueIceFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BlueIceFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BlueIceFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.BlueIceFeature#BlueIceFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlueIceFeature.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlueIceFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.BlueIceFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BlueIceFeature.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BlueIceFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), getY(), getSeaLevel(), getBlockState(), is(), below(). มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BlueIceFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
BonusChestFeature
- Full name:
net.minecraft.world.level.levelgen.feature.BonusChestFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/BonusChestFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.BonusChestFeature#BonusChestFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BonusChestFeature.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BonusChestFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
BonusChestFeature instance = new BonusChestFeature(codec);
net.minecraft.world.level.levelgen.feature.BonusChestFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/BonusChestFeature.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ BonusChestFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), level(), origin(), toShuffledList(), rangeClosed(), getMinBlockX(), getMaxBlockX(), getMinBlockZ(). สร้างออบเจ็กต์: ChunkPos, BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
BonusChestFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
ChorusPlantFeature
- Full name:
net.minecraft.world.level.levelgen.feature.ChorusPlantFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/ChorusPlantFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.ChorusPlantFeature#ChorusPlantFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ChorusPlantFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChorusPlantFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
ChorusPlantFeature instance = new ChorusPlantFeature(codec);
net.minecraft.world.level.levelgen.feature.ChorusPlantFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ChorusPlantFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ ChorusPlantFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), random(), isEmptyBlock(), getBlockState(), below(), is(), generatePlant(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
ChorusPlantFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
ConfiguredFeature
- Full name:
net.minecraft.world.level.levelgen.feature.ConfiguredFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/ConfiguredFeature.java - Type:
record - Modifiers:
public
net.minecraft.world.level.levelgen.feature.ConfiguredFeature#getFeatures()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ConfiguredFeature.java:28 - Modifiers:
public - Return:
Stream<ConfiguredFeature<?, ?>>
คืออะไร
อ่านค่า Features
ทำงานยังไง
เรียกต่อ: concat(), of(). คืนค่า: Stream.concat(Stream.of(this), this.config.getFeatures()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.ConfiguredFeature#place(WorldGenLevel,ChunkGenerator,RandomSource,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ConfiguredFeature.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ ConfiguredFeature
ทำงานยังไง
คืนค่า: this.feature.place(this.config, worldGenLevel, chunkGenerator, randomSource, blockPos).
Parameters
WorldGenLevel worldGenLevelChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
ConfiguredFeature instance = ...;
WorldGenLevel worldGenLevel = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
boolean result = instance.place(worldGenLevel, chunkGenerator, randomSource, blockPos);
net.minecraft.world.level.levelgen.feature.ConfiguredFeature#toString()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ConfiguredFeature.java:32 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ConfiguredFeature
ทำงานยังไง
คืนค่า: "Configured: " + this.feature + ": " + this.config.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CoralClawFeature
- Full name:
net.minecraft.world.level.levelgen.feature.CoralClawFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/CoralClawFeature.java - Type:
class - Modifiers:
public - Extends:
CoralFeature
net.minecraft.world.level.levelgen.feature.CoralClawFeature#CoralClawFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralClawFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CoralClawFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
CoralClawFeature instance = new CoralClawFeature(codec);
net.minecraft.world.level.levelgen.feature.CoralClawFeature#placeFeature(LevelAccessor,RandomSource,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralClawFeature.java:19 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeFeature ตาม implementation ของ CoralClawFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: placeCoralBlock(), getRandomDirection(), nextInt(), toShuffledList(), of(), getClockWise(), getCounterClockWise(), subList(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected boolean placeFeature(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, BlockState blockState) {
return super.placeFeature(levelAccessor, randomSource, blockPos, blockState);
}
CoralFeature
- Full name:
net.minecraft.world.level.levelgen.feature.CoralFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/CoralFeature.java - Type:
class - Modifiers:
public abstract - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.CoralFeature#CoralFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralFeature.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CoralFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.CoralFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralFeature.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ CoralFeature
ทำงานยังไง
เรียกต่อ: random(), level(), origin(), getRandomElementOf(), map(), isEmpty(), placeFeature(), get(). คืนค่า: optional.isEmpty() ? false : this.placeFeature(worldGenLevel, randomSource, blockPos, optional.get().defaultBlockState()).
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
CoralFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.CoralFeature#placeCoralBlock(LevelAccessor,RandomSource,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralFeature.java:36 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeCoralBlock ตาม implementation ของ CoralFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: above(), getBlockState(), is(), setBlock(), nextFloat(), getRandomElementOf(), map(), ifPresent(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected boolean placeCoralBlock(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, BlockState blockState) {
return super.placeCoralBlock(levelAccessor, randomSource, blockPos, blockState);
}
net.minecraft.world.level.levelgen.feature.CoralFeature#placeFeature(LevelAccessor,RandomSource,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralFeature.java:34 - Modifiers:
protected abstract - Return:
boolean
คืออะไร
ดำเนินการ placeFeature ตาม implementation ของ CoralFeature
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected boolean placeFeature(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, BlockState blockState) {
return super.placeFeature(levelAccessor, randomSource, blockPos, blockState);
}
CoralMushroomFeature
- Full name:
net.minecraft.world.level.levelgen.feature.CoralMushroomFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/CoralMushroomFeature.java - Type:
class - Modifiers:
public - Extends:
CoralFeature
net.minecraft.world.level.levelgen.feature.CoralMushroomFeature#CoralMushroomFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralMushroomFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CoralMushroomFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
CoralMushroomFeature instance = new CoralMushroomFeature(codec);
net.minecraft.world.level.levelgen.feature.CoralMushroomFeature#placeFeature(LevelAccessor,RandomSource,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralMushroomFeature.java:16 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeFeature ตาม implementation ของ CoralMushroomFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextInt(), mutable(), set(), getX(), getY(), getZ(), move(), nextFloat(). คืนค่า: true.
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected boolean placeFeature(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, BlockState blockState) {
return super.placeFeature(levelAccessor, randomSource, blockPos, blockState);
}
CoralTreeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.CoralTreeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/CoralTreeFeature.java - Type:
class - Modifiers:
public - Extends:
CoralFeature
net.minecraft.world.level.levelgen.feature.CoralTreeFeature#CoralTreeFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralTreeFeature.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CoralTreeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
CoralTreeFeature instance = new CoralTreeFeature(codec);
net.minecraft.world.level.levelgen.feature.CoralTreeFeature#placeFeature(LevelAccessor,RandomSource,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/CoralTreeFeature.java:17 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeFeature ตาม implementation ของ CoralTreeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), nextInt(), placeCoralBlock(), move(), immutable(), shuffledCopy(), subList(), set(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected boolean placeFeature(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, BlockState blockState) {
return super.placeFeature(levelAccessor, randomSource, blockPos, blockState);
}
DeltaFeature
- Full name:
net.minecraft.world.level.levelgen.feature.DeltaFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/DeltaFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<DeltaFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.DeltaFeature#DeltaFeature(Codec<DeltaFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DeltaFeature.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DeltaFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<DeltaFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DeltaFeature#place(FeaturePlaceContext<DeltaFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DeltaFeature.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ DeltaFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), level(), config(), origin(), nextDouble(), rimSize(), sample(), size(). คืนค่า: bl.
Parameters
FeaturePlaceContext<DeltaFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
DeltaFeature instance = ...;
FeaturePlaceContext<DeltaFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
DesertWellFeature
- Full name:
net.minecraft.world.level.levelgen.feature.DesertWellFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/DesertWellFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.DesertWellFeature#DesertWellFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DesertWellFeature.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DesertWellFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
DesertWellFeature instance = new DesertWellFeature(codec);
net.minecraft.world.level.levelgen.feature.DesertWellFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DesertWellFeature.java:28 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ DesertWellFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), above(), isEmptyBlock(), getY(), getMinY(), below(), test(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
DesertWellFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
DiskFeature
- Full name:
net.minecraft.world.level.levelgen.feature.DiskFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/DiskFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<DiskConfiguration>
net.minecraft.world.level.levelgen.feature.DiskFeature#DiskFeature(Codec<DiskConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DiskFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DiskFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<DiskConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DiskFeature#place(FeaturePlaceContext<DiskConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DiskFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ DiskFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), origin(), level(), random(), getY(), halfHeight(), radius(), sample(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: bl.
Parameters
FeaturePlaceContext<DiskConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
DiskFeature instance = ...;
FeaturePlaceContext<DiskConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.DiskFeature#placeColumn(DiskConfiguration,WorldGenLevel,RandomSource,int,int,BlockPos.MutableBlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DiskFeature.java:39 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeColumn ตาม implementation ของ DiskFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: setY(), target(), test(), stateProvider(), getState(), setBlock(), markAboveForPostProcessing(). คืนค่า: bl.
Parameters
DiskConfiguration diskConfigurationWorldGenLevel worldGenLevelRandomSource randomSourceint iint jBlockPos.MutableBlockPos mutableBlockPos
ตัวอย่างใช้งาน
DiskConfiguration diskConfiguration = ...;
WorldGenLevel worldGenLevel = ...;
RandomSource randomSource = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
@Override
protected boolean placeColumn(DiskConfiguration diskConfiguration, WorldGenLevel worldGenLevel, RandomSource randomSource, int i, int j, BlockPos.MutableBlockPos mutableBlockPos) {
return super.placeColumn(diskConfiguration, worldGenLevel, randomSource, i, j, mutableBlockPos);
}
DripstoneClusterFeature
- Full name:
net.minecraft.world.level.levelgen.feature.DripstoneClusterFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/DripstoneClusterFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<DripstoneClusterConfiguration>
net.minecraft.world.level.levelgen.feature.DripstoneClusterFeature#DripstoneClusterFeature(Codec<DripstoneClusterConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneClusterFeature.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DripstoneClusterFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<DripstoneClusterConfiguration> codec
ตัวอย่างใช้งาน
Codec<DripstoneClusterConfiguration> codec = ...;
DripstoneClusterFeature instance = new DripstoneClusterFeature(codec);
net.minecraft.world.level.levelgen.feature.DripstoneClusterFeature#place(FeaturePlaceContext<DripstoneClusterConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneClusterFeature.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ DripstoneClusterFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), config(), random(), isEmptyOrWater(), sample(), getChanceOfStalagmiteOrStalactite(), offset(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<DripstoneClusterConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
DripstoneClusterFeature instance = ...;
FeaturePlaceContext<DripstoneClusterConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
DripstoneUtils
- Full name:
net.minecraft.world.level.levelgen.feature.DripstoneUtils - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/DripstoneUtils.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.feature.DripstoneUtils#buildBaseToTipColumn(Direction,int,boolean,Consumer<BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:58 - Modifiers:
protected static - Return:
void
คืออะไร
สร้าง Base To Tip Column
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: accept(), createPointedDripstone().
Parameters
Direction directionint iboolean blConsumer<BlockState> consumer
ตัวอย่างใช้งาน
Direction direction = ...;
Consumer<BlockState> consumer = ...;
@Override
protected void buildBaseToTipColumn(Direction direction, int i, boolean bl, Consumer<BlockState> consumer) {
super.buildBaseToTipColumn(direction, i, bl, consumer);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#getDripstoneHeight(double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:16 - Modifiers:
protected static - Return:
double
คืออะไร
อ่านค่า Dripstone Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pow(), log(), max(). คืนค่า: m / 0.384 * e.
Parameters
double ddouble edouble fdouble g
ตัวอย่างใช้งาน
@Override
protected double getDripstoneHeight(double d, double e, double f, double g) {
return super.getDripstoneHeight(d, e, f, g);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#growPointedDripstone(LevelAccessor,BlockPos,Direction,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:76 - Modifiers:
protected static - Return:
void
คืออะไร
ดำเนินการ growPointedDripstone ตาม implementation ของ DripstoneUtils
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isDripstoneBase(), getBlockState(), relative(), getOpposite(), mutable(), buildBaseToTipColumn(), is(), setValue().
Parameters
LevelAccessor levelAccessorBlockPos blockPosDirection directionint iboolean bl
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
Direction direction = ...;
@Override
protected void growPointedDripstone(LevelAccessor levelAccessor, BlockPos blockPos, Direction direction, int i, boolean bl) {
super.growPointedDripstone(levelAccessor, blockPos, direction, i, bl);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isCircleMostlyEmbeddedInStone(WorldGenLevel,BlockPos,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:31 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Circle Mostly Embedded In Stone
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmptyOrWaterOrLava(), cos(), sin(), offset(). มีจุด return อย่างน้อย 3 จุด.
Parameters
WorldGenLevel worldGenLevelBlockPos blockPosint i
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
BlockPos blockPos = ...;
@Override
protected boolean isCircleMostlyEmbeddedInStone(WorldGenLevel worldGenLevel, BlockPos blockPos, int i) {
return super.isCircleMostlyEmbeddedInStone(worldGenLevel, blockPos, i);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isDripstoneBase(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:111 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Dripstone Base
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState.is(Blocks.DRIPSTONE_BLOCK) || blockState.is(BlockTags.DRIPSTONE_REPLACEABLE).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isDripstoneBaseOrLava(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:107 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Dripstone Base Or Lava
ทำงานยังไง
เรียกต่อ: isDripstoneBase(), is(). คืนค่า: isDripstoneBase(blockState) || blockState.is(Blocks.LAVA).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isEmptyOrWater(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:115 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty Or Water
ทำงานยังไง
เรียกต่อ: isAir(), is(). คืนค่า: blockState.isAir() || blockState.is(Blocks.WATER).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isEmptyOrWater(LevelAccessor,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:50 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty Or Water
ทำงานยังไง
เรียกต่อ: isStateAtPosition(). คืนค่า: levelAccessor.isStateAtPosition(blockPos, DripstoneUtils::isEmptyOrWater).
Parameters
LevelAccessor levelAccessorBlockPos blockPos
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
@Override
protected boolean isEmptyOrWater(LevelAccessor levelAccessor, BlockPos blockPos) {
return super.isEmptyOrWater(levelAccessor, blockPos);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isEmptyOrWaterOrLava(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:123 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty Or Water Or Lava
ทำงานยังไง
เรียกต่อ: isAir(), is(). คืนค่า: blockState.isAir() || blockState.is(Blocks.WATER) || blockState.is(Blocks.LAVA).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isEmptyOrWaterOrLava(LevelAccessor,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:54 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty Or Water Or Lava
ทำงานยังไง
เรียกต่อ: isStateAtPosition(). คืนค่า: levelAccessor.isStateAtPosition(blockPos, DripstoneUtils::isEmptyOrWaterOrLava).
Parameters
LevelAccessor levelAccessorBlockPos blockPos
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
@Override
protected boolean isEmptyOrWaterOrLava(LevelAccessor levelAccessor, BlockPos blockPos) {
return super.isEmptyOrWaterOrLava(levelAccessor, blockPos);
}
net.minecraft.world.level.levelgen.feature.DripstoneUtils#isNeitherEmptyNorWater(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:119 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Neither Empty Nor Water
ทำงานยังไง
เรียกต่อ: isAir(), is(). คืนค่า: !blockState.isAir() && !blockState.is(Blocks.WATER).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.DripstoneUtils#placeDripstoneBlockIfPossible(LevelAccessor,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/DripstoneUtils.java:90 - Modifiers:
protected static - Return:
boolean
คืออะไร
ดำเนินการ placeDripstoneBlockIfPossible ตาม implementation ของ DripstoneUtils
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), is(), setBlock(), defaultBlockState(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LevelAccessor levelAccessorBlockPos blockPos
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
BlockPos blockPos = ...;
@Override
protected boolean placeDripstoneBlockIfPossible(LevelAccessor levelAccessor, BlockPos blockPos) {
return super.placeDripstoneBlockIfPossible(levelAccessor, blockPos);
}
EndGatewayFeature
- Full name:
net.minecraft.world.level.levelgen.feature.EndGatewayFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/EndGatewayFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<EndGatewayConfiguration>
net.minecraft.world.level.levelgen.feature.EndGatewayFeature#EndGatewayFeature(Codec<EndGatewayConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndGatewayFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EndGatewayFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<EndGatewayConfiguration> codec
ตัวอย่างใช้งาน
Codec<EndGatewayConfiguration> codec = ...;
EndGatewayFeature instance = new EndGatewayFeature(codec);
net.minecraft.world.level.levelgen.feature.EndGatewayFeature#place(FeaturePlaceContext<EndGatewayConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndGatewayFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ EndGatewayFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), config(), betweenClosed(), offset(), getX(), getY(), getZ(). คืนค่า: true.
Parameters
FeaturePlaceContext<EndGatewayConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
EndGatewayFeature instance = ...;
FeaturePlaceContext<EndGatewayConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
EndIslandFeature
- Full name:
net.minecraft.world.level.levelgen.feature.EndIslandFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/EndIslandFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.EndIslandFeature#EndIslandFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndIslandFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EndIslandFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
EndIslandFeature instance = new EndIslandFeature(codec);
net.minecraft.world.level.levelgen.feature.EndIslandFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndIslandFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ EndIslandFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), random(), origin(), nextInt(), floor(), ceil(), setBlock(), offset(). คืนค่า: true.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
EndIslandFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
EndPlatformFeature
- Full name:
net.minecraft.world.level.levelgen.feature.EndPlatformFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.EndPlatformFeature#createEndPlatform(ServerLevelAccessor,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java:21 - Modifiers:
public static - Return:
void
คืออะไร
สร้าง End Platform
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), set(), move(), getBlockState(), is(), destroyBlock(), setBlock(), defaultBlockState().
Parameters
ServerLevelAccessor serverLevelAccessorBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
ServerLevelAccessor serverLevelAccessor = ...;
BlockPos blockPos = ...;
EndPlatformFeature.createEndPlatform(serverLevelAccessor, blockPos, true);
net.minecraft.world.level.levelgen.feature.EndPlatformFeature#EndPlatformFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EndPlatformFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
EndPlatformFeature instance = new EndPlatformFeature(codec);
net.minecraft.world.level.levelgen.feature.EndPlatformFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ EndPlatformFeature
ทำงานยังไง
เรียกต่อ: createEndPlatform(), level(), origin(). คืนค่า: true.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
EndPlatformFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
EndPodiumFeature
- Full name:
net.minecraft.world.level.levelgen.feature.EndPodiumFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/EndPodiumFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.EndPodiumFeature#EndPodiumFeature(boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPodiumFeature.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EndPodiumFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: active.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.EndPodiumFeature#getLocation(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPodiumFeature.java:18 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Location
ทำงานยังไง
เรียกต่อ: offset(). คืนค่า: END_PODIUM_LOCATION.offset(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.EndPodiumFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/EndPodiumFeature.java:27 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ EndPodiumFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), betweenClosed(), getX(), getY(), getZ(), closerThan(), setBlock(). สร้างออบเจ็กต์: BlockPos. คืนค่า: true.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
EndPodiumFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
Feature
- Full name:
net.minecraft.world.level.levelgen.feature.Feature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/Feature.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.levelgen.feature.Feature#checkNeighbors(Function<BlockPos, BlockState>,BlockPos,Predicate<BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:204 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Neighbors
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: MutableBlockPos(), values(), setWithOffset(), test(), apply(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
Function<BlockPos, BlockState> functionBlockPos blockPosPredicate<BlockState> predicate
ตัวอย่างใช้งาน
Function<BlockPos, BlockState> function = ...;
BlockPos blockPos = ...;
Predicate<BlockState> predicate = ...;
boolean result = Feature.checkNeighbors(function, blockPos, predicate);
net.minecraft.world.level.levelgen.feature.Feature#configuredCodec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:166 - Modifiers:
public - Return:
MapCodec<ConfiguredFeature<FC, Feature<FC>>>
คืออะไร
ดำเนินการ configuredCodec ตาม implementation ของ Feature
ทำงานยังไง
คืนค่า: this.configuredCodec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Feature instance = ...;
MapCodec<ConfiguredFeature<FC, Feature<FC>>> result = instance.configuredCodec();
net.minecraft.world.level.levelgen.feature.Feature#Feature(Codec<FC>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:161 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Feature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: configuredCodec. เรียกต่อ: fieldOf(), xmap(). สร้างออบเจ็กต์: ConfiguredFeature<>.
Parameters
Codec<FC> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.Feature#isAdjacentToAir(Function<BlockPos, BlockState>,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:217 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Adjacent To Air
ทำงานยังไง
เรียกต่อ: checkNeighbors(). คืนค่า: checkNeighbors(function, blockPos, BlockBehaviour.BlockStateBase::isAir).
Parameters
Function<BlockPos, BlockState> functionBlockPos blockPos
ตัวอย่างใช้งาน
Function<BlockPos, BlockState> function = ...;
BlockPos blockPos = ...;
boolean result = Feature.isAdjacentToAir(function, blockPos);
net.minecraft.world.level.levelgen.feature.Feature#isDirt(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:196 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Dirt
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState.is(BlockTags.DIRT).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.Feature#isGrassOrDirt(LevelSimulatedReader,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:200 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Grass Or Dirt
ทำงานยังไง
เรียกต่อ: isStateAtPosition(). คืนค่า: levelSimulatedReader.isStateAtPosition(blockPos, Feature::isDirt).
Parameters
LevelSimulatedReader levelSimulatedReaderBlockPos blockPos
ตัวอย่างใช้งาน
LevelSimulatedReader levelSimulatedReader = ...;
BlockPos blockPos = ...;
boolean result = Feature.isGrassOrDirt(levelSimulatedReader, blockPos);
net.minecraft.world.level.levelgen.feature.Feature#isReplaceable(TagKey<Block>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:174 - Modifiers:
public static - Return:
Predicate<BlockState>
คืออะไร
ตรวจสอบสถานะ Replaceable
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState -> !blockState.is(tagKey).
Parameters
TagKey<Block> tagKey
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.Feature#isStone(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:192 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Stone
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState.is(BlockTags.BASE_STONE_OVERWORLD).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected boolean isStone(BlockState blockState) {
return super.isStone(blockState);
}
net.minecraft.world.level.levelgen.feature.Feature#markAboveForPostProcessing(WorldGenLevel,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:221 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ markAboveForPostProcessing ตาม implementation ของ Feature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), move(), getBlockState(), isAir(), getChunk(), markPosForPostprocessing().
Parameters
WorldGenLevel worldGenLevelBlockPos blockPos
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
BlockPos blockPos = ...;
@Override
protected void markAboveForPostProcessing(WorldGenLevel worldGenLevel, BlockPos blockPos) {
super.markAboveForPostProcessing(worldGenLevel, blockPos);
}
net.minecraft.world.level.levelgen.feature.Feature#place(FC,WorldGenLevel,ChunkGenerator,RandomSource,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:186 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ Feature
ทำงานยังไง
เรียกต่อ: ensureCanWrite(), empty(). สร้างออบเจ็กต์: FeaturePlaceContext<>.
Parameters
FC featureConfigurationWorldGenLevel worldGenLevelChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
Feature instance = ...;
FC featureConfiguration = ...;
WorldGenLevel worldGenLevel = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
boolean result = instance.place(featureConfiguration, worldGenLevel, chunkGenerator, randomSource, blockPos);
net.minecraft.world.level.levelgen.feature.Feature#place(FeaturePlaceContext<FC>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:184 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ Feature
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
FeaturePlaceContext<FC> featurePlaceContext
ตัวอย่างใช้งาน
Feature instance = ...;
FeaturePlaceContext<FC> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.Feature#safeSetBlock(WorldGenLevel,BlockPos,BlockState,Predicate<BlockState>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:178 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ safeSetBlock ตาม implementation ของ Feature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: test(), getBlockState(), setBlock().
Parameters
WorldGenLevel worldGenLevelBlockPos blockPosBlockState blockStatePredicate<BlockState> predicate
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
Predicate<BlockState> predicate = ...;
@Override
protected void safeSetBlock(WorldGenLevel worldGenLevel, BlockPos blockPos, BlockState blockState, Predicate<BlockState> predicate) {
super.safeSetBlock(worldGenLevel, blockPos, blockState, predicate);
}
net.minecraft.world.level.levelgen.feature.Feature#setBlock(LevelWriter,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/Feature.java:170 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Block
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
LevelWriter levelWriterBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelWriter levelWriter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void setBlock(LevelWriter levelWriter, BlockPos blockPos, BlockState blockState) {
super.setBlock(levelWriter, blockPos, blockState);
}
FeatureCountTracker
- Full name:
net.minecraft.world.level.levelgen.feature.FeatureCountTracker - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/FeatureCountTracker.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.feature.FeatureCountTracker#chunkDecorated(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeatureCountTracker.java:33 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ chunkDecorated ตาม implementation ของ FeatureCountTracker
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: get(), chunksWithFeatures(), increment(), error().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeatureCountTracker#clearCounts()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeatureCountTracker.java:51 - Modifiers:
public static - Return:
void
คืออะไร
ล้าง Counts
ทำงานยังไง
เรียกต่อ: invalidateAll(), debug().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeatureCountTracker#featurePlaced(ServerLevel,ConfiguredFeature<?, ?>,Optional<PlacedFeature>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeatureCountTracker.java:41 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ featurePlaced ตาม implementation ของ FeatureCountTracker
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: get(), featureData(), computeInt(), FeatureData(), error(). สร้างออบเจ็กต์: FeatureCountTracker.FeatureData.
Parameters
ServerLevel serverLevelConfiguredFeature<?, ?> configuredFeatureOptional<PlacedFeature> optional
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
ConfiguredFeature<?, ?> configuredFeature = ...;
Optional<PlacedFeature> optional = ...;
FeatureCountTracker.featurePlaced(serverLevel, configuredFeature, optional);
net.minecraft.world.level.levelgen.feature.FeatureCountTracker#logCounts()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeatureCountTracker.java:56 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ logCounts ตาม implementation ของ FeatureCountTracker
ทำงานยังไง
เรียกต่อ: debug(), asMap(), forEach(), dimension(), location(), toString(), getServer(), isRunning().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FeaturePlaceContext
- Full name:
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#chunkGenerator()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:42 - Modifiers:
public - Return:
ChunkGenerator
คืออะไร
ดำเนินการ chunkGenerator ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.chunkGenerator.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#config()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:54 - Modifiers:
public - Return:
FC
คืออะไร
ดำเนินการ config ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.config.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#FeaturePlaceContext(Optional<ConfiguredFeature<?, ?>>,WorldGenLevel,ChunkGenerator,RandomSource,BlockPos,FC)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FeaturePlaceContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: topFeature, level, chunkGenerator, random, origin, config.
Parameters
Optional<ConfiguredFeature<?, ?>> optionalWorldGenLevel worldGenLevelChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPosFC featureConfiguration
ตัวอย่างใช้งาน
Optional<ConfiguredFeature<?, ?>> optional = ...;
WorldGenLevel worldGenLevel = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
FC featureConfiguration = ...;
FeaturePlaceContext instance = new FeaturePlaceContext(optional, worldGenLevel, chunkGenerator, randomSource, blockPos, featureConfiguration);
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#level()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:38 - Modifiers:
public - Return:
WorldGenLevel
คืออะไร
ดำเนินการ level ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.level.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#origin()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:50 - Modifiers:
public - Return:
BlockPos
คืออะไร
ดำเนินการ origin ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.origin.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#random()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:46 - Modifiers:
public - Return:
RandomSource
คืออะไร
ดำเนินการ random ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.random.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FeaturePlaceContext#topFeature()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FeaturePlaceContext.java:34 - Modifiers:
public - Return:
Optional<ConfiguredFeature<?, ?>>
คืออะไร
ดำเนินการ topFeature ตาม implementation ของ FeaturePlaceContext
ทำงานยังไง
คืนค่า: this.topFeature.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FeaturePlaceContext instance = ...;
Optional<ConfiguredFeature<?, ?>> result = instance.topFeature();
FillLayerFeature
- Full name:
net.minecraft.world.level.levelgen.feature.FillLayerFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/FillLayerFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<LayerConfiguration>
net.minecraft.world.level.levelgen.feature.FillLayerFeature#FillLayerFeature(Codec<LayerConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FillLayerFeature.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FillLayerFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<LayerConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FillLayerFeature#place(FeaturePlaceContext<LayerConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FillLayerFeature.java:13 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ FillLayerFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), config(), level(), MutableBlockPos(), getX(), getZ(), getMinY(), set(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: true.
Parameters
FeaturePlaceContext<LayerConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
FillLayerFeature instance = ...;
FeaturePlaceContext<LayerConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
FossilFeature
- Full name:
net.minecraft.world.level.levelgen.feature.FossilFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/FossilFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<FossilFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.FossilFeature#FossilFeature(Codec<FossilFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FossilFeature.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FossilFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<FossilFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.FossilFeature#place(FeaturePlaceContext<FossilFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FossilFeature.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ FossilFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), level(), origin(), getRandom(), config(), nextInt(), size(), getLevel(). สร้างออบเจ็กต์: ChunkPos, BoundingBox, StructurePlaceSettings. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<FossilFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
FossilFeature instance = ...;
FeaturePlaceContext<FossilFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
FossilFeatureConfiguration
- Full name:
net.minecraft.world.level.levelgen.feature.FossilFeatureConfiguration - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/FossilFeatureConfiguration.java - Type:
class - Modifiers:
public - Implements:
FeatureConfiguration
net.minecraft.world.level.levelgen.feature.FossilFeatureConfiguration#FossilFeatureConfiguration(List<ResourceLocation>,List<ResourceLocation>,Holder<StructureProcessorList>,Holder<StructureProcessorList>,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/FossilFeatureConfiguration.java:29 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FossilFeatureConfiguration ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fossilStructures, overlayStructures, fossilProcessors, overlayProcessors, maxEmptyCornersAllowed. เรียกต่อ: isEmpty(), size(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
List<ResourceLocation> listList<ResourceLocation> list2Holder<StructureProcessorList> holderHolder<StructureProcessorList> holder2int i
ตัวอย่างใช้งาน
List<ResourceLocation> list = ...;
List<ResourceLocation> list2 = ...;
Holder<StructureProcessorList> holder = ...;
Holder<StructureProcessorList> holder2 = ...;
FossilFeatureConfiguration instance = new FossilFeatureConfiguration(list, list2, holder, holder2, 0);
GeodeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.GeodeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/GeodeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<GeodeConfiguration>
net.minecraft.world.level.levelgen.feature.GeodeFeature#GeodeFeature(Codec<GeodeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/GeodeFeature.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GeodeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<GeodeConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.GeodeFeature#place(FeaturePlaceContext<GeodeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/GeodeFeature.java:34 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ GeodeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), random(), origin(), level(), newLinkedList(), sample(), getSeed(), create(). สร้างออบเจ็กต์: WorldgenRandom, LegacyRandomSource. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<GeodeConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
GeodeFeature instance = ...;
FeaturePlaceContext<GeodeConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
GlowstoneFeature
- Full name:
net.minecraft.world.level.levelgen.feature.GlowstoneFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/GlowstoneFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.GlowstoneFeature#GlowstoneFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/GlowstoneFeature.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GlowstoneFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
GlowstoneFeature instance = new GlowstoneFeature(codec);
net.minecraft.world.level.levelgen.feature.GlowstoneFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/GlowstoneFeature.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ GlowstoneFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), random(), isEmptyBlock(), getBlockState(), above(), is(), setBlock(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
GlowstoneFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
HugeBrownMushroomFeature
- Full name:
net.minecraft.world.level.levelgen.feature.HugeBrownMushroomFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/HugeBrownMushroomFeature.java - Type:
class - Modifiers:
public - Extends:
AbstractHugeMushroomFeature
net.minecraft.world.level.levelgen.feature.HugeBrownMushroomFeature#getTreeRadiusForHeight(int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeBrownMushroomFeature.java:60 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Tree Radius For Height
ทำงานยังไง
คืนค่า: l <= 3 ? 0 : k.
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
@Override
protected int getTreeRadiusForHeight(int i, int j, int k, int l) {
return super.getTreeRadiusForHeight(i, j, k, l);
}
net.minecraft.world.level.levelgen.feature.HugeBrownMushroomFeature#HugeBrownMushroomFeature(Codec<HugeMushroomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeBrownMushroomFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HugeBrownMushroomFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<HugeMushroomFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<HugeMushroomFeatureConfiguration> codec = ...;
HugeBrownMushroomFeature instance = new HugeBrownMushroomFeature(codec);
net.minecraft.world.level.levelgen.feature.HugeBrownMushroomFeature#makeCap(LevelAccessor,RandomSource,BlockPos,int,BlockPos.MutableBlockPos,HugeMushroomFeatureConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeBrownMushroomFeature.java:16 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง Cap
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: setWithOffset(), getBlockState(), isSolidRender(), getState(), hasProperty(), setValue(), setBlock().
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosint iBlockPos.MutableBlockPos mutableBlockPosHugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration = ...;
@Override
protected void makeCap(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, int i, BlockPos.MutableBlockPos mutableBlockPos, HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration) {
super.makeCap(levelAccessor, randomSource, blockPos, i, mutableBlockPos, hugeMushroomFeatureConfiguration);
}
HugeFungusConfiguration
- Full name:
net.minecraft.world.level.levelgen.feature.HugeFungusConfiguration - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/HugeFungusConfiguration.java - Type:
class - Modifiers:
public - Implements:
FeatureConfiguration
net.minecraft.world.level.levelgen.feature.HugeFungusConfiguration#HugeFungusConfiguration(BlockState,BlockState,BlockState,BlockState,BlockPredicate,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeFungusConfiguration.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HugeFungusConfiguration ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: validBaseState, stemState, hatState, decorState, replaceableBlocks, planted.
Parameters
BlockState blockStateBlockState blockState2BlockState blockState3BlockState blockState4BlockPredicate blockPredicateboolean bl
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockState blockState2 = ...;
BlockState blockState3 = ...;
BlockState blockState4 = ...;
BlockPredicate blockPredicate = ...;
HugeFungusConfiguration instance = new HugeFungusConfiguration(blockState, blockState2, blockState3, blockState4, blockPredicate, true);
HugeFungusFeature
- Full name:
net.minecraft.world.level.levelgen.feature.HugeFungusFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/HugeFungusFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<HugeFungusConfiguration>
net.minecraft.world.level.levelgen.feature.HugeFungusFeature#HugeFungusFeature(Codec<HugeFungusConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeFungusFeature.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HugeFungusFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<HugeFungusConfiguration> codec
ตัวอย่างใช้งาน
Codec<HugeFungusConfiguration> codec = ...;
HugeFungusFeature instance = new HugeFungusFeature(codec);
net.minecraft.world.level.levelgen.feature.HugeFungusFeature#place(FeaturePlaceContext<HugeFungusConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeFungusFeature.java:23 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ HugeFungusFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), random(), chunkGenerator(), config(), getBlock(), getBlockState(), below(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<HugeFungusConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
HugeFungusFeature instance = ...;
FeaturePlaceContext<HugeFungusConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
HugeRedMushroomFeature
- Full name:
net.minecraft.world.level.levelgen.feature.HugeRedMushroomFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/HugeRedMushroomFeature.java - Type:
class - Modifiers:
public - Extends:
AbstractHugeMushroomFeature
net.minecraft.world.level.levelgen.feature.HugeRedMushroomFeature#getTreeRadiusForHeight(int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeRedMushroomFeature.java:61 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Tree Radius For Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: m.
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
@Override
protected int getTreeRadiusForHeight(int i, int j, int k, int l) {
return super.getTreeRadiusForHeight(i, j, k, l);
}
net.minecraft.world.level.levelgen.feature.HugeRedMushroomFeature#HugeRedMushroomFeature(Codec<HugeMushroomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeRedMushroomFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HugeRedMushroomFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<HugeMushroomFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<HugeMushroomFeatureConfiguration> codec = ...;
HugeRedMushroomFeature instance = new HugeRedMushroomFeature(codec);
net.minecraft.world.level.levelgen.feature.HugeRedMushroomFeature#makeCap(LevelAccessor,RandomSource,BlockPos,int,BlockPos.MutableBlockPos,HugeMushroomFeatureConfiguration)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/HugeRedMushroomFeature.java:16 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง Cap
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: setWithOffset(), getBlockState(), isSolidRender(), getState(), hasProperty(), setValue(), setBlock().
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos blockPosint iBlockPos.MutableBlockPos mutableBlockPosHugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration = ...;
@Override
protected void makeCap(LevelAccessor levelAccessor, RandomSource randomSource, BlockPos blockPos, int i, BlockPos.MutableBlockPos mutableBlockPos, HugeMushroomFeatureConfiguration hugeMushroomFeatureConfiguration) {
super.makeCap(levelAccessor, randomSource, blockPos, i, mutableBlockPos, hugeMushroomFeatureConfiguration);
}
IcebergFeature
- Full name:
net.minecraft.world.level.levelgen.feature.IcebergFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/IcebergFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<BlockStateConfiguration>
net.minecraft.world.level.levelgen.feature.IcebergFeature#IcebergFeature(Codec<BlockStateConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/IcebergFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IcebergFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<BlockStateConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.IcebergFeature#place(FeaturePlaceContext<BlockStateConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/IcebergFeature.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ IcebergFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), getX(), chunkGenerator(), getSeaLevel(), getZ(), random(), nextDouble(). สร้างออบเจ็กต์: BlockPos. คืนค่า: true.
Parameters
FeaturePlaceContext<BlockStateConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
IcebergFeature instance = ...;
FeaturePlaceContext<BlockStateConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
IceSpikeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.IceSpikeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/IceSpikeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.IceSpikeFeature#IceSpikeFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/IceSpikeFeature.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IceSpikeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.IceSpikeFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/IceSpikeFeature.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ IceSpikeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), random(), level(), isEmptyBlock(), getY(), getMinY(), below(), getBlockState(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
IceSpikeFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
KelpFeature
- Full name:
net.minecraft.world.level.levelgen.feature.KelpFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/KelpFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.KelpFeature#KelpFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/KelpFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ KelpFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.KelpFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/KelpFeature.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ KelpFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), random(), getHeight(), getX(), getZ(), getBlockState(), is(). สร้างออบเจ็กต์: BlockPos. คืนค่า: i > 0.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
KelpFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
LakeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.LakeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/LakeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<LakeFeature.Configuration>
net.minecraft.world.level.levelgen.feature.LakeFeature#LakeFeature(Codec<LakeFeature.Configuration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/LakeFeature.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LakeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<LakeFeature.Configuration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.LakeFeature#place(FeaturePlaceContext<LakeFeature.Configuration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/LakeFeature.java:23 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ LakeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: origin(), level(), random(), config(), getY(), getMinY(), below(), nextInt(). มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<LakeFeature.Configuration> featurePlaceContext
ตัวอย่างใช้งาน
LakeFeature instance = ...;
FeaturePlaceContext<LakeFeature.Configuration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
LargeDripstoneFeature
- Full name:
net.minecraft.world.level.levelgen.feature.LargeDripstoneFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/LargeDripstoneFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<LargeDripstoneConfiguration>
net.minecraft.world.level.levelgen.feature.LargeDripstoneFeature#LargeDripstoneFeature(Codec<LargeDripstoneConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/LargeDripstoneFeature.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LargeDripstoneFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<LargeDripstoneConfiguration> codec
ตัวอย่างใช้งาน
Codec<LargeDripstoneConfiguration> codec = ...;
LargeDripstoneFeature instance = new LargeDripstoneFeature(codec);
net.minecraft.world.level.levelgen.feature.LargeDripstoneFeature#place(FeaturePlaceContext<LargeDripstoneConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/LargeDripstoneFeature.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ LargeDripstoneFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), config(), random(), isEmptyOrWater(), scan(), isEmpty(), get(). สร้างออบเจ็กต์: LargeDripstoneFeature.WindOffsetter. มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<LargeDripstoneConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
LargeDripstoneFeature instance = ...;
FeaturePlaceContext<LargeDripstoneConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
MonsterRoomFeature
- Full name:
net.minecraft.world.level.levelgen.feature.MonsterRoomFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/MonsterRoomFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.MonsterRoomFeature#MonsterRoomFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/MonsterRoomFeature.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MonsterRoomFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
MonsterRoomFeature instance = new MonsterRoomFeature(codec);
net.minecraft.world.level.levelgen.feature.MonsterRoomFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/MonsterRoomFeature.java:31 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ MonsterRoomFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isReplaceable(), origin(), random(), level(), nextInt(), offset(), getBlockState(), isSolid(). สร้างออบเจ็กต์: BlockPos. มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
MonsterRoomFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
MultifaceGrowthFeature
- Full name:
net.minecraft.world.level.levelgen.feature.MultifaceGrowthFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/MultifaceGrowthFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<MultifaceGrowthConfiguration>
net.minecraft.world.level.levelgen.feature.MultifaceGrowthFeature#MultifaceGrowthFeature(Codec<MultifaceGrowthConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/MultifaceGrowthFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MultifaceGrowthFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<MultifaceGrowthConfiguration> codec
ตัวอย่างใช้งาน
Codec<MultifaceGrowthConfiguration> codec = ...;
MultifaceGrowthFeature instance = new MultifaceGrowthFeature(codec);
net.minecraft.world.level.levelgen.feature.MultifaceGrowthFeature#place(FeaturePlaceContext<MultifaceGrowthConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/MultifaceGrowthFeature.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ MultifaceGrowthFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), random(), config(), isAirOrWater(), getBlockState(), getShuffledDirections(), placeGrowthIfPossible(). มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<MultifaceGrowthConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
MultifaceGrowthFeature instance = ...;
FeaturePlaceContext<MultifaceGrowthConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.MultifaceGrowthFeature#placeGrowthIfPossible(WorldGenLevel,BlockPos,BlockState,MultifaceGrowthConfiguration,RandomSource,List<Direction>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/MultifaceGrowthFeature.java:55 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ placeGrowthIfPossible ตาม implementation ของ MultifaceGrowthFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), getBlockState(), setWithOffset(), is(), getStateForPlacement(), setBlock(), getChunk(), markPosForPostprocessing(). มีจุด return อย่างน้อย 3 จุด.
Parameters
WorldGenLevel worldGenLevelBlockPos blockPosBlockState blockStateMultifaceGrowthConfiguration multifaceGrowthConfigurationRandomSource randomSourceList<Direction> list
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
MultifaceGrowthConfiguration multifaceGrowthConfiguration = ...;
RandomSource randomSource = ...;
List<Direction> list = ...;
boolean result = MultifaceGrowthFeature.placeGrowthIfPossible(worldGenLevel, blockPos, blockState, multifaceGrowthConfiguration, randomSource, list);
NetherForestVegetationFeature
- Full name:
net.minecraft.world.level.levelgen.feature.NetherForestVegetationFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/NetherForestVegetationFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NetherForestVegetationConfig>
net.minecraft.world.level.levelgen.feature.NetherForestVegetationFeature#NetherForestVegetationFeature(Codec<NetherForestVegetationConfig>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/NetherForestVegetationFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NetherForestVegetationFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NetherForestVegetationConfig> codec
ตัวอย่างใช้งาน
Codec<NetherForestVegetationConfig> codec = ...;
NetherForestVegetationFeature instance = new NetherForestVegetationFeature(codec);
net.minecraft.world.level.levelgen.feature.NetherForestVegetationFeature#place(FeaturePlaceContext<NetherForestVegetationConfig>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/NetherForestVegetationFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ NetherForestVegetationFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), getBlockState(), below(), config(), random(), is(), getY(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NetherForestVegetationConfig> featurePlaceContext
ตัวอย่างใช้งาน
NetherForestVegetationFeature instance = ...;
FeaturePlaceContext<NetherForestVegetationConfig> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
NoOpFeature
- Full name:
net.minecraft.world.level.levelgen.feature.NoOpFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/NoOpFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.NoOpFeature#NoOpFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/NoOpFeature.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NoOpFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.NoOpFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/NoOpFeature.java:11 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ NoOpFeature
ทำงานยังไง
คืนค่า: true.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
NoOpFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
OreFeature
- Full name:
net.minecraft.world.level.levelgen.feature.OreFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/OreFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<OreConfiguration>
net.minecraft.world.level.levelgen.feature.OreFeature#canPlaceOre(BlockState,Function<BlockPos, BlockState>,RandomSource,OreConfiguration,OreConfiguration.TargetBlockState,BlockPos.MutableBlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/OreFeature.java:168 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Ore
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: test(), shouldSkipAirCheck(), isAdjacentToAir(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockState blockStateFunction<BlockPos, BlockState> functionRandomSource randomSourceOreConfiguration oreConfigurationOreConfiguration.TargetBlockState targetBlockStateBlockPos.MutableBlockPos mutableBlockPos
ตัวอย่างใช้งาน
BlockState blockState = ...;
Function<BlockPos, BlockState> function = ...;
RandomSource randomSource = ...;
OreConfiguration oreConfiguration = ...;
OreConfiguration.TargetBlockState targetBlockState = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
boolean result = OreFeature.canPlaceOre(blockState, function, randomSource, oreConfiguration, targetBlockState, mutableBlockPos);
net.minecraft.world.level.levelgen.feature.OreFeature#doPlace(WorldGenLevel,RandomSource,OreConfiguration,double,double,double,double,double,double,int,int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/OreFeature.java:55 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ doPlace ตาม implementation ของ OreFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: MutableBlockPos(), lerp(), nextDouble(), sin(), max(), floor(), isOutsideBuildHeight(), get(). สร้างออบเจ็กต์: BitSet, BlockPos.MutableBlockPos, BulkSectionAccess. คืนค่า: o > 0.
Parameters
WorldGenLevel worldGenLevelRandomSource randomSourceOreConfiguration oreConfigurationdouble ddouble edouble fdouble gdouble hdouble iint jint kint lint mint n
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
RandomSource randomSource = ...;
OreConfiguration oreConfiguration = ...;
@Override
protected boolean doPlace(WorldGenLevel worldGenLevel, RandomSource randomSource, OreConfiguration oreConfiguration, double d, double e, double f, double g, double h, double i, int j, int k, int l, int m, int n) {
return super.doPlace(worldGenLevel, randomSource, oreConfiguration, d, e, f, g, h, i, j, k, l, m, n);
}
net.minecraft.world.level.levelgen.feature.OreFeature#OreFeature(Codec<OreConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/OreFeature.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OreFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<OreConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.OreFeature#place(FeaturePlaceContext<OreConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/OreFeature.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ OreFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), origin(), level(), config(), nextFloat(), ceil(), getX(), sin(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<OreConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
OreFeature instance = ...;
FeaturePlaceContext<OreConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.OreFeature#shouldSkipAirCheck(RandomSource,float)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/OreFeature.java:183 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Skip Air Check
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: nextFloat(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomSource randomSourcefloat f
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
@Override
protected boolean shouldSkipAirCheck(RandomSource randomSource, float f) {
return super.shouldSkipAirCheck(randomSource, f);
}
PointedDripstoneFeature
- Full name:
net.minecraft.world.level.levelgen.feature.PointedDripstoneFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/PointedDripstoneFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<PointedDripstoneConfiguration>
net.minecraft.world.level.levelgen.feature.PointedDripstoneFeature#place(FeaturePlaceContext<PointedDripstoneConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/PointedDripstoneFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ PointedDripstoneFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), random(), config(), getTipDirection(), isEmpty(), relative(), get(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<PointedDripstoneConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
PointedDripstoneFeature instance = ...;
FeaturePlaceContext<PointedDripstoneConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.PointedDripstoneFeature#PointedDripstoneFeature(Codec<PointedDripstoneConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/PointedDripstoneFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PointedDripstoneFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<PointedDripstoneConfiguration> codec
ตัวอย่างใช้งาน
Codec<PointedDripstoneConfiguration> codec = ...;
PointedDripstoneFeature instance = new PointedDripstoneFeature(codec);
RandomBooleanSelectorFeature
- Full name:
net.minecraft.world.level.levelgen.feature.RandomBooleanSelectorFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/RandomBooleanSelectorFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<RandomBooleanFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.RandomBooleanSelectorFeature#place(FeaturePlaceContext<RandomBooleanFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomBooleanSelectorFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ RandomBooleanSelectorFeature
ทำงานยังไง
เรียกต่อ: random(), config(), level(), chunkGenerator(), origin(), nextBoolean(), value().
Parameters
FeaturePlaceContext<RandomBooleanFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
RandomBooleanSelectorFeature instance = ...;
FeaturePlaceContext<RandomBooleanFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.RandomBooleanSelectorFeature#RandomBooleanSelectorFeature(Codec<RandomBooleanFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomBooleanSelectorFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RandomBooleanSelectorFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<RandomBooleanFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<RandomBooleanFeatureConfiguration> codec = ...;
RandomBooleanSelectorFeature instance = new RandomBooleanSelectorFeature(codec);
RandomPatchFeature
- Full name:
net.minecraft.world.level.levelgen.feature.RandomPatchFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/RandomPatchFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<RandomPatchConfiguration>
net.minecraft.world.level.levelgen.feature.RandomPatchFeature#place(FeaturePlaceContext<RandomPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomPatchFeature.java:14 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ RandomPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), random(), origin(), level(), MutableBlockPos(), xzSpread(), ySpread(), tries(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: i > 0.
Parameters
FeaturePlaceContext<RandomPatchConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
RandomPatchFeature instance = ...;
FeaturePlaceContext<RandomPatchConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.RandomPatchFeature#RandomPatchFeature(Codec<RandomPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomPatchFeature.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RandomPatchFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<RandomPatchConfiguration> codec
ตัวอย่างใช้งาน
Codec<RandomPatchConfiguration> codec = ...;
RandomPatchFeature instance = new RandomPatchFeature(codec);
RandomSelectorFeature
- Full name:
net.minecraft.world.level.levelgen.feature.RandomSelectorFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/RandomSelectorFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<RandomFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.RandomSelectorFeature#place(FeaturePlaceContext<RandomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomSelectorFeature.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ RandomSelectorFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), random(), level(), chunkGenerator(), origin(), nextFloat(), value(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<RandomFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
RandomSelectorFeature instance = ...;
FeaturePlaceContext<RandomFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.RandomSelectorFeature#RandomSelectorFeature(Codec<RandomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RandomSelectorFeature.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RandomSelectorFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<RandomFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<RandomFeatureConfiguration> codec = ...;
RandomSelectorFeature instance = new RandomSelectorFeature(codec);
ReplaceBlobsFeature
- Full name:
net.minecraft.world.level.levelgen.feature.ReplaceBlobsFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/ReplaceBlobsFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<ReplaceSphereConfiguration>
net.minecraft.world.level.levelgen.feature.ReplaceBlobsFeature#place(FeaturePlaceContext<ReplaceSphereConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ReplaceBlobsFeature.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ ReplaceBlobsFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), level(), random(), getBlock(), findTarget(), origin(), mutable(), clamp(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<ReplaceSphereConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
ReplaceBlobsFeature instance = ...;
FeaturePlaceContext<ReplaceSphereConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.ReplaceBlobsFeature#ReplaceBlobsFeature(Codec<ReplaceSphereConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ReplaceBlobsFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReplaceBlobsFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<ReplaceSphereConfiguration> codec
ตัวอย่างใช้งาน
Codec<ReplaceSphereConfiguration> codec = ...;
ReplaceBlobsFeature instance = new ReplaceBlobsFeature(codec);
ReplaceBlockFeature
- Full name:
net.minecraft.world.level.levelgen.feature.ReplaceBlockFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/ReplaceBlockFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<ReplaceBlockConfiguration>
net.minecraft.world.level.levelgen.feature.ReplaceBlockFeature#place(FeaturePlaceContext<ReplaceBlockConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ReplaceBlockFeature.java:14 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ ReplaceBlockFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), config(), test(), getBlockState(), random(), setBlock(). คืนค่า: true.
Parameters
FeaturePlaceContext<ReplaceBlockConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
ReplaceBlockFeature instance = ...;
FeaturePlaceContext<ReplaceBlockConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.ReplaceBlockFeature#ReplaceBlockFeature(Codec<ReplaceBlockConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ReplaceBlockFeature.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReplaceBlockFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<ReplaceBlockConfiguration> codec
ตัวอย่างใช้งาน
Codec<ReplaceBlockConfiguration> codec = ...;
ReplaceBlockFeature instance = new ReplaceBlockFeature(codec);
RootSystemFeature
- Full name:
net.minecraft.world.level.levelgen.feature.RootSystemFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/RootSystemFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<RootSystemConfiguration>
net.minecraft.world.level.levelgen.feature.RootSystemFeature#place(FeaturePlaceContext<RootSystemConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RootSystemFeature.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ RootSystemFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), getBlockState(), isAir(), random(), config(), mutable(), placeDirtAndTree(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<RootSystemConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
RootSystemFeature instance = ...;
FeaturePlaceContext<RootSystemConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.RootSystemFeature#RootSystemFeature(Codec<RootSystemConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/RootSystemFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RootSystemFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<RootSystemConfiguration> codec
ตัวอย่างใช้งาน
Codec<RootSystemConfiguration> codec = ...;
RootSystemFeature instance = new RootSystemFeature(codec);
ScatteredOreFeature
- Full name:
net.minecraft.world.level.levelgen.feature.ScatteredOreFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/ScatteredOreFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<OreConfiguration>
net.minecraft.world.level.levelgen.feature.ScatteredOreFeature#place(FeaturePlaceContext<OreConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/ScatteredOreFeature.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ ScatteredOreFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), random(), config(), origin(), nextInt(), MutableBlockPos(), offsetTargetPos(), min(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: true.
Parameters
FeaturePlaceContext<OreConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
ScatteredOreFeature instance = ...;
FeaturePlaceContext<OreConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
SculkPatchFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SculkPatchFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SculkPatchFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<SculkPatchConfiguration>
net.minecraft.world.level.levelgen.feature.SculkPatchFeature#place(FeaturePlaceContext<SculkPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SculkPatchFeature.java:21 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SculkPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), canSpreadFrom(), config(), random(), createWorldGenSpreader(), spreadRounds(), growthRounds(). มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<SculkPatchConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SculkPatchFeature instance = ...;
FeaturePlaceContext<SculkPatchConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SculkPatchFeature#SculkPatchFeature(Codec<SculkPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SculkPatchFeature.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkPatchFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<SculkPatchConfiguration> codec
ตัวอย่างใช้งาน
Codec<SculkPatchConfiguration> codec = ...;
SculkPatchFeature instance = new SculkPatchFeature(codec);
SeagrassFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SeagrassFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SeagrassFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<ProbabilityFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.SeagrassFeature#place(FeaturePlaceContext<ProbabilityFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SeagrassFeature.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SeagrassFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: random(), level(), origin(), config(), nextInt(), getHeight(), getX(), getZ(). สร้างออบเจ็กต์: BlockPos. คืนค่า: bl.
Parameters
FeaturePlaceContext<ProbabilityFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SeagrassFeature instance = ...;
FeaturePlaceContext<ProbabilityFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SeagrassFeature#SeagrassFeature(Codec<ProbabilityFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SeagrassFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SeagrassFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<ProbabilityFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<ProbabilityFeatureConfiguration> codec = ...;
SeagrassFeature instance = new SeagrassFeature(codec);
SeaPickleFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SeaPickleFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SeaPickleFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<CountConfiguration>
net.minecraft.world.level.levelgen.feature.SeaPickleFeature#place(FeaturePlaceContext<CountConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SeaPickleFeature.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SeaPickleFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), level(), origin(), config(), count(), sample(), nextInt(), getHeight(). สร้างออบเจ็กต์: BlockPos. คืนค่า: i > 0.
Parameters
FeaturePlaceContext<CountConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SeaPickleFeature instance = ...;
FeaturePlaceContext<CountConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SeaPickleFeature#SeaPickleFeature(Codec<CountConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SeaPickleFeature.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SeaPickleFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<CountConfiguration> codec
ตัวอย่างใช้งาน
SimpleBlockFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SimpleBlockFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SimpleBlockFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<SimpleBlockConfiguration>
net.minecraft.world.level.levelgen.feature.SimpleBlockFeature#place(FeaturePlaceContext<SimpleBlockConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SimpleBlockFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SimpleBlockFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: config(), level(), origin(), toPlace(), getState(), random(), canSurvive(), getBlock(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<SimpleBlockConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SimpleBlockFeature instance = ...;
FeaturePlaceContext<SimpleBlockConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SimpleBlockFeature#SimpleBlockFeature(Codec<SimpleBlockConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SimpleBlockFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleBlockFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<SimpleBlockConfiguration> codec
ตัวอย่างใช้งาน
Codec<SimpleBlockConfiguration> codec = ...;
SimpleBlockFeature instance = new SimpleBlockFeature(codec);
SimpleRandomSelectorFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SimpleRandomSelectorFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SimpleRandomSelectorFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<SimpleRandomFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.SimpleRandomSelectorFeature#place(FeaturePlaceContext<SimpleRandomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SimpleRandomSelectorFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SimpleRandomSelectorFeature
ทำงานยังไง
เรียกต่อ: random(), config(), level(), origin(), chunkGenerator(), nextInt(), size(), get(). คืนค่า: placedFeature.place(worldGenLevel, chunkGenerator, randomSource, blockPos).
Parameters
FeaturePlaceContext<SimpleRandomFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SimpleRandomSelectorFeature instance = ...;
FeaturePlaceContext<SimpleRandomFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SimpleRandomSelectorFeature#SimpleRandomSelectorFeature(Codec<SimpleRandomFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SimpleRandomSelectorFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleRandomSelectorFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<SimpleRandomFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<SimpleRandomFeatureConfiguration> codec = ...;
SimpleRandomSelectorFeature instance = new SimpleRandomSelectorFeature(codec);
SnowAndFreezeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SnowAndFreezeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SnowAndFreezeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.SnowAndFreezeFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SnowAndFreezeFeature.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SnowAndFreezeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), MutableBlockPos(), getX(), getZ(), getHeight(), set(), move(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. คืนค่า: true.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SnowAndFreezeFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SnowAndFreezeFeature#SnowAndFreezeFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SnowAndFreezeFeature.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SnowAndFreezeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
SnowAndFreezeFeature instance = new SnowAndFreezeFeature(codec);
SpikeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SpikeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SpikeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<SpikeConfiguration>
net.minecraft.world.level.levelgen.feature.SpikeFeature#getSpikesForLevel(WorldGenLevel)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:42 - Modifiers:
public static - Return:
List<SpikeFeature.EndSpike>
คืออะไร
อ่านค่า Spikes For Level
ทำงานยังไง
เรียกต่อ: create(), getSeed(), nextLong(), getUnchecked(). คืนค่า: SPIKE_CACHE.getUnchecked(l).
Parameters
WorldGenLevel worldGenLevel
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
List<SpikeFeature.EndSpike> result = SpikeFeature.getSpikesForLevel(worldGenLevel);
net.minecraft.world.level.levelgen.feature.SpikeFeature#place(FeaturePlaceContext<SpikeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:48 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SpikeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: config(), level(), random(), origin(), getSpikes(), isEmpty(), getSpikesForLevel(), isCenterWithinChunk(). คืนค่า: true.
Parameters
FeaturePlaceContext<SpikeConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SpikeFeature instance = ...;
FeaturePlaceContext<SpikeConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SpikeFeature#SpikeFeature(Codec<SpikeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpikeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<SpikeConfiguration> codec
ตัวอย่างใช้งาน
SpikeFeature$EndSpike
- Full name:
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SpikeFeature.java - Type:
class - Modifiers:
public static
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#EndSpike(int,int,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:142 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpikeFeature.EndSpike ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: centerX, centerZ, radius, height, guarded, topBoundingBox. สร้างออบเจ็กต์: AABB.
Parameters
int iint jint kint lboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#getCenterX()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:156 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Center X
ทำงานยังไง
คืนค่า: this.centerX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#getCenterZ()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:160 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Center Z
ทำงานยังไง
คืนค่า: this.centerZ.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:168 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#getRadius()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:164 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Radius
ทำงานยังไง
คืนค่า: this.radius.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#getTopBoundingBox()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:176 - Modifiers:
public - Return:
AABB
คืออะไร
อ่านค่า Top Bounding Box
ทำงานยังไง
คืนค่า: this.topBoundingBox.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#isCenterWithinChunk(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:151 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Center Within Chunk
ทำงานยังไง
เรียกต่อ: blockToSectionCoord(), getX(), getZ().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
SpikeFeature.EndSpike instance = ...;
BlockPos blockPos = ...;
boolean result = instance.isCenterWithinChunk(blockPos);
net.minecraft.world.level.levelgen.feature.SpikeFeature$EndSpike#isGuarded()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpikeFeature.java:172 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Guarded
ทำงานยังไง
คืนค่า: this.guarded.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SpringFeature
- Full name:
net.minecraft.world.level.levelgen.feature.SpringFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/SpringFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<SpringConfiguration>
net.minecraft.world.level.levelgen.feature.SpringFeature#place(FeaturePlaceContext<SpringConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpringFeature.java:14 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ SpringFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: config(), level(), origin(), getBlockState(), above(), is(), below(), isAir(). มีจุด return อย่างน้อย 4 จุด.
Parameters
FeaturePlaceContext<SpringConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
SpringFeature instance = ...;
FeaturePlaceContext<SpringConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.SpringFeature#SpringFeature(Codec<SpringConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/SpringFeature.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpringFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<SpringConfiguration> codec
ตัวอย่างใช้งาน
TreeFeature
- Full name:
net.minecraft.world.level.levelgen.feature.TreeFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/TreeFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<TreeConfiguration>
net.minecraft.world.level.levelgen.feature.TreeFeature#isAirOrLeaves(LevelSimulatedReader,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TreeFeature.java:43 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Air Or Leaves
ทำงานยังไง
เรียกต่อ: isStateAtPosition(), isAir(), is(). คืนค่า: levelSimulatedReader.isStateAtPosition(blockPos, blockState -> blockState.isAir() || blockState.is(BlockTags.LEAVES)).
Parameters
LevelSimulatedReader levelSimulatedReaderBlockPos blockPos
ตัวอย่างใช้งาน
LevelSimulatedReader levelSimulatedReader = ...;
BlockPos blockPos = ...;
boolean result = TreeFeature.isAirOrLeaves(levelSimulatedReader, blockPos);
net.minecraft.world.level.levelgen.feature.TreeFeature#place(FeaturePlaceContext<TreeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TreeFeature.java:120 - Modifiers:
public final - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ TreeFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), random(), origin(), config(), newHashSet(), add(), immutable(), setBlock(). สร้างออบเจ็กต์: FoliagePlacer.FoliageSetter, TreeDecorator.Context. มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<TreeConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
TreeFeature instance = ...;
FeaturePlaceContext<TreeConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.TreeFeature#setBlock(LevelWriter,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TreeFeature.java:115 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Block
ทำงานยังไง
เรียกต่อ: setBlockKnownShape().
Parameters
LevelWriter levelWriterBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
LevelWriter levelWriter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void setBlock(LevelWriter levelWriter, BlockPos blockPos, BlockState blockState) {
super.setBlock(levelWriter, blockPos, blockState);
}
net.minecraft.world.level.levelgen.feature.TreeFeature#TreeFeature(Codec<TreeConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TreeFeature.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TreeFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<TreeConfiguration> codec
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.TreeFeature#validTreePos(LevelSimulatedReader,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TreeFeature.java:51 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ validTreePos ตาม implementation ของ TreeFeature
ทำงานยังไง
เรียกต่อ: isStateAtPosition(), isAir(), is(). คืนค่า: levelSimulatedReader.isStateAtPosition(blockPos, blockState -> blockState.isAir() || blockState.is(BlockTags.REPLACEABLE_BY_TREES)).
Parameters
LevelSimulatedReader levelSimulatedReaderBlockPos blockPos
ตัวอย่างใช้งาน
LevelSimulatedReader levelSimulatedReader = ...;
BlockPos blockPos = ...;
boolean result = TreeFeature.validTreePos(levelSimulatedReader, blockPos);
TwistingVinesFeature
- Full name:
net.minecraft.world.level.levelgen.feature.TwistingVinesFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/TwistingVinesFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<TwistingVinesConfig>
net.minecraft.world.level.levelgen.feature.TwistingVinesFeature#place(FeaturePlaceContext<TwistingVinesConfig>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TwistingVinesFeature.java:20 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ TwistingVinesFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), isInvalidPlacementLocation(), random(), config(), spreadWidth(), spreadHeight(), maxHeight(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<TwistingVinesConfig> featurePlaceContext
ตัวอย่างใช้งาน
TwistingVinesFeature instance = ...;
FeaturePlaceContext<TwistingVinesConfig> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.TwistingVinesFeature#placeWeepingVinesColumn(LevelAccessor,RandomSource,BlockPos.MutableBlockPos,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TwistingVinesFeature.java:68 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ placeWeepingVinesColumn ตาม implementation ของ TwistingVinesFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmptyBlock(), above(), setBlock(), defaultBlockState(), setValue(), nextInt(), move().
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos.MutableBlockPos mutableBlockPosint iint jint k
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
TwistingVinesFeature.placeWeepingVinesColumn(levelAccessor, randomSource, mutableBlockPos, 0, 0, 0);
net.minecraft.world.level.levelgen.feature.TwistingVinesFeature#TwistingVinesFeature(Codec<TwistingVinesConfig>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/TwistingVinesFeature.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TwistingVinesFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<TwistingVinesConfig> codec
ตัวอย่างใช้งาน
Codec<TwistingVinesConfig> codec = ...;
TwistingVinesFeature instance = new TwistingVinesFeature(codec);
UnderwaterMagmaFeature
- Full name:
net.minecraft.world.level.levelgen.feature.UnderwaterMagmaFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/UnderwaterMagmaFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<UnderwaterMagmaConfiguration>
net.minecraft.world.level.levelgen.feature.UnderwaterMagmaFeature#place(FeaturePlaceContext<UnderwaterMagmaConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/UnderwaterMagmaFeature.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ UnderwaterMagmaFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), config(), random(), getFloorY(), isEmpty(), atY(), getAsInt(). สร้างออบเจ็กต์: Vec3i. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<UnderwaterMagmaConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
UnderwaterMagmaFeature instance = ...;
FeaturePlaceContext<UnderwaterMagmaConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.UnderwaterMagmaFeature#UnderwaterMagmaFeature(Codec<UnderwaterMagmaConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/UnderwaterMagmaFeature.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ UnderwaterMagmaFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<UnderwaterMagmaConfiguration> codec
ตัวอย่างใช้งาน
Codec<UnderwaterMagmaConfiguration> codec = ...;
UnderwaterMagmaFeature instance = new UnderwaterMagmaFeature(codec);
VegetationPatchFeature
- Full name:
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<VegetationPatchConfiguration>
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#distributeVegetation(FeaturePlaceContext<VegetationPatchConfiguration>,WorldGenLevel,VegetationPatchConfiguration,RandomSource,Set<BlockPos>,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:97 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ distributeVegetation ตาม implementation ของ VegetationPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextFloat(), placeVegetation(), chunkGenerator().
Parameters
FeaturePlaceContext<VegetationPatchConfiguration> featurePlaceContextWorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationRandomSource randomSourceSet<BlockPos> setint iint j
ตัวอย่างใช้งาน
FeaturePlaceContext<VegetationPatchConfiguration> featurePlaceContext = ...;
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
RandomSource randomSource = ...;
Set<BlockPos> set = ...;
@Override
protected void distributeVegetation(FeaturePlaceContext<VegetationPatchConfiguration> featurePlaceContext, WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, RandomSource randomSource, Set<BlockPos> set, int i, int j) {
super.distributeVegetation(featurePlaceContext, worldGenLevel, vegetationPatchConfiguration, randomSource, set, i, j);
}
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#place(FeaturePlaceContext<VegetationPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:21 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ VegetationPatchFeature
ทำงานยังไง
เรียกต่อ: level(), config(), random(), origin(), is(), sample(), placeGroundPatch(), distributeVegetation(). คืนค่า: !set.isEmpty().
Parameters
FeaturePlaceContext<VegetationPatchConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
VegetationPatchFeature instance = ...;
FeaturePlaceContext<VegetationPatchConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#placeGround(WorldGenLevel,VegetationPatchConfiguration,Predicate<BlockState>,RandomSource,BlockPos.MutableBlockPos,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:125 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeGround ตาม implementation ของ VegetationPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getState(), getBlockState(), is(), getBlock(), test(), setBlock(), move(), getDirection(). มีจุด return อย่างน้อย 2 จุด.
Parameters
WorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationPredicate<BlockState> predicateRandomSource randomSourceBlockPos.MutableBlockPos mutableBlockPosint i
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
Predicate<BlockState> predicate = ...;
RandomSource randomSource = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
@Override
protected boolean placeGround(WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, Predicate<BlockState> predicate, RandomSource randomSource, BlockPos.MutableBlockPos mutableBlockPos, int i) {
return super.placeGround(worldGenLevel, vegetationPatchConfiguration, predicate, randomSource, mutableBlockPos, i);
}
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#placeGroundPatch(WorldGenLevel,VegetationPatchConfiguration,RandomSource,BlockPos,Predicate<BlockState>,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:35 - Modifiers:
protected - Return:
Set<BlockPos>
คืออะไร
ดำเนินการ placeGroundPatch ตาม implementation ของ VegetationPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: mutable(), getDirection(), getOpposite(), nextFloat(), setWithOffset(), isStateAtPosition(), move(), isAir(). สร้างออบเจ็กต์: HashSet<>. คืนค่า: set.
Parameters
WorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationRandomSource randomSourceBlockPos blockPosPredicate<BlockState> predicateint iint j
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
Predicate<BlockState> predicate = ...;
@Override
protected Set<BlockPos> placeGroundPatch(WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, RandomSource randomSource, BlockPos blockPos, Predicate<BlockState> predicate, int i, int j) {
return super.placeGroundPatch(worldGenLevel, vegetationPatchConfiguration, randomSource, blockPos, predicate, i, j);
}
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#placeVegetation(WorldGenLevel,VegetationPatchConfiguration,ChunkGenerator,RandomSource,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:113 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeVegetation ตาม implementation ของ VegetationPatchFeature
ทำงานยังไง
เรียกต่อ: value(), place(), relative(), getDirection(), getOpposite().
Parameters
WorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
@Override
protected boolean placeVegetation(WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, ChunkGenerator chunkGenerator, RandomSource randomSource, BlockPos blockPos) {
return super.placeVegetation(worldGenLevel, vegetationPatchConfiguration, chunkGenerator, randomSource, blockPos);
}
net.minecraft.world.level.levelgen.feature.VegetationPatchFeature#VegetationPatchFeature(Codec<VegetationPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VegetationPatchFeature.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VegetationPatchFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<VegetationPatchConfiguration> codec
ตัวอย่างใช้งาน
Codec<VegetationPatchConfiguration> codec = ...;
VegetationPatchFeature instance = new VegetationPatchFeature(codec);
VinesFeature
- Full name:
net.minecraft.world.level.levelgen.feature.VinesFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/VinesFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.VinesFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VinesFeature.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ VinesFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), config(), isEmptyBlock(), values(), isAcceptableNeighbour(), relative(), setBlock(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
VinesFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.VinesFeature#VinesFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VinesFeature.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VinesFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
VoidStartPlatformFeature
- Full name:
net.minecraft.world.level.levelgen.feature.VoidStartPlatformFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/VoidStartPlatformFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.VoidStartPlatformFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VoidStartPlatformFeature.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ VoidStartPlatformFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), origin(), checkerboardDistance(), atY(), getY(), MutableBlockPos(), getMinBlockZ(), getMaxBlockZ(). สร้างออบเจ็กต์: ChunkPos, BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
VoidStartPlatformFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.VoidStartPlatformFeature#VoidStartPlatformFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/VoidStartPlatformFeature.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VoidStartPlatformFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
VoidStartPlatformFeature instance = new VoidStartPlatformFeature(codec);
WaterloggedVegetationPatchFeature
- Full name:
net.minecraft.world.level.levelgen.feature.WaterloggedVegetationPatchFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/WaterloggedVegetationPatchFeature.java - Type:
class - Modifiers:
public - Extends:
VegetationPatchFeature
net.minecraft.world.level.levelgen.feature.WaterloggedVegetationPatchFeature#placeGroundPatch(WorldGenLevel,VegetationPatchConfiguration,RandomSource,BlockPos,Predicate<BlockState>,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WaterloggedVegetationPatchFeature.java:22 - Modifiers:
protected - Return:
Set<BlockPos>
คืออะไร
ดำเนินการ placeGroundPatch ตาม implementation ของ WaterloggedVegetationPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: MutableBlockPos(), isExposed(), add(), setBlock(), defaultBlockState(). สร้างออบเจ็กต์: HashSet<>, BlockPos.MutableBlockPos. คืนค่า: set2.
Parameters
WorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationRandomSource randomSourceBlockPos blockPosPredicate<BlockState> predicateint iint j
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
Predicate<BlockState> predicate = ...;
@Override
protected Set<BlockPos> placeGroundPatch(WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, RandomSource randomSource, BlockPos blockPos, Predicate<BlockState> predicate, int i, int j) {
return super.placeGroundPatch(worldGenLevel, vegetationPatchConfiguration, randomSource, blockPos, predicate, i, j);
}
net.minecraft.world.level.levelgen.feature.WaterloggedVegetationPatchFeature#placeVegetation(WorldGenLevel,VegetationPatchConfiguration,ChunkGenerator,RandomSource,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WaterloggedVegetationPatchFeature.java:62 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ placeVegetation ตาม implementation ของ WaterloggedVegetationPatchFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: below(), getBlockState(), hasProperty(), getValue(), setBlock(), setValue(). มีจุด return อย่างน้อย 2 จุด.
Parameters
WorldGenLevel worldGenLevelVegetationPatchConfiguration vegetationPatchConfigurationChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
WorldGenLevel worldGenLevel = ...;
VegetationPatchConfiguration vegetationPatchConfiguration = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
@Override
protected boolean placeVegetation(WorldGenLevel worldGenLevel, VegetationPatchConfiguration vegetationPatchConfiguration, ChunkGenerator chunkGenerator, RandomSource randomSource, BlockPos blockPos) {
return super.placeVegetation(worldGenLevel, vegetationPatchConfiguration, chunkGenerator, randomSource, blockPos);
}
net.minecraft.world.level.levelgen.feature.WaterloggedVegetationPatchFeature#WaterloggedVegetationPatchFeature(Codec<VegetationPatchConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WaterloggedVegetationPatchFeature.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WaterloggedVegetationPatchFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<VegetationPatchConfiguration> codec
ตัวอย่างใช้งาน
Codec<VegetationPatchConfiguration> codec = ...;
WaterloggedVegetationPatchFeature instance = new WaterloggedVegetationPatchFeature(codec);
WeepingVinesFeature
- Full name:
net.minecraft.world.level.levelgen.feature.WeepingVinesFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/WeepingVinesFeature.java - Type:
class - Modifiers:
public - Extends:
Feature<NoneFeatureConfiguration>
net.minecraft.world.level.levelgen.feature.WeepingVinesFeature#place(FeaturePlaceContext<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WeepingVinesFeature.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ WeepingVinesFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), origin(), random(), isEmptyBlock(), getBlockState(), above(), is(), placeRoofNetherWart(). มีจุด return อย่างน้อย 3 จุด.
Parameters
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext
ตัวอย่างใช้งาน
WeepingVinesFeature instance = ...;
FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext = ...;
boolean result = instance.place(featurePlaceContext);
net.minecraft.world.level.levelgen.feature.WeepingVinesFeature#placeWeepingVinesColumn(LevelAccessor,RandomSource,BlockPos.MutableBlockPos,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WeepingVinesFeature.java:104 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ placeWeepingVinesColumn ตาม implementation ของ WeepingVinesFeature
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmptyBlock(), below(), setBlock(), defaultBlockState(), setValue(), nextInt(), move().
Parameters
LevelAccessor levelAccessorRandomSource randomSourceBlockPos.MutableBlockPos mutableBlockPosint iint jint k
ตัวอย่างใช้งาน
LevelAccessor levelAccessor = ...;
RandomSource randomSource = ...;
BlockPos.MutableBlockPos mutableBlockPos = ...;
WeepingVinesFeature.placeWeepingVinesColumn(levelAccessor, randomSource, mutableBlockPos, 0, 0, 0);
net.minecraft.world.level.levelgen.feature.WeepingVinesFeature#WeepingVinesFeature(Codec<NoneFeatureConfiguration>)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WeepingVinesFeature.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WeepingVinesFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Codec<NoneFeatureConfiguration> codec
ตัวอย่างใช้งาน
Codec<NoneFeatureConfiguration> codec = ...;
WeepingVinesFeature instance = new WeepingVinesFeature(codec);
WeightedPlacedFeature
- Full name:
net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature - Package:
net.minecraft.world.level.levelgen.feature - Source:
common—net/minecraft/world/level/levelgen/feature/WeightedPlacedFeature.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature#place(WorldGenLevel,ChunkGenerator,RandomSource,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WeightedPlacedFeature.java:28 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ place ตาม implementation ของ WeightedPlacedFeature
ทำงานยังไง
เรียกต่อ: value(). คืนค่า: this.feature.value().place(worldGenLevel, chunkGenerator, randomSource, blockPos).
Parameters
WorldGenLevel worldGenLevelChunkGenerator chunkGeneratorRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
WeightedPlacedFeature instance = ...;
WorldGenLevel worldGenLevel = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
boolean result = instance.place(worldGenLevel, chunkGenerator, randomSource, blockPos);
net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature#WeightedPlacedFeature(Holder<PlacedFeature>,float)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/WeightedPlacedFeature.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WeightedPlacedFeature ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: feature, chance.
Parameters
Holder<PlacedFeature> holderfloat f
ตัวอย่างใช้งาน
Holder<PlacedFeature> holder = ...;
WeightedPlacedFeature instance = new WeightedPlacedFeature(holder, 0.0F);