MixinMobEntity.java 450 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.owlmaddie.mixin;

import org.spongepowered.asm.mixin.Mixin;
import net.minecraft.entity.mob.MobEntity;
import org.spongepowered.asm.mixin.gen.Accessor;
import net.minecraft.entity.ai.goal.GoalSelector;

/**
 * The {@code MixinMobEntity} mixin class exposes the goalSelector field from the MobEntity class.
 */
@Mixin(MobEntity.class)
public interface MixinMobEntity {
    @Accessor("goalSelector") public GoalSelector getGoalSelector();
}