[Change] Migrated to new Feature API

This commit is contained in:
Frank 2022-07-01 13:23:36 +02:00
parent 0ec39fa2da
commit 031a14f278
16 changed files with 242 additions and 120 deletions

View file

@ -105,14 +105,15 @@ public class SmallJellyshroomBlock extends BaseAttachedBlock implements RenderLa
@Override
public void performBonemeal(ServerLevel world, RandomSource random, BlockPos pos, BlockState state) {
BlocksHelper.setWithUpdate(world, pos, Blocks.AIR);
EndFeatures.JELLYSHROOM.getFeature().place(new FeaturePlaceContext<>(
Optional.empty(),
world,
null,
random,
pos,
null
));
EndFeatures.JELLYSHROOM.getFeature()
.place(new FeaturePlaceContext<net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration>(
Optional.empty(),
world,
null,
random,
pos,
null
));
}
@Override