update
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
#loader mixin
|
||||
|
||||
import native.java.util.UUID;
|
||||
|
||||
import native.net.minecraftforge.fml.common.network.simpleimpl.IMessage;
|
||||
import native.net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
|
||||
import native.com.projecturanus.betterp2p.network.ModNetwork;
|
||||
import native.com.projecturanus.betterp2p.network.PlayerRequest;
|
||||
import native.com.projecturanus.betterp2p.network.packet.C2SLinkP2P;
|
||||
import native.com.projecturanus.betterp2p.network.packet.C2SUnlinkP2P;
|
||||
import native.com.projecturanus.betterp2p.network.packet.S2COpenGui;
|
||||
|
||||
#mixin {value: "com.projecturanus.betterp2p.network.packet.ServerLinkP2PHandler"}
|
||||
zenClass MixinServerLinkP2PHandler {
|
||||
#mixin Overwrite
|
||||
function onMessage(message as C2SLinkP2P, ctx as MessageContext) as IMessage {
|
||||
if (isNull(message.input) || isNull(message.output)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var player = ctx.serverHandler.player;
|
||||
var states as PlayerRequest[UUID] = ModNetwork.INSTANCE.getPlayerState();
|
||||
var state = states[player.uniqueID];
|
||||
if (isNull(state)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isNull(player.server)) {
|
||||
player.server.addScheduledTask(function() {
|
||||
var result = state.gridCache.linkP2P(message.input, message.output);
|
||||
if (!isNull(result)) {
|
||||
ModNetwork.INSTANCE.requestP2PUpdate(player);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
#mixin {value: "com.projecturanus.betterp2p.network.packet.ServerUnlinkP2PHandler"}
|
||||
zenClass MixinServerUnlinkP2PHandler {
|
||||
#mixin Overwrite
|
||||
function onMessage(message as C2SUnlinkP2P, ctx as MessageContext) as S2COpenGui {
|
||||
if (isNull(message.p2p)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var player = ctx.serverHandler.player;
|
||||
var states as PlayerRequest[UUID] = ModNetwork.INSTANCE.getPlayerState();
|
||||
var state = states[player.uniqueID];
|
||||
if (isNull(state)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isNull(player.server)) {
|
||||
player.server.addScheduledTask(function() {
|
||||
state.gridCache.unlinkP2P(message.p2p);
|
||||
ModNetwork.INSTANCE.requestP2PUpdate(player);
|
||||
});
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
#modloaded thebetweenlands
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
import native.thebetweenlands.common.item.BLMaterialRegistry;
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "thebetweenlands.common.item.BLMaterialRegistry"}
|
||||
zenClass MixinBLMaterialRegistry {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "BLMaterialRegistry",
|
||||
# constant: {floatValue: 8.0F}
|
||||
#}
|
||||
function modifyValoniteShockwaveDamage(original as float) as float {
|
||||
return 27.0F;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#loader mixin
|
||||
|
||||
/*
|
||||
Bandaid fix to prevent voiding of fluids when using fluid machinery output buses
|
||||
*/
|
||||
#mixin Mixin
|
||||
#{targets: "github.kasuminova.mmce.common.tile.MEFluidOutputBus"}
|
||||
zenClass MixinFluidMachinery {
|
||||
#mixin ModifyArg
|
||||
#{
|
||||
# method: "Lgithub/kasuminova/mmce/common/tile/MEFluidOutputBus;<init>()V",
|
||||
# at: {
|
||||
# value: "INVOKE",
|
||||
# target: "Lgithub/kasuminova/mmce/common/util/AEFluidInventoryUpgradeable;setOneFluidOneSlot(Z)V"
|
||||
# }
|
||||
#}
|
||||
function mbc_fixFluidMachinery(toYeet as bool) as bool {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
#modloaded threng
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
|
||||
#mixin {value: "io.github.phantamanta44.threng.tile.TileLevelMaintainer"}
|
||||
zenClass MixinTileLevelMaintainer {
|
||||
#mixin ModifyArg
|
||||
#{
|
||||
# method: "lambda$tick$1",
|
||||
# at: {
|
||||
# value: "INVOKE",
|
||||
# target: "Lio/github/phantamanta44/threng/tile/TileLevelMaintainer$InventoryRequest;computeDelta(IJ)J"
|
||||
# },
|
||||
# index: 1
|
||||
#}
|
||||
function allowOvercraft(existing as long) as long {
|
||||
return 0 as long;
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "io.github.phantamanta44.threng.tile.TileLevelMaintainer"}
|
||||
zenClass MixinTileLevelMaintainer {
|
||||
#mixin ModifyArg
|
||||
#{
|
||||
# method: "tick",
|
||||
# at: {value: "INVOKE", target: "Lio/github/phantamanta44/threng/tile/TileLevelMaintainer$InventoryRequest;computeDelta(IJ)J"},
|
||||
# index: 1
|
||||
#}
|
||||
function allowOvercraft(existing as long) as long {
|
||||
return 0 as long;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#modloaded aoa3
|
||||
#loader mixin
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "net.tslat.aoa3.common.registration.WeaponRegister"}
|
||||
zenClass MixinWeaponRegister {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "registerWeapon",
|
||||
# slice: {from: {value: "NEW", target: "net/tslat/aoa3/item/weapon/gun/DartGun"}},
|
||||
# constant: {doubleValue: 10.0f, ordinal: 0}
|
||||
#}
|
||||
function modifyDartGunDamage(original as double) as double {
|
||||
return 100.0;
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,17 @@
|
||||
#modloaded aoa3
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
import native.net.tslat.aoa3.common.registration.WeaponRegister;
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "net.tslat.aoa3.common.registration.WeaponRegister"}
|
||||
zenClass MixinWeaponRegister {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "WeaponRegister",
|
||||
# constant: {floatValue: 20.5f},
|
||||
# slice: {
|
||||
# from: {value: "INVOKE", target: "Lnet/tslat/aoa3/common/registration/WeaponRegister;registerMauls(Lnet/minecraftforge/registries/IForgeRegistry;[Lnet/tslat/aoa3/item/weapon/maul/BaseMaul;)V"},
|
||||
# to: {value: "INVOKE", target: "Lnet/tslat/aoa3/common/registration/WeaponRegister;registerGuns(Lnet/minecraftforge/registries/IForgeRegistry;[Lnet/tslat/aoa3/item/weapon/gun/BaseGun;)V"}
|
||||
# }
|
||||
# method: "registerWeapon",
|
||||
# slice: {from: {value: "NEW", target: "net/tslat/aoa3/item/weapon/gun/FlamingFury"}},
|
||||
# constant: {doubleValue: 20.5f, ordinal: 0}
|
||||
#}
|
||||
function modifyFlamingFuryDamage(original as float) as float {
|
||||
return 100.0f;
|
||||
function modifyFlamingFuryDamage(original as double) as double {
|
||||
return 200.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#modloaded aoa3
|
||||
#loader mixin
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "net.tslat.aoa3.common.registration.WeaponRegister"}
|
||||
zenClass MixinWeaponRegister {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "registerWeapon",
|
||||
# slice: {from: {value: "NEW", target: "net/tslat/aoa3/item/weapon/gun/NethengeicSlugger"}},
|
||||
# constant: {doubleValue: 22.5f, ordinal: 0}
|
||||
#}
|
||||
function modifyNethengeicSluggerDamage(original as double) as double {
|
||||
return 240.0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#modloaded aoa3
|
||||
#loader mixin
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "net.tslat.aoa3.common.registration.WeaponRegister"}
|
||||
zenClass MixinWeaponRegister {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "registerWeapon",
|
||||
# slice: {from: {value: "NEW", target: "net/tslat/aoa3/item/weapon/blaster/WithersWrath"}},
|
||||
# constant: {doubleValue: 7.5f, ordinal: 0}
|
||||
#}
|
||||
function modifyWitherWrathDamage(original as double) as double {
|
||||
return 100.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#modloaded aoa3
|
||||
#loader mixin
|
||||
|
||||
#mixin Mixin
|
||||
#{targets: "net.tslat.aoa3.common.registration.WeaponRegister"}
|
||||
zenClass MixinWeaponRegister {
|
||||
#mixin Static
|
||||
#mixin ModifyConstant
|
||||
#{
|
||||
# method: "registerWeapon",
|
||||
# slice: {from: {value: "NEW", target: "net/tslat/aoa3/item/weapon/blaster/WithersWrath"}},
|
||||
# constant: {doubleValue: 21f, ordinal: 0}
|
||||
#}
|
||||
function modifyWitherWrathDamage(original as double) as double {
|
||||
return 8.0;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
import native.java.util.UUID;
|
||||
|
||||
import native.hellfirepvp.astralsorcery.common.registry.RegistryPerks;
|
||||
|
||||
#mixin Mixin
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#loader mixin
|
||||
|
||||
import mixin.CallbackInfo;
|
||||
import native.java.util.UUID;
|
||||
import native.hellfirepvp.astralsorcery.common.registry.RegistryPerks;
|
||||
|
||||
#mixin Mixin
|
||||
|
||||
Reference in New Issue
Block a user