Added Behaviours for all relevant Blocks
This commit is contained in:
parent
3b2a2d4294
commit
6cb70dd35f
83 changed files with 1317 additions and 395 deletions
|
@ -1,10 +0,0 @@
|
|||
package org.betterx.bclib.interfaces.behaviours;
|
||||
|
||||
/**
|
||||
* Interface for blocks that can be climbed.
|
||||
* <p>
|
||||
* {@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 {
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package org.betterx.bclib.interfaces.behaviours;
|
||||
|
||||
/**
|
||||
* Interface for blocks that can be climbed and are vines.
|
||||
* <p>
|
||||
* This will combine the {@link BehaviourClimable} behaviours with all {@link BehaviourVine} behaviours.
|
||||
*/
|
||||
public interface BehaviourClimableVine extends BehaviourClimable, BehaviourVine {
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package org.betterx.bclib.interfaces.behaviours;
|
||||
|
||||
/**
|
||||
* Interface for blocks that can be composted.
|
||||
* <p>
|
||||
* {@link org.betterx.bclib.api.v2.PostInitAPI} will add the
|
||||
* {@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 {
|
||||
|
||||
/**
|
||||
* The chance that this block will be composted.
|
||||
* <p>
|
||||
* The default value is 0.1f.
|
||||
*
|
||||
* @return The chance that this block will be composted.
|
||||
*/
|
||||
default float compostingChance() {
|
||||
return 0.1f;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.betterx.bclib.interfaces.behaviours;
|
||||
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableHoe;
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableShears;
|
||||
|
||||
/**
|
||||
* Interface for leaves blocks.
|
||||
* <p>
|
||||
* Adds composting chance, mineable with shears and hoe.
|
||||
*/
|
||||
public interface BehaviourLeaves extends AddMineableShears, AddMineableHoe, BehaviourCompostable {
|
||||
@Override
|
||||
default float compostingChance() {
|
||||
return 0.3f;
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package org.betterx.bclib.interfaces.behaviours;
|
||||
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableHoe;
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableShears;
|
||||
|
||||
/**
|
||||
* Interface for blocks that are vines.
|
||||
* <p>
|
||||
* This will add the {@link AddMineableShears}, {@link AddMineableHoe} and {@link BehaviourCompostable} behaviours.
|
||||
*/
|
||||
public interface BehaviourVine extends AddMineableShears, AddMineableHoe, BehaviourCompostable {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue