mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-28 09:48:34 +01:00
Compare commits
8 commits
ccfb8d162d
...
764ded5855
Author | SHA1 | Date | |
---|---|---|---|
|
764ded5855 | ||
|
762679921e | ||
|
b9f3f640d6 | ||
|
a5172ea2e3 | ||
|
60703b3004 | ||
|
b4a6e91a34 | ||
|
a34cfd22d2 | ||
|
a4e99a4a18 |
11 changed files with 15 additions and 11 deletions
|
@ -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')}" : ""
|
||||
|
|
|
@ -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
|
||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue