// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.npc.corecomponents.movement;

import com.hypixel.hytale.server.npc.sensorinfo.InfoProvider;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.server.npc.role.Role;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Ref;
import com.hypixel.hytale.server.npc.corecomponents.builders.BuilderSensorBase;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.npc.corecomponents.movement.builders.BuilderSensorMotionController;
import com.hypixel.hytale.server.npc.corecomponents.SensorBase;

public class SensorMotionController extends SensorBase
{
    protected final String motionControllerName;
    
    public SensorMotionController(@Nonnull final BuilderSensorMotionController builderSensorMotionController) {
        super(builderSensorMotionController);
        this.motionControllerName = builderSensorMotionController.getMotionControllerName();
    }
    
    @Override
    public boolean matches(@Nonnull final Ref<EntityStore> ref, @Nonnull final Role role, final double dt, @Nonnull final Store<EntityStore> store) {
        return super.matches(ref, role, dt, store) && this.motionControllerName.equalsIgnoreCase(role.getActiveMotionController().getType());
    }
    
    @Override
    public InfoProvider getSensorInfo() {
        return null;
    }
}
