pre-0.18.0 update

This commit is contained in:
ZHAY10086
2025-04-30 16:35:13 +08:00
parent 8c7ad4e2b2
commit b6d0ee1d9c
1135 changed files with 190722 additions and 3545 deletions
+25
View File
@@ -0,0 +1,25 @@
#modloaded aether_legacy
#loader mixin
import native.net.minecraftforge.fml.common.gameevent.TickEvent;
import mixin.CallbackInfo;
/*
Disable event handler checking item entities every tick.
Created by ChaosStrikez for Aether v1.5.4.0.
*/
#mixin Mixin
#{targets: "com.gildedgames.the_aether.AetherEventHandler"}
zenClass MixinAetherEventHandler {
#mixin Inject
#{
# method: "onWorldTick",
# at: {value: "HEAD"},
# cancellable: true
#}
function mbc_disableWorldTick(event as TickEvent.WorldTickEvent, ci as CallbackInfo) as void {
ci.cancel();
}
}
+30
View File
@@ -0,0 +1,30 @@
#modloaded aether_legacy
#loader mixin
import native.net.minecraft.entity.Entity;
import native.net.minecraft.entity.item.EntityItem;
import native.net.minecraft.item.ItemStack;
import native.net.minecraft.world.World;
/*
Make dungeon key invulnerable without costly event handler.
Methods here are technically @Override.
Created by ChaosStrikez for Aether v1.5.4.0.
*/
#mixin Mixin
#{targets: "com.gildedgames.the_aether.items.dungeon.ItemDungeonKey"}
zenClass MixinItemDungeonKey {
function hasCustomEntity(stack as ItemStack) as bool {
return true;
}
function createEntity(world as World, location as Entity, itemstack as ItemStack) as Entity {
location.setEntityInvulnerable(true);
if (location instanceof EntityItem) {
# This is only 2x despawn time, but still better than Aether not doing it.
(location as EntityItem).setNoDespawn();
}
return null;
}
}
-29
View File
@@ -1,29 +0,0 @@
#loader mixin
import native.net.minecraftforge.event.entity.living.LivingDeathEvent;
import mixin.CallbackInfo;
import native.mustapelto.deepmoblearning.common.events.EntityDeathEventHandler;
/*
Fix random crashes related to modifying UUID blacklist concurrently.
Here until floppaxd/DeepMobEvolution#65 is merged.
Created by ChaosStrikez for Deep Mob Evolution 1.2.2.
*/
#mixin Mixin
#{targets: "mustapelto.deepmoblearning.common.events.EntityDeathEventHandler"}
zenClass MixinEntityDeathEventHandler {
#mixin Static
#mixin Inject
#{
# method: "entityDeath",
# at: {value: "HEAD"},
# cancellable: true
#}
function mbc_checkSide(event as LivingDeathEvent, ci as CallbackInfo) as void {
if (event.getEntityLiving().world.isRemote) {
ci.cancel();
}
}
}