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
8 changed files
with
71 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
daysUntilStale: 7 | ||
daysUntilClose: 3 | ||
onlyLabels: | ||
- needs more info | ||
staleLabel: Stale | ||
markComment: > | ||
The required information were not provided yet. Thus, this was marked as stale. | ||
closeComment: > | ||
None of the required information was ever provided. If this is still an issue, feel free to reopen with | ||
the required information, or create a new issue. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
84 changes: 42 additions & 42 deletions
84
src/main/java/de/melanx/ultimatools/compat/JeiCompat.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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
//package de.melanx.ultimatools.compat; | ||
// | ||
//import de.melanx.ultimatools.SkyblockUltimaTools; | ||
//import de.melanx.ultimatools.item.Registration; | ||
//import mezz.jei.api.IModPlugin; | ||
//import mezz.jei.api.JeiPlugin; | ||
//import mezz.jei.api.constants.VanillaTypes; | ||
//import mezz.jei.api.registration.IRecipeRegistration; | ||
//import net.minecraft.network.chat.Component; | ||
//import net.minecraft.network.chat.TranslatableComponent; | ||
//import net.minecraft.resources.ResourceLocation; | ||
//import net.minecraft.world.item.Item; | ||
//import net.minecraft.world.item.ItemStack; | ||
//import net.minecraftforge.registries.RegistryObject; | ||
// | ||
//import javax.annotation.Nonnull; | ||
// | ||
//@JeiPlugin | ||
//@SuppressWarnings("ConstantConditions") | ||
//public class JeiCompat implements IModPlugin { | ||
// | ||
// public static final ResourceLocation PLUGIN_UID = new ResourceLocation(SkyblockUltimaTools.MODID, "plugin/main"); | ||
// | ||
// @Override | ||
// public @Nonnull | ||
// ResourceLocation getPluginUid() { | ||
// return PLUGIN_UID; | ||
// } | ||
// | ||
// @Nonnull | ||
// private static Component getDescKey(ResourceLocation name) { | ||
// return new TranslatableComponent("jei." + name.getNamespace() + "." + name.getPath() + ".desc"); | ||
// } | ||
// | ||
// @Override | ||
// public void registerRecipes(@Nonnull IRecipeRegistration registration) { | ||
// for (RegistryObject<Item> registryObject : Registration.ITEMS.getEntries()) { | ||
// Item item = registryObject.get(); | ||
// registration.addIngredientInfo(new ItemStack(item), VanillaTypes.ITEM, getDescKey(item.getRegistryName())); | ||
// } | ||
// } | ||
//} | ||
package de.melanx.ultimatools.compat; | ||
|
||
import de.melanx.ultimatools.SkyblockUltimaTools; | ||
import de.melanx.ultimatools.item.Registration; | ||
import mezz.jei.api.IModPlugin; | ||
import mezz.jei.api.JeiPlugin; | ||
import mezz.jei.api.constants.VanillaTypes; | ||
import mezz.jei.api.registration.IRecipeRegistration; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
@JeiPlugin | ||
@SuppressWarnings("ConstantConditions") | ||
public class JeiCompat implements IModPlugin { | ||
|
||
public static final ResourceLocation PLUGIN_UID = new ResourceLocation(SkyblockUltimaTools.MODID, "plugin/main"); | ||
|
||
@Override | ||
public @Nonnull | ||
ResourceLocation getPluginUid() { | ||
return PLUGIN_UID; | ||
} | ||
|
||
@Nonnull | ||
private static Component getDescKey(ResourceLocation name) { | ||
return Component.translatable("jei." + name.getNamespace() + "." + name.getPath() + ".desc"); | ||
} | ||
|
||
@Override | ||
public void registerRecipes(@Nonnull IRecipeRegistration registration) { | ||
for (RegistryObject<Item> registryObject : Registration.ITEMS.getEntries()) { | ||
Item item = registryObject.get(); | ||
registration.addIngredientInfo(new ItemStack(item), VanillaTypes.ITEM_STACK, getDescKey(ForgeRegistries.ITEMS.getKey(item))); | ||
} | ||
} | ||
} |
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