package jas.spawner.legacy.spawner.creature.handler.parsing.keys;

import net.minecraft.entity.EntityLiving;
import net.minecraft.world.World;

public class KeyParserMinHeight extends KeyParserIntArray {

    public KeyParserMinHeight(Key key) {
        super(key);
    }

    @Override
    public int argAmount() {
        return 1;
    }

    @Override
    public boolean isValid(World world, EntityLiving entity, int xCoord, int yCoord, int zCoord, int[] args) {
        return yCoord < args[0];
    }
}