[Change] Added BlockBehaviour as a base Interface

This commit is contained in:
Frank 2023-07-11 22:23:58 +02:00
parent 573cb73c80
commit 04a1653ae0
18 changed files with 25 additions and 18 deletions

View file

@ -41,14 +41,17 @@ public class BehaviourBuilders {
return new Item.Properties().stacksTo(1).rarity(Rarity.RARE);
}
public static BlockBehaviour.Properties createVine(MapColor color) {
public static BlockBehaviour.Properties createStaticVine(MapColor color) {
return createPlant(color)
.replaceable()
.noCollission()
.randomTicks()
.strength(0.2f)
.sound(SoundType.VINE);
}
public static BlockBehaviour.Properties createVine(MapColor color) {
return createStaticVine(color)
.randomTicks();
}
public static BlockBehaviour.Properties createGrass(MapColor color) {
return createPlant(color)

View file

@ -6,5 +6,5 @@ package org.betterx.bclib.behaviours.interfaces;
* {@link org.betterx.bclib.api.v2.PostInitAPI} will add the {@link net.minecraft.tags.BlockTags#CLIMBABLE} tag to all blocks that
* implement this interface.
*/
public interface BehaviourClimable {
public interface BehaviourClimable extends BlockBehaviour{
}

View file

@ -7,7 +7,7 @@ package org.betterx.bclib.behaviours.interfaces;
* {@link org.betterx.worlds.together.tag.v3.CommonItemTags#COMPOSTABLE} tag to the items of all blocks that
* implement this interface. It will also register the Block with the {@link org.betterx.bclib.api.v2.ComposterAPI}
*/
public interface BehaviourCompostable {
public interface BehaviourCompostable extends BlockBehaviour{
/**
* The chance that this block will be composted.

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourExplosionResistant {
public interface BehaviourExplosionResistant extends BlockBehaviour{
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
public interface BehaviourGlass extends AddMineablePickaxe {
public interface BehaviourGlass extends AddMineablePickaxe, BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
public interface BehaviourIce extends AddMineablePickaxe {
public interface BehaviourIce extends AddMineablePickaxe, BlockBehaviour {
}

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourImmobile {
public interface BehaviourImmobile extends BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
public interface BehaviourMetal extends AddMineablePickaxe {
public interface BehaviourMetal extends AddMineablePickaxe, BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
public interface BehaviourOre extends AddMineablePickaxe {
public interface BehaviourOre extends AddMineablePickaxe, BlockBehaviour {
}

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourPlantLike {
public interface BehaviourPlantLike extends BlockBehaviour {
}

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourPortalFrame {
public interface BehaviourPortalFrame extends BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
public interface BehaviourSand extends AddMineableShovel {
public interface BehaviourSand extends AddMineableShovel, BlockBehaviour {
}

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourSaplingLike {
public interface BehaviourSaplingLike extends BlockBehaviour {
}

View file

@ -1,4 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BehaviourSeedLike {
public interface BehaviourSeedLike extends BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
public interface BehaviourSnow extends AddMineableShovel {
public interface BehaviourSnow extends AddMineableShovel, BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
public interface BehaviourStone extends AddMineablePickaxe {
public interface BehaviourStone extends AddMineablePickaxe, BlockBehaviour {
}

View file

@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
import org.betterx.bclib.interfaces.tools.AddMineableAxe;
public interface BehaviourWood extends AddMineableAxe {
public interface BehaviourWood extends AddMineableAxe, BlockBehaviour {
}

View file

@ -0,0 +1,4 @@
package org.betterx.bclib.behaviours.interfaces;
public interface BlockBehaviour {
}