-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
674 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/generated/.cache/3bedd6e6915232a23a01e57e746cea5ce5d34b29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 1.20.1 2024-01-23T18:00:25.9617694 HephaestusPlus/HephaestusPlus Item Tags | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\melee.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\aoe.json | ||
df50f44ddfa67f31c57064a6b50c29fdd981df48 data\fabricaeexnihilo\tags\items\hammers.json | ||
f7633517e698750ff4e0004a656b2e6ba812dd3f data\tconstruct\tags\items\casts\sand.json | ||
cad8115e851eb2743933c51d4b8ff9fa6f89e305 data\tconstruct\tags\items\casts\red_sand.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\multipart.json | ||
84c823f338f31c17c1eea72560c110e32a0bd286 data\tconstruct\tags\items\modifiable\harvest.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\minecraft\tags\items\cluster_max_harvestables.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\harvest\primary.json | ||
df50f44ddfa67f31c57064a6b50c29fdd981df48 data\tconstruct\tags\items\modifiable\harvest\stone.json | ||
715210998b786d852d9b72d8439b9966e3139c89 data\tconstruct\tags\items\casts\gold.json | ||
84c823f338f31c17c1eea72560c110e32a0bd286 data\fabricaeexnihilo\tags\items\crooks.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\durability.json | ||
cbebaf8575c9c5e9bfb5b423aa6a3b15cf9db881 data\tconstruct\tags\items\modifiable\held.json |
1 change: 1 addition & 0 deletions
1
src/main/generated/.cache/a15966bb227a0473b7fe29476716edcf98c0837c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// 1.20.1 2024-01-23T18:00:25.94377 HephaestusPlus/HephaestusPlus Block Tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//package konsola5.hephaestusplus; | ||
// | ||
//import konsola5.hephaestusplus.util.EnergyModifierHook; | ||
//import slimeknights.tconstruct.library.modifiers.ModifierHook; | ||
//import slimeknights.tconstruct.library.modifiers.ModifierHooks; | ||
// | ||
//import javax.annotation.Nullable; | ||
// | ||
//import java.util.Collection; | ||
//import java.util.function.Function; | ||
// | ||
//public class HephPlusHooks { | ||
// private HephPlusHooks() {} | ||
// | ||
// public static void init() {} | ||
// | ||
// /** Hook for a tool boosting the tool's Energy capacity */ | ||
// public static final ModifierHook<EnergyModifierHook> TOOL_ENERGY = register("tool_energy", EnergyModifierHook.class, EnergyModifierHook.SUM_MERGER, | ||
// (tool, modifier, capacity) -> 0); | ||
// | ||
// /** Registers a new modifier hook under {@code hephaestusplus} */ | ||
// private static <T> ModifierHook<T> register(String name, Class<T> filter, @Nullable Function<Collection<T>,T> merger, T defaultInstance) { | ||
// return ModifierHooks.register(HephaestusPlus.getResource(name), filter, defaultInstance, merger); | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
src/main/java/konsola5/hephaestusplus/mixin/ModifiableBowItemMixin.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/main/java/konsola5/hephaestusplus/mixin/ModifiableItemMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package konsola5.hephaestusplus.mixin; | ||
|
||
import io.github.fabricators_of_create.porting_lib.common.util.Lazy; | ||
import konsola5.hephaestusplus.util.ToolEnergyCapability; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.world.item.CreativeModeTab; | ||
import net.minecraft.world.item.Item.Properties; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import slimeknights.tconstruct.library.tools.definition.ToolDefinition; | ||
import slimeknights.tconstruct.library.tools.item.ModifiableItem; | ||
import slimeknights.tconstruct.library.tools.nbt.ToolStack; | ||
import team.reborn.energy.api.EnergyStorage; | ||
|
||
@SuppressWarnings("UnstableApiUsage") | ||
@Mixin(ModifiableItem.class) | ||
public class ModifiableItemMixin { | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void addEnergyCapability(Properties properties, ToolDefinition toolDefinition, ResourceKey<CreativeModeTab> tab, CallbackInfo ci) { | ||
EnergyStorage.ITEM.registerFallback((itemStack, context) -> new ToolEnergyCapability(context, Lazy.of(() -> ToolStack.from(itemStack)))); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.