Skip to content

Commit

Permalink
Added missing Tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
quiqueck committed Mar 18, 2022
1 parent 36da35b commit 6beee0b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
import paulevs.betternether.BlocksHelper;
import paulevs.betternether.interfaces.SurvivesOnNetherrack;
import paulevs.betternether.world.structures.plants.StructureAnchorTreeBranch;
import ru.bclib.blocks.FeatureHangingSaplingBlock;
import ru.bclib.world.features.DefaultFeature;
Expand All @@ -21,7 +22,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceC
}
}

public class BlockAnchorTreeSapling extends FeatureHangingSaplingBlock implements BonemealableBlock {
public class BlockAnchorTreeSapling extends FeatureHangingSaplingBlock implements BonemealableBlock, SurvivesOnNetherrack{
private static final DefaultFeature FEATURE = new AnchorTreeFeature();

public BlockAnchorTreeSapling() {
Expand All @@ -30,6 +31,6 @@ public BlockAnchorTreeSapling() {

@Override
protected boolean mayPlaceOn(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos) {
return BlocksHelper.isNetherrack(blockState);
return isSurvivable(blockState);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
import paulevs.betternether.BlocksHelper;
import paulevs.betternether.interfaces.SurvivesOnNetherMycelium;
import paulevs.betternether.world.features.NetherChunkPopulatorFeature;
import paulevs.betternether.world.structures.plants.StructureMushroomFir;
import ru.bclib.blocks.FeatureSaplingBlock;
Expand All @@ -26,7 +27,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceC
}


public class BlockMushroomFirSapling extends FeatureSaplingBlock implements BonemealableBlock {
public class BlockMushroomFirSapling extends FeatureSaplingBlock implements BonemealableBlock, SurvivesOnNetherMycelium {
private static final DefaultFeature FEATURE = new MushroomFirTreeFeature();

public BlockMushroomFirSapling() {
Expand All @@ -35,7 +36,7 @@ public BlockMushroomFirSapling() {

@Override
protected boolean mayPlaceOn(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos) {
return BlocksHelper.isNetherMycelium(blockState);
return isSurvivable(blockState);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
import paulevs.betternether.BlocksHelper;
import paulevs.betternether.interfaces.SurvivesOnNetherrack;
import paulevs.betternether.world.structures.plants.StructureNetherSakura;
import ru.bclib.blocks.FeatureHangingSaplingBlock;
import ru.bclib.world.features.DefaultFeature;
Expand All @@ -21,7 +22,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceC
}
}

public class BlockNetherSakuraSapling extends FeatureHangingSaplingBlock implements BonemealableBlock {
public class BlockNetherSakuraSapling extends FeatureHangingSaplingBlock implements BonemealableBlock, SurvivesOnNetherrack {
private static final DefaultFeature FEATURE = new NetherSakuraFeature();

public BlockNetherSakuraSapling() {
Expand All @@ -30,7 +31,7 @@ public BlockNetherSakuraSapling() {

@Override
protected boolean mayPlaceOn(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos) {
return BlocksHelper.isNetherrack(blockState);
return isSurvivable(blockState);
}
//
// @Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
import paulevs.betternether.BlocksHelper;
import paulevs.betternether.interfaces.SurvivesOnNetherGround;
import paulevs.betternether.world.features.NetherChunkPopulatorFeature;
import paulevs.betternether.world.structures.plants.StructureRubeus;
import ru.bclib.blocks.FeatureSaplingBlock;
Expand All @@ -25,7 +26,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceC
}
}

public class BlockRubeusSapling extends FeatureSaplingBlock implements BonemealableBlock {
public class BlockRubeusSapling extends FeatureSaplingBlock implements BonemealableBlock, SurvivesOnNetherGround {
private static final DefaultFeature FEATURE = new RubeusTreeFeature();

public BlockRubeusSapling() {
Expand All @@ -34,7 +35,7 @@ public BlockRubeusSapling() {

@Override
protected boolean mayPlaceOn(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos) {
return BlocksHelper.isNetherGround(blockState);
return isSurvivable(blockState);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
import paulevs.betternether.BlocksHelper;
import paulevs.betternether.interfaces.SurvivesOnNetherGround;
import paulevs.betternether.world.features.NetherChunkPopulatorFeature;
import paulevs.betternether.world.structures.plants.StructureWillow;
import ru.bclib.blocks.FeatureSaplingBlock;
Expand All @@ -25,7 +26,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceC
}
}

public class BlockWillowSapling extends FeatureSaplingBlock implements BonemealableBlock {
public class BlockWillowSapling extends FeatureSaplingBlock implements BonemealableBlock, SurvivesOnNetherGround {
private static final DefaultFeature FEATURE = new WillowTreeFeature();

public BlockWillowSapling() {
Expand All @@ -39,7 +40,7 @@ public boolean isBonemealSuccess(Level world, Random random, BlockPos pos, Block

@Override
protected boolean mayPlaceOn(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos) {
return BlocksHelper.isNetherGround(blockState);
return isSurvivable(blockState);
}
//
// @Override
Expand Down

0 comments on commit 6beee0b

Please sign in to comment.