Class OreFeature
java.lang.Object
net.minecraft.world.level.levelgen.feature.AbstractOreFeature
net.minecraft.world.level.levelgen.feature.OreFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsFields inherited from class AbstractOreFeature
discardChanceOnAirExposure, size, targetStatesFields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionOreFeature(List<BlockReplacement> targetStates, int size) OreFeature(List<BlockReplacement> targetStates, int size, float discardChanceOnAirExposure) OreFeature(RuleTest target, BlockState state, int size) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<OreFeature> codec()protected booleandoPlace(WorldGenLevel level, RandomSource random, double x0, double x1, double z0, double z1, double y0, double y1, int xStart, int yStart, int zStart, int sizeXZ, int sizeY) booleanplace(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) Methods inherited from class AbstractOreFeature
canPlaceOre, checkNeighbors, discardChanceOnAirExposure, isAdjacentToAir, makeCodec, size, targetStatesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
CODEC
-
-
Constructor Details
-
OreFeature
-
OreFeature
-
OreFeature
-
-
Method Details
-
codec
- Specified by:
codecin interfaceFeature- Specified by:
codecin classAbstractOreFeature
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
doPlace
protected boolean doPlace(WorldGenLevel level, RandomSource random, double x0, double x1, double z0, double z1, double y0, double y1, int xStart, int yStart, int zStart, int sizeXZ, int sizeY)
-