mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 15:56:14 +00:00
Add mixins, move getter methodhandles to them
Remove libobfuscation getMethod usages
Libobfuscation is gone 🦀
Combine mixins into one package
Port all accesstransformers possible to Mixins
This commit is contained in:
1 parent
e4ba90b5bb
commit
2a928124c3
89 files changed
+824
-344
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* This class is distributed as part of the Botania Mod.
|
||||
* Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*/
|
||||
package vazkii.botania.mixin;
|
||||
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.ai.goal.NearestAttackableTargetGoal;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
|
||||
@Mixin(NearestAttackableTargetGoal.class)
|
||||
public interface MixinNearestAttackableTarget {
|
||||
@Accessor
|
||||
Class<?> getTargetClass();
|
||||
|
||||
@Accessor
|
||||
void setTargetClass(Class<?> clazz);
|
||||
}
|
||||
Reference in new issue
Block a user