Started to removed FabricBlockSettings Helper

This commit is contained in:
Frank 2022-07-12 23:54:12 +02:00
parent 22ae922439
commit 9753373429
6 changed files with 29 additions and 30 deletions

View file

@ -33,7 +33,6 @@ import net.minecraft.world.phys.shapes.VoxelShape;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import java.util.Collections;
import java.util.List;
@ -52,23 +51,23 @@ public class FeatureSaplingBlock<F extends Feature<FC>, FC extends FeatureConfig
public FeatureSaplingBlock(FeatureSupplier<F, FC> featureSupplier) {
this(
FabricBlockSettings.of(Material.PLANT)
.collidable(false)
.instabreak()
.sound(SoundType.GRASS)
.randomTicks(),
BlockBehaviour.Properties.of(Material.PLANT)
.noCollission()
.instabreak()
.sound(SoundType.GRASS)
.randomTicks(),
featureSupplier
);
}
public FeatureSaplingBlock(int light, FeatureSupplier<F, FC> featureSupplier) {
this(
FabricBlockSettings.of(Material.PLANT)
.collidable(false)
.luminance(light)
.instabreak()
.sound(SoundType.GRASS)
.randomTicks(),
BlockBehaviour.Properties.of(Material.PLANT)
.noCollission()
.lightLevel(state -> light)
.instabreak()
.sound(SoundType.GRASS)
.randomTicks(),
featureSupplier
);
}