Skip to content

Commit

Permalink
compatibility path for janoeo 4.4.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Jul 18, 2020
1 parent ea2af12 commit 526a1e6
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 49 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: "com.wynprice.cursemaven"

version = '2.0.1'
version = '4.2.0.43-experimental'
group = 'fr.alasdiablo.janoeo.arsenal'
archivesBaseName = 'Janoeo-Arsenal'

Expand Down Expand Up @@ -60,7 +60,7 @@ minecraft {

dependencies {
minecraft 'net.minecraftforge:forge:1.16.1-32.0.66'
compile fg.deobf('curse.maven:jenoeo:3002893')
compile fg.deobf('curse.maven:jenoeo:3008143')
}

jar {
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 4.2.0.43-experimental
+ add compatibility with Janoeo 4.4.0.42-experimental
+ internal code rework

### 2.0.1
+ port to Minecraft 1.16.1
+ known problem
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/fr/alasdiablo/janoeo/arsenal/Arsenal.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package fr.alasdiablo.janoeo.arsenal;

import fr.alasdiablo.janoeo.arsenal.utils.Registries;
import fr.alasdiablo.janoeo.arsenal.utils.ModSetup;
import fr.alasdiablo.janoeo.arsenal.util.Registries;
import fr.alasdiablo.janoeo.arsenal.util.ModSetup;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/fr/alasdiablo/janoeo/arsenal/data/Recipes.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package fr.alasdiablo.janoeo.arsenal.data;

import fr.alasdiablo.janoeo.arsenal.init.Armors;
import fr.alasdiablo.janoeo.arsenal.init.Tools;
import fr.alasdiablo.janoeo.arsenal.init.WoolsArmors;
import fr.alasdiablo.janoeo.arsenal.item.Armors;
import fr.alasdiablo.janoeo.arsenal.item.Tools;
import fr.alasdiablo.janoeo.arsenal.item.WoolsArmors;
import fr.alasdiablo.janoeo.tags.ItemsTags;
import javafx.util.Pair;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.data.*;
import net.minecraft.item.Item;
import net.minecraft.tags.ITag;
import net.minecraft.tags.Tag;
import net.minecraftforge.common.Tags;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package fr.alasdiablo.janoeo.arsenal.event;

import fr.alasdiablo.janoeo.arsenal.init.WoolsArmors;
import fr.alasdiablo.janoeo.arsenal.item.WoolsArmors;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingFallEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package fr.alasdiablo.janoeo.arsenal.init;
package fr.alasdiablo.janoeo.arsenal.item;

import fr.alasdiablo.janoeo.arsenal.Arsenal;
import fr.alasdiablo.janoeo.arsenal.utils.ArmorsMaterials;
import fr.alasdiablo.janoeo.arsenal.utils.Registries;
import fr.alasdiablo.janoeo.arsenal.util.ArmorsMaterials;
import fr.alasdiablo.janoeo.arsenal.util.Registries;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.Item;
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/fr/alasdiablo/janoeo/arsenal/item/CustomHoeItem.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package fr.alasdiablo.janoeo.arsenal.init;
package fr.alasdiablo.janoeo.arsenal.item;

import fr.alasdiablo.janoeo.arsenal.Arsenal;
import fr.alasdiablo.janoeo.arsenal.item.CustomHoeItem;
import fr.alasdiablo.janoeo.arsenal.utils.ItemsTiers;
import fr.alasdiablo.janoeo.arsenal.utils.Registries;
import fr.alasdiablo.janoeo.arsenal.util.ItemsTiers;
import fr.alasdiablo.janoeo.arsenal.util.Registries;
import net.minecraft.item.*;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
Expand Down Expand Up @@ -43,13 +42,13 @@ public static void onItemsRegistry(final RegistryEvent.Register<Item> event) {
IForgeRegistry<Item> e = event.getRegistry();

e.register(new AxeItem(ItemsTiers.COPPER, 6.5f, -3.15f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_AXE));
e.register(new CustomHoeItem(ItemsTiers.COPPER, -1, -1.5f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_HOE));
e.register(new HoeItem(ItemsTiers.COPPER, -1, -1.5f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_HOE));
e.register(new PickaxeItem(ItemsTiers.COPPER, 1, -2.8f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_PICKAXE));
e.register(new ShovelItem(ItemsTiers.COPPER, 1.5f, -3.0f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_SHOVEL));
e.register(new SwordItem(ItemsTiers.COPPER, 3, -2.4f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.COPPER_SWORD));

e.register(new AxeItem(ItemsTiers.ALUMINIUM, 6.5f, -3.15f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_AXE));
e.register(new CustomHoeItem(ItemsTiers.ALUMINIUM, -1, -1.5f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_HOE));
e.register(new HoeItem(ItemsTiers.ALUMINIUM, -1, -1.5f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_HOE));
e.register(new PickaxeItem(ItemsTiers.ALUMINIUM, 1, -2.8f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_PICKAXE));
e.register(new ShovelItem(ItemsTiers.ALUMINIUM, 1.5f, -3.0f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_SHOVEL));
e.register(new SwordItem(ItemsTiers.ALUMINIUM, 3, -2.4f, new Item.Properties().group(Arsenal.setup.janoeoToolGroup)).setRegistryName(Registries.ALUMINIUM_SWORD));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package fr.alasdiablo.janoeo.arsenal.init;
package fr.alasdiablo.janoeo.arsenal.item;

import fr.alasdiablo.janoeo.arsenal.Arsenal;
import fr.alasdiablo.janoeo.arsenal.utils.ArmorsMaterials;
import fr.alasdiablo.janoeo.arsenal.utils.Registries;
import fr.alasdiablo.janoeo.arsenal.util.ArmorsMaterials;
import fr.alasdiablo.janoeo.arsenal.util.Registries;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.Item;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.alasdiablo.janoeo.arsenal.utils;
package fr.alasdiablo.janoeo.arsenal.util;

import fr.alasdiablo.janoeo.ingots.IngotsItems;
import fr.alasdiablo.janoeo.tags.ItemsTags;
import fr.alasdiablo.janoeo.item.IngotsItems;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.IArmorMaterial;
import net.minecraft.item.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fr.alasdiablo.janoeo.arsenal.utils;
package fr.alasdiablo.janoeo.arsenal.util;

import fr.alasdiablo.janoeo.arsenal.data.Recipes;
import net.minecraft.data.DataGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package fr.alasdiablo.janoeo.arsenal.utils;
package fr.alasdiablo.janoeo.arsenal.util;

import fr.alasdiablo.janoeo.ingots.IngotsItems;
import fr.alasdiablo.janoeo.tags.ItemsTags;
import fr.alasdiablo.janoeo.item.IngotsItems;
import net.minecraft.item.IItemTier;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.tags.ItemTags;
import net.minecraftforge.common.Tags;

public enum ItemsTiers implements IItemTier {
//COPPER(2, 32, 6.0f, 1.5f, 9, Ingredient.fromStacks(new ItemStack(IngotsItems.COPPER_INGOT))),
COPPER(2, 32, 6.0f, 1.5f, 9, Ingredient.fromTag(Tags.Items.FENCES_WOODEN)),
COPPER(2, 32, 6.0f, 1.5f, 9, Ingredient.fromStacks(new ItemStack(IngotsItems.COPPER_INGOT))),
ALUMINIUM(2, 28, 5.0f, 1.0f, 6, Ingredient.fromStacks(new ItemStack(IngotsItems.ALUMINIUM_INGOT)));

private final int harvestLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package fr.alasdiablo.janoeo.arsenal.utils;
package fr.alasdiablo.janoeo.arsenal.util;

import fr.alasdiablo.janoeo.arsenal.event.IInitEvent;
import fr.alasdiablo.janoeo.arsenal.event.WoolArmorEvent;
import fr.alasdiablo.janoeo.arsenal.init.Tools;
import fr.alasdiablo.janoeo.arsenal.init.WoolsArmors;
import fr.alasdiablo.janoeo.arsenal.item.Tools;
import fr.alasdiablo.janoeo.arsenal.item.WoolsArmors;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.alasdiablo.janoeo.arsenal.utils;
package fr.alasdiablo.janoeo.arsenal.util;

import net.minecraft.block.Blocks;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.item.Item;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Just Another Nether/Overworld/End Ores - Arsenal by AlasDiablo, lIotaMiu, Egame2
[[dependencies.janoeo_arsenal]]
modId="janoeo"
mandatory=true
versionRange="[3.6,)"
versionRange="[4.4,)"
ordering="AFTER"
side="BOTH"

0 comments on commit 526a1e6

Please sign in to comment.