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

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

import javax.annotation.Nonnull;
import com.hypixel.hytale.component.Component;
import com.hypixel.hytale.server.spawning.SpawningPlugin;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.codec.builder.BuilderCodec;

public class SpawnBeaconReference extends SpawnReference
{
    public static final BuilderCodec<SpawnBeaconReference> CODEC;
    
    public static ComponentType<EntityStore, SpawnBeaconReference> getComponentType() {
        return SpawningPlugin.get().getSpawnBeaconReferenceComponentType();
    }
    
    @Nonnull
    @Override
    public Component<EntityStore> clone() {
        final SpawnBeaconReference reference = new SpawnBeaconReference();
        reference.reference = this.reference;
        return reference;
    }
    
    static {
        CODEC = BuilderCodec.builder(SpawnBeaconReference.class, SpawnBeaconReference::new, SpawnBeaconReference.BASE_CODEC).build();
    }
}
