-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc21bbe
commit bbbc1a6
Showing
6 changed files
with
156 additions
and
51 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/main/java/net/dakotapride/garnished/block/IDesolateSpread.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package net.dakotapride.garnished.block; | ||
|
||
public interface IDesolateSpread extends ISpreadableBlock {} |
3 changes: 3 additions & 0 deletions
3
src/main/java/net/dakotapride/garnished/block/ISenileSpread.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package net.dakotapride.garnished.block; | ||
|
||
public interface ISenileSpread extends ISpreadableBlock {} |
22 changes: 22 additions & 0 deletions
22
src/main/java/net/dakotapride/garnished/block/ISpreadableBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.dakotapride.garnished.block; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.particles.SimpleParticleType; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.util.RandomSource; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
public interface ISpreadableBlock { | ||
/** | ||
* @return whether spread can be used on this block | ||
*/ | ||
boolean isValidTarget(BlockGetter pLevel, BlockPos pPos, BlockState pState, boolean pIsClient); | ||
|
||
boolean isSuccess(Level pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState); | ||
|
||
void performSpread(ServerLevel pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState); | ||
|
||
SimpleParticleType getParticle(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters