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

package com.hypixel.hytale.server.npc.components;

import javax.annotation.Nonnull;
import com.hypixel.hytale.server.npc.NPCPlugin;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Component;

public class StepComponent implements Component<EntityStore>
{
    private final float tickLength;
    
    public static ComponentType<EntityStore, StepComponent> getComponentType() {
        return NPCPlugin.get().getStepComponentType();
    }
    
    public StepComponent(final float tickLength) {
        this.tickLength = tickLength;
    }
    
    public float getTickLength() {
        return this.tickLength;
    }
    
    @Nonnull
    @Override
    public Component<EntityStore> clone() {
        return new StepComponent(this.tickLength);
    }
}
