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

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

import com.hypixel.hytale.server.npc.corecomponents.entity.builders.BuilderSensorEntityBase;
import com.hypixel.hytale.server.npc.asset.builder.BuilderSupport;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.npc.corecomponents.entity.builders.BuilderSensorEntity;

public class SensorEntity extends SensorEntityBase
{
    protected final boolean getPlayers;
    protected final boolean getNPCs;
    protected final boolean excludeOwnType;
    
    public SensorEntity(@Nonnull final BuilderSensorEntity builder, @Nonnull final BuilderSupport builderSupport) {
        super(builder, builder.getPrioritiser(builderSupport), builderSupport);
        this.getPlayers = builder.isGetPlayers(builderSupport);
        this.getNPCs = builder.isGetNPCs(builderSupport);
        this.excludeOwnType = builder.isExcludeOwnType(builderSupport);
        this.initialisePrioritiser();
    }
    
    public boolean isGetPlayers() {
        return this.getPlayers;
    }
    
    public boolean isGetNPCs() {
        return this.getNPCs;
    }
    
    public boolean isExcludingOwnType() {
        return this.excludeOwnType;
    }
}
