Gigantic amaranita bonemeal grow

This commit is contained in:
paulevsGitch 2021-03-06 14:54:36 +03:00
parent 9899492a93
commit 0fe5b9f0b9
2 changed files with 36 additions and 3 deletions

View file

@ -1,5 +1,7 @@
package ru.betterend.blocks;
import java.util.Random;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.Block;
@ -13,6 +15,7 @@ import net.minecraft.util.math.BlockPos;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.util.shape.VoxelShapes;
import net.minecraft.world.BlockView;
import net.minecraft.world.World;
import net.minecraft.world.WorldView;
import ru.betterend.blocks.BlockProperties.TripleShape;
import ru.betterend.blocks.basis.EndPlantBlock;
@ -64,4 +67,14 @@ public class LargeAmaranitaBlock extends EndPlantBlock {
public OffsetType getOffsetType() {
return OffsetType.NONE;
}
@Override
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
return false;
}
@Override
public boolean canGrow(World world, Random random, BlockPos pos, BlockState state) {
return false;
}
}