Skip to content

Instantly share code, notes, and snippets.

final Parameter.Key<CraftCurrency> currencyKey = Parameter.key("currency", CraftCurrency.class);
final Parameter.Value<CraftCurrency> currencyPara = Parameter.builder(CraftCurrency.class)
.key(currencyKey)
.addParser(new CraftCurrencyParser())
.completer(new CraftCurrencyParser.CraftCurrencyCompleter())
.build();
final Command.Parameterized bal = Command.builder()
.addParameter(userPara)
.addParameter(currencyPara)
public DatabaseHandler() throws SQLException {
......
String jdbcURL = this.createJDBCURL(dbType); // "jdbc:h2:.\config\crafteco\crafteco"
SqlManager sqlManager = Sponge.game().sqlManager();
dataSource = sqlManager.dataSource(jdbcURL);
......
}
------------------------------------------------------------------------------------------------
@Mixin(ItemElementiumAxe.class)
public class MixinItemElementiumAxe {
// I want to rewrite this method("onEntityDrops")
// this injection will work
@Inject(at = @At("HEAD"), remap = false, method = "Lvazkii/botania/common/item/equipment/tool/elementium/ItemElementiumAxe;onEntityDrops(Lnet/minecraftforge/event/entity/living/LivingDropsEvent;)V", cancellable = true)
public void onEntityDrops(LivingDropsEvent event, CallbackInfo info){
LoggerFactory.getLogger("test").error("1111");
}
[18:17:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[18:17:45] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[18:17:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[18:17:45] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2860 for Minecraft 1.12.2 loading
[18:17:45] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_321, running on Windows Server 2022:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_321
[18:17:45] [main/INFO] [FML]: Searching C:\Users\Administrator\Desktop\servers\server_one\.\mods for mods
[18:17:45] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in [优化]foamfix-0.10.14-1.12.2.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[18:17:45] [main/WARN] [FML]: The coremod pl.asie.foamfix.coremod.FoamFixCore does not have
[082月2022 12:41:54.314] [main/INFO] [Arclight/]:
___ ___ __ /\
/ | ________/ (_)__ / / / /
/ /| |/ __/ __/ / / _ / _ \/__/
/ ___ / / / /_/ / / / / // / /
/_/ |/_/ \__/_/_/\_ /_//_/ /
/__/ \/
运行版本 arclight-1.16.5-1.0.22-SNAPSHOT-3d82b9c
This file has been truncated, but you can view the full file.
[102月2022 13:43:39.924] [main/INFO] [Arclight/]:
___ ___ __ /\
/ | ________/ (_)__ / / / /
/ /| |/ __/ __/ / / _ / _ \/__/
/ ___ / / / /_/ / / / / // / /
/_/ |/_/ \__/_/_/\_ /_//_/ /
/__/ \/
运行版本 arclight-1.16.5-1.0.22-SNAPSHOT-3d82b9c
This file has been truncated, but you can view the full file.
[132月2022 12:53:44.141] [main/INFO] [Arclight/]:
___ ___ __ /\
/ | ________/ (_)__ / / / /
/ /| |/ __/ __/ / / _ / _ \/__/
/ ___ / / / /_/ / / / / // / /
/_/ |/_/ \__/_/_/\_ /_//_/ /
/__/ \/
运行版本 arclight-1.16.5-1.0.22-SNAPSHOT-3d82b9c
[20:31:15] [Server thread/WARN] [sponge/]: Logged transaction without event transaction!
java.lang.Exception: org.spongepowered.common.event.tracking.context.transaction.inventory.ContainerSlotTransaction
at org.spongepowered.common.event.tracking.context.transaction.TransactionalCaptureSupplier.logTransaction(TransactionalCaptureSupplier.java:134) ~[spongeforge:1.16.5-36.2.5-8.0.0-RC1073] {re:mixin,re:classloading}
at org.spongepowered.common.event.tracking.context.transaction.TransactionSink.logSlotTransaction(TransactionSink.java:315) ~[spongeforge:1.16.5-36.2.5-8.0.0-RC1073] {re:mixin,re:classloading}
at net.minecraft.inventory.container.Container.impl$capture(Container.java:1458) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.sponge.inventory.json:api.TraitMixin_Carried_Inventory_API,pl:mixin:APP:mixins.sponge.inventory.json:event.world.inventory.AbstractContainerMenuMixin_Inventory,pl:mixin:APP:mixins.spo
[142月2022 02:59:31.067] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.28, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
[142月2022 02:59:31.071] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 11.0.13 by Oracle Corporation
[142月2022 02:59:31.482] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[142月2022 02:59:31.547] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/93206/Desktop/Sponge%208/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER
[142月2022 02:59:31.911] [main/INFO] [org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager/]: Scanning and verifying libraries in '.\sponge-libraries'. Please wait, this may ta
[142月2022 03:08:27.670] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.28, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
[142月2022 03:08:27.674] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 11.0.13 by Oracle Corporation
[142月2022 03:08:28.093] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[142月2022 03:08:28.159] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/93206/Desktop/Sponge%208/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER
[142月2022 03:08:28.543] [main/INFO] [org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager/]: Scanning and verifying libraries in '.\sponge-libraries'. Please wait, this may ta