-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
# Conflicts: # dependency-reduced-pom.xml # pom.xml
- Loading branch information
Showing
61 changed files
with
900 additions
and
235 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
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
2 changes: 1 addition & 1 deletion
2
...t/netheopoiesis/slimefun/RecipeTypes.java → ...firaat/netheopoiesis/api/RecipeTypes.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
77 changes: 77 additions & 0 deletions
77
src/main/java/dev/sefiraat/netheopoiesis/api/events/CruxSpreadEvent.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,77 @@ | ||
package dev.sefiraat.netheopoiesis.api.events; | ||
|
||
import dev.sefiraat.netheopoiesis.api.items.NetherCrux; | ||
import dev.sefiraat.netheopoiesis.api.items.NetherSeed; | ||
import org.bukkit.block.Block; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.ParametersAreNonnullByDefault; | ||
|
||
/** | ||
* This event is fired when a Crux is due to spread to another block | ||
* | ||
* @see dev.sefiraat.netheopoiesis.api.items.CruxSpreadingSeed | ||
* @see dev.sefiraat.netheopoiesis.implementation.flora.PurificationSeed | ||
*/ | ||
public class CruxSpreadEvent extends Event implements Cancellable { | ||
|
||
private static final HandlerList HANDLER_LIST = new HandlerList(); | ||
|
||
@Nonnull | ||
private final Block block; | ||
@Nonnull | ||
private final NetherSeed growingPlant; | ||
@Nonnull | ||
private final NetherCrux crux; | ||
private boolean cancelled; | ||
|
||
@ParametersAreNonnullByDefault | ||
public CruxSpreadEvent(Block block, NetherSeed growingPlant, NetherCrux crux) { | ||
this.block = block; | ||
this.growingPlant = growingPlant; | ||
this.crux = crux; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() { | ||
return this.cancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean cancel) { | ||
this.cancelled = cancel; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public HandlerList getHandlers() { | ||
return HANDLER_LIST; | ||
} | ||
|
||
/** | ||
* @return The {@link Block} of the potential new crux | ||
*/ | ||
@Nonnull | ||
public Block getBlock() { | ||
return block; | ||
} | ||
|
||
/** | ||
* @return The {@link NetherSeed} that the growth originated from | ||
*/ | ||
@Nonnull | ||
public NetherSeed getGrowingPlant() { | ||
return growingPlant; | ||
} | ||
|
||
/** | ||
* @return The crux type that will be spread | ||
*/ | ||
@Nonnull | ||
public NetherCrux getCrux() { | ||
return crux; | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
...netheopoiesis/core/plant/NetherPlant.java → ...eopoiesis/api/interfaces/NetherPlant.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
2 changes: 1 addition & 1 deletion
2
...is/core/purification/PurifyingObject.java → ...iesis/api/interfaces/PurifyingObject.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
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
2 changes: 1 addition & 1 deletion
2
...mefun/flora/seeds/BiomeSpreadingSeed.java → ...poiesis/api/items/BiomeSpreadingSeed.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
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
2 changes: 1 addition & 1 deletion
2
...s/slimefun/flora/seeds/DoNothingSeed.java → ...etheopoiesis/api/items/DoNothingSeed.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
2 changes: 1 addition & 1 deletion
2
...is/slimefun/flora/seeds/DroppingSeed.java → ...netheopoiesis/api/items/DroppingSeed.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
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
3 changes: 2 additions & 1 deletion
3
...mefun/flora/seeds/GenericTickingSeed.java → ...poiesis/api/items/GenericTickingSeed.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
Oops, something went wrong.