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

package com.hypixel.hytale.server.worldgen.cave;

import javax.annotation.Nullable;
import com.hypixel.hytale.server.core.prefab.PrefabRotation;

public enum CaveYawMode permits CaveYawMode$1, CaveYawMode$2, CaveYawMode$3
{
    NODE {
        @Override
        public float combine(final float parentYaw, @Nullable final PrefabRotation parentRotation) {
            return parentYaw;
        }
    }, 
    SUM {
        @Override
        public float combine(final float parentYaw, @Nullable final PrefabRotation parentRotation) {
            if (parentRotation == null) {
                return parentYaw;
            }
            return parentYaw + parentRotation.getYaw();
        }
    }, 
    PREFAB {
        @Override
        public float combine(final float parentYaw, @Nullable final PrefabRotation parentRotation) {
            if (parentRotation == null) {
                return parentYaw;
            }
            return parentRotation.getYaw();
        }
    };
    
    public abstract float combine(final float p0, @Nullable final PrefabRotation p1);
}
