-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Showing
18 changed files
with
360 additions
and
63 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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/dre/brewery/integration/item/ItemsAdderPluginItem.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 com.dre.brewery.integration.item; | ||
|
||
import com.dre.brewery.filedata.BConfig; | ||
import com.dre.brewery.recipe.PluginItem; | ||
import dev.lone.itemsadder.api.CustomStack; | ||
import org.bukkit.inventory.ItemStack; | ||
|
||
public class ItemsAdderPluginItem extends PluginItem { | ||
@Override | ||
public boolean matches(ItemStack itemStack) { | ||
if (!BConfig.hasItemsAdder) { | ||
return false; | ||
} | ||
|
||
CustomStack cs = CustomStack.byItemStack(itemStack); | ||
if (cs == null) { | ||
return false; | ||
} | ||
return cs.getId().equals(this.getItemId()); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/dre/brewery/integration/item/OraxenPluginItem.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 com.dre.brewery.integration.item; | ||
|
||
import com.dre.brewery.filedata.BConfig; | ||
import com.dre.brewery.recipe.PluginItem; | ||
import io.th0rgal.oraxen.api.OraxenItems; | ||
import org.bukkit.inventory.ItemStack; | ||
|
||
public class OraxenPluginItem extends PluginItem { | ||
@Override | ||
public boolean matches(ItemStack itemStack) { | ||
if (!BConfig.hasOraxen) { | ||
return false; | ||
} | ||
|
||
String itemId = OraxenItems.getIdByItem(itemStack); | ||
if (itemId == null) { | ||
return false; | ||
} | ||
return itemId.equals(this.getItemId()); | ||
} | ||
} |
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
Oops, something went wrong.