mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Another pass through
This commit is contained in:
1 parent
bd5b395ee8
commit
fc1dd61c53
66 files changed
+170
-296
No files matched your search
@@ -23,6 +23,8 @@ import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.DyeColor;
|
||||
import net.minecraft.item.DyeColor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Effect;
|
||||
import net.minecraft.potion.Effects;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
@@ -50,10 +52,15 @@ import java.util.Random;
|
||||
public class BlockModFlower extends FlowerBlock implements ILexiconable, IGrowable {
|
||||
public final DyeColor color;
|
||||
protected BlockModFlower(DyeColor color, Properties builder) {
|
||||
super(builder);
|
||||
super(effectForFlower(color), 4, builder);
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
private static Effect effectForFlower(DyeColor color) {
|
||||
// todo 1.14
|
||||
return Effects.REGENERATION;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public void animateTick(BlockState state, World world, BlockPos pos, Random rand) {
|
||||
|
||||
Reference in new issue
Block a user