[Change] Added BlockBehaviour
as a base Interface
This commit is contained in:
parent
573cb73c80
commit
04a1653ae0
18 changed files with 25 additions and 18 deletions
|
@ -41,14 +41,17 @@ public class BehaviourBuilders {
|
||||||
return new Item.Properties().stacksTo(1).rarity(Rarity.RARE);
|
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)
|
return createPlant(color)
|
||||||
.replaceable()
|
.replaceable()
|
||||||
.noCollission()
|
.noCollission()
|
||||||
.randomTicks()
|
|
||||||
.strength(0.2f)
|
.strength(0.2f)
|
||||||
.sound(SoundType.VINE);
|
.sound(SoundType.VINE);
|
||||||
}
|
}
|
||||||
|
public static BlockBehaviour.Properties createVine(MapColor color) {
|
||||||
|
return createStaticVine(color)
|
||||||
|
.randomTicks();
|
||||||
|
}
|
||||||
|
|
||||||
public static BlockBehaviour.Properties createGrass(MapColor color) {
|
public static BlockBehaviour.Properties createGrass(MapColor color) {
|
||||||
return createPlant(color)
|
return createPlant(color)
|
||||||
|
|
|
@ -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
|
* {@link org.betterx.bclib.api.v2.PostInitAPI} will add the {@link net.minecraft.tags.BlockTags#CLIMBABLE} tag to all blocks that
|
||||||
* implement this interface.
|
* implement this interface.
|
||||||
*/
|
*/
|
||||||
public interface BehaviourClimable {
|
public interface BehaviourClimable extends BlockBehaviour{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
* {@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}
|
* 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.
|
* The chance that this block will be composted.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourExplosionResistant {
|
public interface BehaviourExplosionResistant extends BlockBehaviour{
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
||||||
|
|
||||||
public interface BehaviourGlass extends AddMineablePickaxe {
|
public interface BehaviourGlass extends AddMineablePickaxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
||||||
|
|
||||||
public interface BehaviourIce extends AddMineablePickaxe {
|
public interface BehaviourIce extends AddMineablePickaxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourImmobile {
|
public interface BehaviourImmobile extends BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
||||||
|
|
||||||
public interface BehaviourMetal extends AddMineablePickaxe {
|
public interface BehaviourMetal extends AddMineablePickaxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
||||||
|
|
||||||
public interface BehaviourOre extends AddMineablePickaxe {
|
public interface BehaviourOre extends AddMineablePickaxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourPlantLike {
|
public interface BehaviourPlantLike extends BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourPortalFrame {
|
public interface BehaviourPortalFrame extends BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
|
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
|
||||||
|
|
||||||
public interface BehaviourSand extends AddMineableShovel {
|
public interface BehaviourSand extends AddMineableShovel, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourSaplingLike {
|
public interface BehaviourSaplingLike extends BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.betterx.bclib.behaviours.interfaces;
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
public interface BehaviourSeedLike {
|
public interface BehaviourSeedLike extends BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
|
import org.betterx.bclib.interfaces.tools.AddMineableShovel;
|
||||||
|
|
||||||
public interface BehaviourSnow extends AddMineableShovel {
|
public interface BehaviourSnow extends AddMineableShovel, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
import org.betterx.bclib.interfaces.tools.AddMineablePickaxe;
|
||||||
|
|
||||||
public interface BehaviourStone extends AddMineablePickaxe {
|
public interface BehaviourStone extends AddMineablePickaxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
import org.betterx.bclib.interfaces.tools.AddMineableAxe;
|
import org.betterx.bclib.interfaces.tools.AddMineableAxe;
|
||||||
|
|
||||||
public interface BehaviourWood extends AddMineableAxe {
|
public interface BehaviourWood extends AddMineableAxe, BlockBehaviour {
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package org.betterx.bclib.behaviours.interfaces;
|
||||||
|
|
||||||
|
public interface BlockBehaviour {
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue