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

package com.hypixel.hytale.server.core.universe.world.connectedblocks;

import com.hypixel.hytale.codec.KeyedCodec;
import com.hypixel.hytale.codec.Codec;
import com.hypixel.hytale.codec.codecs.array.ArrayCodec;
import com.hypixel.hytale.codec.builder.BuilderCodec;

public class ConnectedBlockShape
{
    public static final BuilderCodec<ConnectedBlockShape> CODEC;
    private CustomTemplateConnectedBlockPattern[] patternsToMatchAnyOf;
    private ConnectedBlockFaceTags faceTags;
    
    public CustomTemplateConnectedBlockPattern[] getPatternsToMatchAnyOf() {
        return this.patternsToMatchAnyOf;
    }
    
    public ConnectedBlockFaceTags getFaceTags() {
        return this.faceTags;
    }
    
    static {
        CODEC = BuilderCodec.builder(ConnectedBlockShape.class, ConnectedBlockShape::new).append(new KeyedCodec<CustomTemplateConnectedBlockPattern[]>("PatternsToMatchAnyOf", new ArrayCodec<CustomTemplateConnectedBlockPattern>((Codec<CustomTemplateConnectedBlockPattern>)CustomTemplateConnectedBlockPattern.CODEC, CustomTemplateConnectedBlockPattern[]::new), true), (o, patternsToMatchAnyOf) -> o.patternsToMatchAnyOf = patternsToMatchAnyOf, o -> o.patternsToMatchAnyOf).add().append(new KeyedCodec("FaceTags", ConnectedBlockFaceTags.CODEC, false), (o, faceTags) -> o.faceTags = faceTags, o -> o.faceTags).add().build();
    }
}
