-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BillyGalbreath/main
Thanks Billy for the smart implementation and technique. I shall learn from this. Boom.
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 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
21 changes: 21 additions & 0 deletions
21
src/main/java/adhdmc/invisibleframes/hooks/ItemsAdder.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,21 @@ | ||
package adhdmc.invisibleframes.hooks; | ||
|
||
import org.bukkit.inventory.ItemStack; | ||
|
||
public interface ItemsAdder { | ||
boolean isCustomStack(ItemStack stack); | ||
|
||
class Impl implements ItemsAdder { | ||
@Override | ||
public boolean isCustomStack(ItemStack stack) { | ||
return dev.lone.itemsadder.api.CustomStack.byItemStack(stack) != null; | ||
} | ||
} | ||
|
||
class Noop implements ItemsAdder { | ||
@Override | ||
public boolean isCustomStack(ItemStack stack) { | ||
return false; | ||
} | ||
} | ||
} |