mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Added SlimefunItem#isAddonItem()
This commit is contained in:
parent
f7f52d9252
commit
abc808b95b
@ -59,6 +59,7 @@ public class SlimefunItem {
|
|||||||
Set<ItemHandler> itemhandlers;
|
Set<ItemHandler> itemhandlers;
|
||||||
URID urid;
|
URID urid;
|
||||||
boolean ticking = false;
|
boolean ticking = false;
|
||||||
|
boolean addon = false;
|
||||||
BlockTicker ticker;
|
BlockTicker ticker;
|
||||||
EnergyTicker energy;
|
EnergyTicker energy;
|
||||||
|
|
||||||
@ -173,6 +174,7 @@ public class SlimefunItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void register(boolean slimefun) {
|
public void register(boolean slimefun) {
|
||||||
|
addon = !slimefun;
|
||||||
try {
|
try {
|
||||||
if (recipe.length < 9) recipe = new ItemStack[] {null, null, null, null, null, null, null, null, null};
|
if (recipe.length < 9) recipe = new ItemStack[] {null, null, null, null, null, null, null, null, null};
|
||||||
all.add(this);
|
all.add(this);
|
||||||
@ -469,4 +471,8 @@ public class SlimefunItem {
|
|||||||
public void addWikipage(String page) {
|
public void addWikipage(String page) {
|
||||||
Slimefun.addWikiPage(this.getName(), "https://github.com/mrCookieSlime/Slimefun4/wiki/" + page);
|
Slimefun.addWikiPage(this.getName(), "https://github.com/mrCookieSlime/Slimefun4/wiki/" + page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isAddonItem() {
|
||||||
|
return this.addon;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user