Fixed isValidBonemealTarget
signature
This commit is contained in:
parent
7f03d6597e
commit
d2fe95d6c2
10 changed files with 10 additions and 11 deletions
|
@ -41,7 +41,7 @@ public class BoluxMushroomBlock extends EndPlantBlock implements SurvivesOnRutis
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class BubbleCoralBlock extends EndUnderwaterPlantBlock implements Behavio
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class BulbVineBlock extends BaseVineBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,7 @@ public class CrystalMossCoverBlock extends MultifaceBlock implements Bonemealabl
|
||||||
public boolean isValidBonemealTarget(
|
public boolean isValidBonemealTarget(
|
||||||
LevelReader blockGetter,
|
LevelReader blockGetter,
|
||||||
BlockPos blockPos,
|
BlockPos blockPos,
|
||||||
BlockState blockState,
|
BlockState blockState
|
||||||
boolean bl
|
|
||||||
) {
|
) {
|
||||||
return Direction.stream()
|
return Direction.stream()
|
||||||
.anyMatch(direction -> this.spreader.canSpreadInAnyDirection(
|
.anyMatch(direction -> this.spreader.canSpreadInAnyDirection(
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class EndLilyBlock extends EndUnderwaterPlantBlock implements BehaviourWa
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class HydraluxBlock extends UnderwaterPlantBlock implements BehaviourWate
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class LargeAmaranitaBlock extends EndPlantBlock implements BehaviourPlant
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class PondAnemoneBlock extends EndUnderwaterPlantBlock implements Behavio
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ public class SmallJellyshroomBlock extends BaseAttachedBlock implements RenderLa
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return state.getValue(FACING) == Direction.UP && world.getBlockState(pos.below())
|
return state.getValue(FACING) == Direction.UP && world.getBlockState(pos.below())
|
||||||
.is(CommonBlockTags.END_STONES);
|
.is(CommonBlockTags.END_STONES);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class TenaneaFlowersBlock extends BaseVineBlock implements CustomColorPro
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state, boolean isClient) {
|
public boolean isValidBonemealTarget(LevelReader world, BlockPos pos, BlockState state) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue