Skip to content

Commit 0a8aa5c

Browse files
authored
Merge pull request #1 from GTModpackTeam/feat/module-system
Add Module System
2 parents b7b338a + dcbdecf commit 0a8aa5c

File tree

36 files changed

+1552
-68
lines changed

36 files changed

+1552
-68
lines changed

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
modName = MyMod
1+
modName = TestMod
22

33
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
4-
modId = mymodid
4+
modId = testmod
55

6-
modGroup = com.myname.mymodid
6+
modGroup = gtexpert.testmod
77

88
# Version of your mod.
99
# This field can be left empty if you want your mod's version to be determined by the latest git tag instead.
@@ -13,7 +13,7 @@ modVersion = 1.0.0
1313
includeMCVersionJar = false
1414

1515
# The name of your jar when you produce builds, not including any versioning info
16-
modArchivesBaseName = mymodid
16+
modArchivesBaseName = testmod
1717

1818
# Will update your build.gradle automatically whenever an update is available
1919
autoUpdateBuildScript = false
@@ -44,7 +44,7 @@ enableModernJavaSyntax = true
4444
enableJava17RunTasks = false
4545

4646
# Generate a class with String fields for the mod id, name and version named with the fields below
47-
generateGradleTokenClass = com.myname.mymodid.Tags
47+
generateGradleTokenClass = gtexpert.testmod.Tags
4848
gradleTokenModId = MODID
4949
gradleTokenModName = MODNAME
5050
gradleTokenVersion = VERSION
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package blusunrize.immersiveengineering.api.tool;
2+
3+
import net.minecraft.item.ItemStack;
4+
5+
/**
6+
* Adapted and minimized from <a href="https://github.com/BluSunrize/ImmersiveEngineering/blob/master/src/main/java/blusunrize/immersiveengineering/api/tool/BelljarHandler.java">BelljarHandler.java</a>
7+
*/
8+
public final class BelljarHandler {
9+
10+
private BelljarHandler() {/**/}
11+
12+
public static void registerBasicItemFertilizer(@SuppressWarnings("unused") final ItemStack stack,
13+
@SuppressWarnings("unused") final float growthMultiplier) {/**/}
14+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* Copyright (c) 2011-2015, SpaceToad and the BuildCraft Team http://www.mod-buildcraft.com
2+
*
3+
* The BuildCraft API is distributed under the terms of the MIT License. Please check the contents of the license, which
4+
* should be located as "LICENSE.API" in the BuildCraft source code distribution. */
5+
package buildcraft.api.tools;
6+
7+
import net.minecraft.entity.player.EntityPlayer;
8+
import net.minecraft.item.ItemStack;
9+
import net.minecraft.util.EnumHand;
10+
import net.minecraft.util.math.RayTraceResult;
11+
12+
/*** Implement this interface on subclasses of Item to have that item work as a wrench for buildcraft */
13+
public interface IToolWrench {
14+
15+
/*** Called to ensure that the wrench can be used.
16+
*
17+
* @param player - The player doing the wrenching
18+
* @param hand - Which hand was holding the wrench
19+
* @param wrench - The item stack that holds the wrench
20+
* @param rayTrace - The object that is being wrenched
21+
*
22+
* @return true if wrenching is allowed, false if not */
23+
boolean canWrench(EntityPlayer player, EnumHand hand, ItemStack wrench, RayTraceResult rayTrace);
24+
25+
/*** Callback after the wrench has been used. This can be used to decrease durability or for other purposes.
26+
*
27+
* @param player - The player doing the wrenching
28+
* @param hand - Which hand was holding the wrench
29+
* @param wrench - The item stack that holds the wrench
30+
* @param rayTrace - The object that is being wrenched */
31+
void wrenchUsed(EntityPlayer player, EnumHand hand, ItemStack wrench, RayTraceResult rayTrace);
32+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package cofh.api.item;
2+
3+
import net.minecraft.entity.Entity;
4+
import net.minecraft.entity.EntityLivingBase;
5+
import net.minecraft.item.ItemStack;
6+
import net.minecraft.util.math.BlockPos;
7+
8+
public interface IToolHammer {
9+
10+
boolean isUsable(ItemStack item, EntityLivingBase user, BlockPos pos);
11+
12+
boolean isUsable(ItemStack item, EntityLivingBase user, Entity entity);
13+
14+
void toolUsed(ItemStack item, EntityLivingBase user, BlockPos pos);
15+
16+
void toolUsed(ItemStack item, EntityLivingBase user, Entity entity);
17+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.creativemd.creativecore.client.mods.optifine;
2+
3+
public class OptifineHelper {
4+
public static boolean isActive() {
5+
return false;
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.creativemd.littletiles.client.render.cache;
2+
3+
public class LayeredRenderBoxCache {
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.creativemd.littletiles.client.render.tile;
2+
3+
public class LittleRenderBox {
4+
public boolean needsResorting;
5+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.enderio.core.common.interfaces;
2+
3+
import net.minecraft.item.ItemStack;
4+
5+
import org.jetbrains.annotations.NotNull;
6+
7+
public interface IOverlayRenderAware {
8+
9+
public void renderItemOverlayIntoGUI(@NotNull ItemStack stack, int xPosition, int yPosition);
10+
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package crazypants.enderio.api.farm;
2+
3+
import net.minecraftforge.registries.IForgeRegistryEntry;
4+
5+
/**
6+
* Adapted and minimized from <a href="https://github.com/SleepyTrousers/EnderIO/blob/master/enderio-base/src/main/java/crazypants/enderio/api/farm/IFertilizer.java">IFertilizer.java</a>
7+
*/
8+
public interface IFertilizer extends IForgeRegistryEntry<IFertilizer> {
9+
10+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package crazypants.enderio.api.tool;
2+
3+
import net.minecraft.entity.player.EntityPlayer;
4+
import net.minecraft.item.ItemStack;
5+
6+
import org.jetbrains.annotations.NotNull;
7+
8+
public interface IConduitControl {
9+
10+
/**
11+
* Controls whether the overlay is shown and the player can change the display mode.
12+
*
13+
* @param stack The itemstack
14+
* @param player The player holding the itemstack
15+
* @return True if the overlay should be rendered and the player should be able to change modes. False otherwise.
16+
*/
17+
boolean showOverlay(@NotNull ItemStack stack, @NotNull EntityPlayer player);
18+
}

0 commit comments

Comments
 (0)