Compare commits

..

8 commits

Author SHA1 Message Date
Mrbysco
764ded5855 Add some todo's 2024-05-25 17:01:33 +02:00
Mrbysco
762679921e Update minimum neo version 2024-05-25 16:53:02 +02:00
Mrbysco
b9f3f640d6 Increment version 2024-05-25 16:50:45 +02:00
Mrbysco
a5172ea2e3 Use the non-deprecated getBurnTime method 2024-05-25 16:49:37 +02:00
Mrbysco
60703b3004 Update NeoForge support (Fix #1400) 2024-05-25 16:49:21 +02:00
Mrbysco
b4a6e91a34 Update neogradle 2024-05-25 16:48:51 +02:00
Mrbysco
a34cfd22d2 Update gradle 2024-05-25 16:48:45 +02:00
Mrbysco
a4e99a4a18 Update NeoForge 2024-05-25 16:44:15 +02:00
11 changed files with 15 additions and 11 deletions

View file

@ -3,7 +3,7 @@ plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version '7.0.96'
id 'net.neoforged.gradle.userdev' version '7.0.134'
}
def buildSuffix = System.getenv('BUILD_NUMBER') ? "-b${System.getenv('BUILD_NUMBER')}" : ""

View file

@ -2,20 +2,20 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
# Actually Additions
mod_version=1.2.11
mod_version=1.2.12
# Forge
game_version=1.20.4
neo_version=20.4.190
neo_version=20.4.232
# mods.toml
loader=2
neo_version_range=[20.4.190,)
neo_version_range=[20.4.212,)
minecraft_version_range=[1.20.4,1.21)
# Parchment (Mappings)
neogradle.subsystems.parchment.minecraftVersion=1.20.4
neogradle.subsystems.parchment.mappingsVersion=2024.02.25
neogradle.subsystems.parchment.mappingsVersion=2024.04.14
# Other mods
jei_version=17.3.0.49

Binary file not shown.

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View file

@ -14,6 +14,7 @@ import net.minecraft.world.item.ItemStack;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
//TODO: We're using Patchouli API for the new booklets. Do we still need this?
public interface IBookletChapter {
IBookletPage[] getAllPages();

View file

@ -15,6 +15,7 @@ import net.neoforged.api.distmarker.OnlyIn;
import java.util.List;
//TODO: We're using Patchouli API for the new booklets. Do we still need this?
public interface IBookletEntry {
List<IBookletChapter> getAllChapters();

View file

@ -19,6 +19,7 @@ import net.neoforged.neoforge.fluids.FluidStack;
import java.util.List;
//TODO: We're using Patchouli API for the new booklets. Do we still need this?
public interface IBookletPage {
void getItemStacksForPage(List<ItemStack> list);

View file

@ -17,6 +17,7 @@ import net.minecraft.world.item.ItemStack;
import java.util.List;
//TODO: We're using Patchouli API for the new booklets. Do we still need this?
public abstract class GuiBookletBase extends Screen {
protected GuiBookletBase(Component titleIn) {

View file

@ -10,7 +10,7 @@ import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.ShapedRecipe;
import net.neoforged.neoforge.attachment.AttachmentInternals;
import net.neoforged.neoforge.attachment.AttachmentUtils;
import javax.annotation.Nullable;
@ -46,7 +46,7 @@ public class RecipeKeepDataShaped extends ShapedRecipe {
craftingResult.setTag(datasource.getTag().copy());
if (!datasource.isEmpty())
AttachmentInternals.copyStackAttachments(datasource, craftingResult);
AttachmentUtils.copyStackAttachments(datasource, craftingResult);
return craftingResult;
}

View file

@ -21,7 +21,7 @@ import net.minecraft.world.item.crafting.CraftingBookCategory;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.ShapelessRecipe;
import net.neoforged.neoforge.attachment.AttachmentInternals;
import net.neoforged.neoforge.attachment.AttachmentUtils;
public class RecipeKeepDataShapeless extends ShapelessRecipe {
public static String NAME = "copy_nbt_shapeless";
@ -69,7 +69,7 @@ public class RecipeKeepDataShapeless extends ShapelessRecipe {
}
if (!datasource.isEmpty())
AttachmentInternals.copyStackAttachments(datasource, result);
AttachmentUtils.copyStackAttachments(datasource, result);
return result;
}

View file

@ -63,7 +63,7 @@ public class ContainerCoalGenerator extends AbstractContainerMenu {
//Other Slots in Inventory excluded
if (slot >= inventoryStart) {
//Shift from Inventory
if (CommonHooks.getBurnTime(newStack, null) > 0) {
if (newStack.getBurnTime(null) > 0) {
if (!this.moveItemStackTo(newStack, 0, 1, false)) {
return ItemStack.EMPTY;
}