This commit is contained in:
sainagh
2026-03-25 15:28:45 -05:00
parent c6137e9101
commit 6e24b21e79
718 changed files with 20094 additions and 8044 deletions
-23
View File
@@ -1,23 +0,0 @@
#modloaded appliedenergistics2
#loader mixin
import mixin.CallbackInfo;
#mixin {value: "appeng.me.cache.NetworkMonitor"}
zenClass MixinNetworkMonitor {
#mixin Inject
#{
# method: "lambda$postChange$1",
# at :{
# value : "INVOKE",
# target : "Lappeng/me/cache/NetworkMonitor;setForceUpdate(Z)V"
# },
# cancellable: true
#}
function removeForceUpdateCall(ci as CallbackInfo) as void {
ci.cancel();
}
}
-36
View File
@@ -1,36 +0,0 @@
#modloaded gendustry
#loader mixin
import native.net.bdew.gendustry.machines.apiary.BlockApiary;
import native.net.bdew.gendustry.machines.apiary.TileApiary;
import native.forestry.api.apiculture.IBeekeepingLogic;
import native.net.minecraft.entity.player.EntityPlayer;
import native.net.minecraft.item.ItemStack;
import native.net.minecraft.util.EnumHand;
import native.net.minecraft.util.text.TextComponentString;
import native.net.minecraft.util.math.BlockPos;
import native.net.minecraft.world.World;
// I hate Scala jars
#mixin {targets: "net.bdew.gendustry.machines.apiary.BlockApiary$"}
zenClass ApiaryBonkMixin {
// SRG HEAD: Block#onBlockClicked -> func_180649_a (not mixin, as inherited)
function func_180649_a(worldIn as World, pos as BlockPos, playerIn as EntityPlayer) as void {
val heldItem as ItemStack = playerIn.getHeldItem(EnumHand.MAIN_HAND);
if (!worldIn.isRemote && heldItem.isEmpty()) {
// Bonk action: refresh apiary
val tile as TileApiary = worldIn.getTileEntity(pos) as TileApiary;
val logic as IBeekeepingLogic = tile.getBeekeepingLogic();
logic.clearCachedValues();
// Chat message
val message as TextComponentString = TextComponentString("§aClank! Apiary flowers refreshed.");
playerIn.sendStatusMessage(message, true);
}
}
}
-5
View File
@@ -1,5 +0,0 @@
#modloaded gendustry crafttweaker
#loader crafttweaker
// we were supposed to use mixin List getTooltip(ItemStack, World, ITooltipFlag), but Scala is just cursed
<item:gendustry:industrial_apiary>.addTooltip("§3Hit the apiary with an empty hand to refresh the flowers!");
@@ -0,0 +1,17 @@
#modloaded extrabotany
#loader mixin
import native.com.meteor.extrabotany.common.item.relic.ItemExcaliber;
#mixin {value: "com.meteor.extrabotany.common.item.relic.ItemExcaliber"}
zenClass MixinItemExcaliber {
#mixin Static
#mixin ModifyConstant
#{
# method: "updateBurst",
# constant: {floatValue: 3F}
#}
function buffExcaliber(original as float) as float {
return 30.0F;
}
}
+22
View File
@@ -0,0 +1,22 @@
#modloaded aoa3
#loader mixin
import scripts.mixin.aoa3.StatsConfig as CFG;
#mixin Mixin
#{targets: "net.tslat.aoa3.item.weapon.staff.WaterStaff"}
zenClass MixinWaterStaff {
#mixin ModifyConstant
#{
# method: "<init>",
# constant: {floatValue: 5}
#}
function mbc_modify_dmg_waterStaff(original as float) as float {
return CFG.dmg_waterStaff;
}
}
+4 -2
View File
@@ -31,7 +31,10 @@ static dmg_SkeletalSword as float = 37.0f;
static dmg_SupremacySword as float = 54.0f;
static dmg_SweetSword as float = 54.0f;
// Ranged Weapons
// staffs
static dmg_waterStaff as float = 300.0d;
// guns and co
static dmg_ChilliChugger as double = 40.0d;
static dmg_DartGun as double = 100.0d;
static dmg_FlamingFury as double = 200.0d;
@@ -103,7 +106,6 @@ static dmg_Sublimus as double = 1000.0d;
static dmg_HuntersRifle as double = 444.0d;
static energyCost_WithersWrath as float = 8.0f;
static energyCost_DoomBringer as float = 0.1f;
static energyCost_GoldBringer as float = 0.1f;