diff --git a/build.gradle b/build.gradle index a47643b..8536f32 100644 --- a/build.gradle +++ b/build.gradle @@ -45,6 +45,8 @@ dependencies { modImplementation("org.apache.commons:commons-lang3:3.12.0") include("org.apache.commons:commons-lang3:3.12.0") + + modImplementation files("libs/halplibe-1.0.0.jar") } java { diff --git a/libs/halplibe-1.0.0.jar b/libs/halplibe-1.0.0.jar new file mode 100644 index 0000000..348f378 Binary files /dev/null and b/libs/halplibe-1.0.0.jar differ diff --git a/src/main/java/azurelmao/examplemod/helper/ArmorHelper.java b/src/main/java/azurelmao/examplemod/helper/ArmorHelper.java deleted file mode 100644 index c7d71aa..0000000 --- a/src/main/java/azurelmao/examplemod/helper/ArmorHelper.java +++ /dev/null @@ -1,32 +0,0 @@ -package azurelmao.examplemod.helper; - -import azurelmao.examplemod.mixin.helper.RenderPlayerInterface; -import net.minecraft.src.helper.DamageType; -import net.minecraft.src.material.ArmorMaterial; -import org.apache.commons.lang3.ArrayUtils; - -public class ArmorHelper { - - /** - * @param textureName name of the armor texture file. - * @param durability durability of your armor. Will be different than in-game due to how it gets allocated between armor pieces. - * @param combat combat damage reduction in percent. Can be more than 100. - * @param blast blast damage reduction in percent. - * @param fire fire damage reduction in percent. - * @param fall fall damage reduction in percent. - * @return the new ArmorMaterial. - */ - public static ArmorMaterial createArmorMaterial(String textureName, int durability, float combat, float blast, float fire, float fall) { - String[] armorFilenamePrefix = RenderPlayerInterface.getArmorFilenamePrefix(); - armorFilenamePrefix = ArrayUtils.add(armorFilenamePrefix, textureName); - RenderPlayerInterface.setArmorFilenamePrefix(armorFilenamePrefix); - - ArmorMaterial armorMaterial = new ArmorMaterial(textureName, armorFilenamePrefix.length - 1, durability); - ArmorMaterial.setProtectionValuePercent(armorMaterial, DamageType.COMBAT, combat); - ArmorMaterial.setProtectionValuePercent(armorMaterial, DamageType.BLAST, blast); - ArmorMaterial.setProtectionValuePercent(armorMaterial, DamageType.FIRE, fire); - ArmorMaterial.setProtectionValuePercent(armorMaterial, DamageType.FALL, fall); - - return armorMaterial; - } -} diff --git a/src/main/java/azurelmao/examplemod/helper/BlockHelper.java b/src/main/java/azurelmao/examplemod/helper/BlockHelper.java deleted file mode 100644 index 2189027..0000000 --- a/src/main/java/azurelmao/examplemod/helper/BlockHelper.java +++ /dev/null @@ -1,56 +0,0 @@ -package azurelmao.examplemod.helper; - -import azurelmao.examplemod.mixin.helper.BlockInterface; -import net.minecraft.src.Block; -import net.minecraft.src.Item; -import net.minecraft.src.ItemBlock; -import net.minecraft.src.Material; -import net.minecraft.src.StepSound; - -public class BlockHelper { - - public static Block createBlock(int id, String name, int x, int y, Material material, StepSound stepSound, float hardness, float resistance, float lightValue) { - Block block = new Block(id, material); - block.setTexCoords(x, y); - block.setBlockName(name); - - ((BlockInterface) block).callSetHardness(hardness); - ((BlockInterface) block).callSetResistance(resistance); - ((BlockInterface) block).callSetStepSound(stepSound); - ((BlockInterface) block).callSetLightValue(lightValue); - - Item.itemsList[block.blockID] = new ItemBlock(block.blockID - Block.blocksList.length); - - return block; - } - - public static Block createBlock(int id, String name, int topX, int topY, int bottomX, int bottomY, int sidesX, int sidesY, Material material, StepSound stepSound, float hardness, float resistance, float lightValue) { - Block block = new Block(id, material); - block.setTexCoords(topX, topY, bottomX, bottomY, sidesX, sidesY); - block.setBlockName(name); - - ((BlockInterface) block).callSetHardness(hardness); - ((BlockInterface) block).callSetResistance(resistance); - ((BlockInterface) block).callSetStepSound(stepSound); - ((BlockInterface) block).callSetLightValue(lightValue); - - Item.itemsList[block.blockID] = new ItemBlock(block.blockID - Block.blocksList.length); - - return block; - } - - public static Block createBlock(int id, String name, int topX, int topY, int bottomX, int bottomY, int northX, int northY, int eastX, int eastY, int southX, int southY, int westX, int westY, Material material, StepSound stepSound, float hardness, float resistance, float lightValue) { - Block block = new Block(id, material); - block.setTexCoords(topX, topY, bottomX, bottomY, northX, northY, eastX, eastY, southX, southY, westX, westY); - block.setBlockName(name); - - ((BlockInterface) block).callSetHardness(hardness); - ((BlockInterface) block).callSetResistance(resistance); - ((BlockInterface) block).callSetStepSound(stepSound); - ((BlockInterface) block).callSetLightValue(lightValue); - - Item.itemsList[block.blockID] = new ItemBlock(block.blockID - Block.blocksList.length); - - return block; - } -} diff --git a/src/main/java/azurelmao/examplemod/helper/DimensionHelper.java b/src/main/java/azurelmao/examplemod/helper/DimensionHelper.java deleted file mode 100644 index e2d9fc9..0000000 --- a/src/main/java/azurelmao/examplemod/helper/DimensionHelper.java +++ /dev/null @@ -1,18 +0,0 @@ -package azurelmao.examplemod.helper; - -import azurelmao.examplemod.mixin.helper.DimensionInterface; -import net.minecraft.src.Block; -import net.minecraft.src.Dimension; -import net.minecraft.src.WorldType; - -import java.util.Arrays; - -public class DimensionHelper { - - public static Dimension createDimension(int id, String name, Dimension homeDimension, float worldScale, Block portalBlock, WorldType worldType, int minY, int maxY) { - Dimension[] extendedList = Arrays.copyOf(Dimension.dimensionList, Dimension.dimensionList.length + 1); - DimensionInterface.setDimensionList(extendedList); - - return new Dimension(id, name, homeDimension, worldScale, portalBlock.blockID).setWorldType(worldType).setBounds(minY, maxY); - } -} diff --git a/src/main/java/azurelmao/examplemod/helper/EntityHelper.java b/src/main/java/azurelmao/examplemod/helper/EntityHelper.java deleted file mode 100644 index e474cf4..0000000 --- a/src/main/java/azurelmao/examplemod/helper/EntityHelper.java +++ /dev/null @@ -1,19 +0,0 @@ -package azurelmao.examplemod.helper; - -import azurelmao.examplemod.mixin.helper.EntityListInterface; -import azurelmao.examplemod.mixin.helper.RenderManagerInterface; -import net.minecraft.src.Render; -import net.minecraft.src.RenderManager; - -import java.util.Map; - -public class EntityHelper { - - public static void createEntity(Class clazz, Render render, int id, String name) { - Map entityRenderMap = ((RenderManagerInterface) RenderManager.instance).getEntityRenderMap(); - entityRenderMap.put(clazz, render); - render.setRenderManager(RenderManager.instance); - - EntityListInterface.callAddMapping(clazz, name, id); - } -} diff --git a/src/main/java/azurelmao/examplemod/helper/ParticleHelper.java b/src/main/java/azurelmao/examplemod/helper/ParticleHelper.java deleted file mode 100644 index 36048a3..0000000 --- a/src/main/java/azurelmao/examplemod/helper/ParticleHelper.java +++ /dev/null @@ -1,15 +0,0 @@ -package azurelmao.examplemod.helper; - -import net.minecraft.src.EntityFX; - -import java.util.HashMap; -import java.util.Map; - -public class ParticleHelper { - - public static Map> particles = new HashMap<>(); - - public static void createParticle(Class clazz, String name) { - particles.put(name, clazz); - } -} diff --git a/src/main/java/azurelmao/examplemod/helper/RecipeHelper.java b/src/main/java/azurelmao/examplemod/helper/RecipeHelper.java deleted file mode 100644 index 75d394d..0000000 --- a/src/main/java/azurelmao/examplemod/helper/RecipeHelper.java +++ /dev/null @@ -1,168 +0,0 @@ -package azurelmao.examplemod.helper; - -import azurelmao.examplemod.ExampleMod; -import azurelmao.examplemod.mixin.helper.CraftingManagerInterface; -import azurelmao.examplemod.mixin.helper.RecipesBlastFurnaceInterface; -import azurelmao.examplemod.mixin.helper.RecipesFurnaceInterface; -import net.minecraft.src.*; - -import java.util.List; -import java.util.Map; - -public class RecipeHelper { - public static final CraftingManager craftingManager = CraftingManager.getInstance(); - public static final RecipesFurnace smeltingManager = RecipesFurnace.smelting(); - public static final RecipesBlastFurnace blastingManager = RecipesBlastFurnace.smelting(); - - public static class Crafting { - - public static void createRecipe(Item outputItem, int amount, Object[] aobj) { - ((CraftingManagerInterface) craftingManager).callAddRecipe(new ItemStack(outputItem, amount), aobj); - } - - public static void createRecipe(Block outputBlock, int amount, Object[] aobj) { - ((CraftingManagerInterface) craftingManager).callAddRecipe(new ItemStack(outputBlock, amount), aobj); - } - - public static void createShapelessRecipe(Item outputItem, int amount, Object[] aobj) { - ((CraftingManagerInterface) craftingManager).callAddShapelessRecipe(new ItemStack(outputItem, amount), aobj); - } - - public static void createShapelessRecipe(Block outputBlock, int amount, Object[] aobj) { - ((CraftingManagerInterface) craftingManager).callAddShapelessRecipe(new ItemStack(outputBlock, amount), aobj); - } - - public static void removeRecipe(Item outputItem) { - List recipes = craftingManager.getRecipeList(); - IRecipe theRecipe = null; - - for (Object recipe : recipes) { - if (recipe instanceof RecipeShaped && ((RecipeShaped) recipe).recipeOutput.itemID == outputItem.itemID) { - theRecipe = (IRecipe) recipe; - break; - } - else if (recipe instanceof RecipeShapeless && ((RecipeShapeless) recipe).recipeOutput.itemID == outputItem.itemID) { - theRecipe = (IRecipe) recipe; - break; - } - } - - if (theRecipe == null) { - ExampleMod.LOGGER.info("Couldn't find recipe with output: " + outputItem.getItemName()); - return; - } - - recipes.remove(theRecipe); - ((CraftingManagerInterface) craftingManager).setRecipes(recipes); - } - public static void removeRecipe(Block outputBlock) { - List recipes = craftingManager.getRecipeList(); - IRecipe theRecipe = null; - - for (Object recipe : recipes) { - if (recipe instanceof RecipeShaped && ((RecipeShaped) recipe).recipeOutput.itemID == outputBlock.blockID) { - theRecipe = (IRecipe) recipe; - break; - } - else if (recipe instanceof RecipeShapeless && ((RecipeShapeless) recipe).recipeOutput.itemID == outputBlock.blockID) { - theRecipe = (IRecipe) recipe; - break; - } - } - - if (theRecipe == null) { - ExampleMod.LOGGER.info("Couldn't find crafting recipe with output: " + outputBlock.getBlockName(0)); - return; - } - - recipes.remove(theRecipe); - ((CraftingManagerInterface) craftingManager).setRecipes(recipes); - } - } - - public static class Smelting { - - public static void createRecipe(Item outputItem, Item inputItem) { - smeltingManager.addSmelting(inputItem.itemID, new ItemStack(outputItem)); - } - - public static void createRecipe(Item outputItem, Block inputItem) { - smeltingManager.addSmelting(inputItem.blockID, new ItemStack(outputItem)); - } - - public static void createRecipe(Block outputItem, Item inputItem) { - smeltingManager.addSmelting(inputItem.itemID, new ItemStack(outputItem)); - } - - public static void createRecipe(Block outputItem, Block inputItem) { - smeltingManager.addSmelting(inputItem.blockID, new ItemStack(outputItem)); - } - - public static void removeRecipe(Item inputItem) { - Map recipes = smeltingManager.getSmeltingList(); - - if (recipes.containsKey(inputItem)) { - ExampleMod.LOGGER.info("Couldn't find smelting recipe with input: " + inputItem.getItemName()); - return; - } - - recipes.remove(inputItem); - ((RecipesFurnaceInterface) smeltingManager).setSmeltingList(recipes); - } - - public static void removeRecipe(Block inputItem) { - Map recipes = smeltingManager.getSmeltingList(); - - if (recipes.containsKey(inputItem)) { - ExampleMod.LOGGER.info("Couldn't find smelting recipe with input: " + inputItem.getBlockName(0)); - return; - } - - recipes.remove(inputItem); - ((RecipesFurnaceInterface) smeltingManager).setSmeltingList(recipes); - } - } - - public static class Blasting { - public static void createRecipe(Item outputItem, Item inputItem) { - blastingManager.addSmelting(inputItem.itemID, new ItemStack(outputItem)); - } - - public static void createRecipe(Item outputItem, Block inputItem) { - blastingManager.addSmelting(inputItem.blockID, new ItemStack(outputItem)); - } - - public static void createRecipe(Block outputItem, Item inputItem) { - blastingManager.addSmelting(inputItem.itemID, new ItemStack(outputItem)); - } - - public static void createRecipe(Block outputItem, Block inputItem) { - blastingManager.addSmelting(inputItem.blockID, new ItemStack(outputItem)); - } - - public static void removeRecipe(Item inputItem) { - Map recipes = blastingManager.getSmeltingList(); - - if (recipes.containsKey(inputItem)) { - ExampleMod.LOGGER.info("Couldn't find blasting recipe with input: " + inputItem.getItemName()); - return; - } - - recipes.remove(inputItem); - ((RecipesBlastFurnaceInterface) blastingManager).setSmeltingList(recipes); - } - - public static void removeRecipe(Block inputItem) { - Map recipes = blastingManager.getSmeltingList(); - - if (recipes.containsKey(inputItem)) { - ExampleMod.LOGGER.info("Couldn't find blasting recipe with input: " + inputItem.getBlockName(0)); - return; - } - - recipes.remove(inputItem); - ((RecipesBlastFurnaceInterface) blastingManager).setSmeltingList(recipes); - } - } - -} diff --git a/src/main/java/azurelmao/examplemod/mixin/fix/MinecraftServerMixin.java b/src/main/java/azurelmao/examplemod/mixin/fix/MinecraftServerMixin.java deleted file mode 100644 index 2b5a017..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/fix/MinecraftServerMixin.java +++ /dev/null @@ -1,24 +0,0 @@ -package azurelmao.examplemod.mixin.fix; - -import net.minecraft.server.MinecraftServer; -import net.minecraft.src.Dimension; -import net.minecraft.src.EntityTracker; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -@Mixin(value = MinecraftServer.class, remap = false) -public class MinecraftServerMixin { - - // Mixin to fix custom dimensions on multiplayer - - @Shadow - public EntityTracker[] entityTracker; - - @Inject(method = "startServer", at = @At(value = "HEAD")) - private void examplemod_startServer(CallbackInfoReturnable cir) { - entityTracker = new EntityTracker[Dimension.dimensionList.length]; - } -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/BlockInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/BlockInterface.java deleted file mode 100644 index 223ff2d..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/BlockInterface.java +++ /dev/null @@ -1,22 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.Block; -import net.minecraft.src.StepSound; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Invoker; - -@Mixin(value = Block.class, remap = false) -public interface BlockInterface { - - @Invoker("setHardness") - Block callSetHardness(float f); - - @Invoker("setResistance") - Block callSetResistance(float f); - - @Invoker("setStepSound") - Block callSetStepSound(StepSound stepSound); - - @Invoker("setLightValue") - Block callSetLightValue(float f); -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/CraftingManagerInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/CraftingManagerInterface.java deleted file mode 100644 index c5cb757..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/CraftingManagerInterface.java +++ /dev/null @@ -1,22 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.CraftingManager; -import net.minecraft.src.ItemStack; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; -import org.spongepowered.asm.mixin.gen.Invoker; - -import java.util.List; - -@Mixin(value = CraftingManager.class, remap = false) -public interface CraftingManagerInterface { - - @Invoker("addRecipe") - void callAddRecipe(ItemStack itemstack, Object[] aobj); - - @Invoker("addShapelessRecipe") - void callAddShapelessRecipe(ItemStack itemstack, Object[] aobj); - - @Accessor("recipes") - void setRecipes(List list); -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/DimensionInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/DimensionInterface.java deleted file mode 100644 index 9418293..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/DimensionInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.Dimension; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(value = Dimension.class, remap = false) -public interface DimensionInterface { - - @Accessor("dimensionList") - static void setDimensionList(Dimension[] list) { - throw new AssertionError(); - } -} \ No newline at end of file diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/EntityListInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/EntityListInterface.java deleted file mode 100644 index 6efca3a..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/EntityListInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.EntityList; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Invoker; - -@Mixin(value = EntityList.class, remap = false) -public interface EntityListInterface { - - @Invoker("addMapping") - static void callAddMapping(Class clazz, String name, int id) { - throw new AssertionError(); - } -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/RecipesBlastFurnaceInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/RecipesBlastFurnaceInterface.java deleted file mode 100644 index 8ec4d56..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/RecipesBlastFurnaceInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.RecipesBlastFurnace; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -import java.util.Map; - -@Mixin(value = RecipesBlastFurnace.class, remap = false) -public interface RecipesBlastFurnaceInterface { - - @Accessor("smeltingList") - void setSmeltingList(Map map); -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/RecipesFurnaceInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/RecipesFurnaceInterface.java deleted file mode 100644 index 4dac820..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/RecipesFurnaceInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.RecipesFurnace; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -import java.util.Map; - -@Mixin(value = RecipesFurnace.class, remap = false) -public interface RecipesFurnaceInterface { - - @Accessor("smeltingList") - void setSmeltingList(Map map); -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/RenderGlobalMixin.java b/src/main/java/azurelmao/examplemod/mixin/helper/RenderGlobalMixin.java deleted file mode 100644 index 07b100b..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/RenderGlobalMixin.java +++ /dev/null @@ -1,51 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import azurelmao.examplemod.helper.ParticleHelper; -import net.minecraft.client.Minecraft; -import net.minecraft.src.EntityFX; -import net.minecraft.src.RenderGlobal; -import net.minecraft.src.World; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -import java.util.Map; - -@Mixin(value = RenderGlobal.class, remap = false) -public class RenderGlobalMixin { - - @Shadow - private Minecraft mc; - - @Shadow - private World worldObj; - - @Inject(method = "spawnParticle", at = @At(value = "RETURN")) - private void examplemod_spawnParticle(String s, double x, double y, double z, double motionX, double motionY, double motionZ, CallbackInfo ci) { - if (mc != null && mc.renderViewEntity != null && mc.effectRenderer != null) { - double d6 = this.mc.renderViewEntity.posX - x; - double d7 = this.mc.renderViewEntity.posY - y; - double d8 = this.mc.renderViewEntity.posZ - z; - double d9 = 16.0; - - if (!(d6 * d6 + d7 * d7 + d8 * d8 > d9 * d9)) { - Map> particles = ParticleHelper.particles; - for (String name : particles.keySet()) { - if (s.equals(name)) { - Class clazz = particles.get(name); - - try { - mc.effectRenderer.addEffect(clazz.getDeclaredConstructor(World.class, double.class, double.class, double.class, double.class, double.class, double.class).newInstance(worldObj, x, y, z, motionX, motionY, motionZ)); - } catch (Exception e) { - throw new RuntimeException(e); - } - - } - } - } - } - } - -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/RenderManagerInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/RenderManagerInterface.java deleted file mode 100644 index bbea915..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/RenderManagerInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.RenderManager; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -import java.util.Map; - -@Mixin(value = RenderManager.class, remap = false) -public interface RenderManagerInterface { - - @Accessor("entityRenderMap") - Map getEntityRenderMap(); -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/RenderPlayerInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/RenderPlayerInterface.java deleted file mode 100644 index 2ab37ef..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/RenderPlayerInterface.java +++ /dev/null @@ -1,19 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.RenderPlayer; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(value = RenderPlayer.class, remap = false) -public interface RenderPlayerInterface { - - @Accessor("armorFilenamePrefix") - static String[] getArmorFilenamePrefix() { - throw new AssertionError(); - } - - @Accessor("armorFilenamePrefix") - static void setArmorFilenamePrefix(String[] strings) { - throw new AssertionError(); - } -} diff --git a/src/main/java/azurelmao/examplemod/mixin/helper/TileEntityInterface.java b/src/main/java/azurelmao/examplemod/mixin/helper/TileEntityInterface.java deleted file mode 100644 index 0755033..0000000 --- a/src/main/java/azurelmao/examplemod/mixin/helper/TileEntityInterface.java +++ /dev/null @@ -1,14 +0,0 @@ -package azurelmao.examplemod.mixin.helper; - -import net.minecraft.src.TileEntity; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Invoker; - -@Mixin(value = TileEntity.class, remap = false) -public interface TileEntityInterface { - - @Invoker("addMapping") - static void callAddMapping(Class clazz, String s) { - throw new AssertionError(); - } -}