Newer
Older
void-pack-super-server / work / decompile-ee3ecae0 / net / minecraft / server / PathfinderGoalLookAtTradingPlayer.java
Simon Lindgren on 26 Mar 2020 560 bytes first commit
package net.minecraft.server;

public class PathfinderGoalLookAtTradingPlayer extends PathfinderGoalLookAtPlayer {

    private final EntityVillagerAbstract g;

    public PathfinderGoalLookAtTradingPlayer(EntityVillagerAbstract entityvillagerabstract) {
        super(entityvillagerabstract, EntityHuman.class, 8.0F);
        this.g = entityvillagerabstract;
    }

    @Override
    public boolean a() {
        if (this.g.et()) {
            this.b = this.g.getTrader();
            return true;
        } else {
            return false;
        }
    }
}