Adopted new BCLib API

This commit is contained in:
Frank 2022-06-21 19:25:57 +02:00
parent 0f5d4e73fa
commit 6770bbbbea
84 changed files with 164 additions and 153 deletions

View file

@ -1,8 +1,8 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.BasePlantBlock;
import org.betterx.betterend.interfaces.PottablePlant;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,7 +1,7 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.BasePlantWithAgeBlock;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,9 +1,9 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.BaseTerrainBlock;
import org.betterx.bclib.interfaces.TagProvider;
import org.betterx.betterend.interfaces.PottableTerrain;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;

View file

@ -1,7 +1,7 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.UnderwaterPlantBlock;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,7 +1,7 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.BaseUnderwaterWallPlantBlock;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,7 +1,7 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.WallMushroomBlock;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,7 +1,7 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
import org.betterx.bclib.blocks.BaseWallPlantBlock;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.world.level.block.state.BlockState;

View file

@ -1,16 +1,16 @@
package org.betterx.betterend.blocks.basis;
import org.betterx.bclib.api.v2.tag.NamedBlockTags;
import org.betterx.bclib.api.v2.tag.TagAPI;
import org.betterx.bclib.blocks.BaseAttachedBlock;
import org.betterx.bclib.client.render.BCLRenderLayer;
import org.betterx.bclib.interfaces.RenderLayerProvider;
import org.betterx.bclib.interfaces.tools.AddMineableShears;
import org.betterx.bclib.items.tool.BaseShearsItem;
import org.betterx.bclib.util.MHelper;
import org.betterx.worlds.together.tag.v3.TagManager;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.EnchantmentHelper;
import net.minecraft.world.item.enchantment.Enchantments;
@ -45,7 +45,7 @@ public class FurBlock extends BaseAttachedBlock implements RenderLayerProvider,
.noCollission());
this.drop = drop;
this.dropChance = dropChance;
TagAPI.addBlockTag(NamedBlockTags.LEAVES, this);
TagManager.BLOCKS.add(BlockTags.LEAVES, this);
}
public FurBlock(ItemLike drop, int dropChance) {
@ -55,7 +55,7 @@ public class FurBlock extends BaseAttachedBlock implements RenderLayerProvider,
.noCollission());
this.drop = drop;
this.dropChance = dropChance;
TagAPI.addBlockTag(NamedBlockTags.LEAVES, this);
TagManager.BLOCKS.add(BlockTags.LEAVES, this);
}
@Override