-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow lucky taters to break existing drops
- Loading branch information
Showing
3 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
src/main/java/xyz/nucleoid/extras/lobby/block/tater/LuckyTaterDropPos.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,17 @@ | ||
package xyz.nucleoid.extras.lobby.block.tater; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
|
||
public sealed interface LuckyTaterDropPos { | ||
public record Allowed(BlockPos pos) implements LuckyTaterDropPos {} | ||
|
||
public record Blocked(BlockPos pos) implements LuckyTaterDropPos {} | ||
|
||
public final class None implements LuckyTaterDropPos { | ||
public static final None INSTANCE = new None(); | ||
|
||
private None() { | ||
return; | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/xyz/nucleoid/extras/lobby/block/tater/LuckyTaterPhase.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,27 @@ | ||
package xyz.nucleoid.extras.lobby.block.tater; | ||
|
||
import net.minecraft.util.StringIdentifiable; | ||
|
||
public enum LuckyTaterPhase implements StringIdentifiable { | ||
READY("ready", 0), | ||
BUILDING_COURAGE("building_courage", 1), | ||
COOLDOWN("cooldown", 15), | ||
; | ||
|
||
private final String name; | ||
private final int comparatorOutput; | ||
|
||
private LuckyTaterPhase(String name, int comparatorOutput) { | ||
this.name = name; | ||
this.comparatorOutput = comparatorOutput; | ||
} | ||
|
||
@Override | ||
public String asString() { | ||
return this.name; | ||
} | ||
|
||
public int getComparatorOutput() { | ||
return this.comparatorOutput; | ||
} | ||
} |