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

package com.hypixel.hytale.server.core.ui;

import javax.annotation.Nonnull;
import com.hypixel.hytale.codec.builder.BuilderCodec;

public class PatchStyle
{
    public static final BuilderCodec<PatchStyle> CODEC;
    private Value<String> texturePath;
    private Value<Integer> border;
    private Value<Integer> horizontalBorder;
    private Value<Integer> verticalBorder;
    private Value<String> color;
    private Value<Area> area;
    
    public PatchStyle() {
    }
    
    public PatchStyle(final Value<String> texturePath) {
        this.texturePath = texturePath;
    }
    
    public PatchStyle(final Value<String> texturePath, final Value<Integer> border) {
        this.texturePath = texturePath;
        this.border = border;
    }
    
    @Nonnull
    public PatchStyle setTexturePath(final Value<String> texturePath) {
        this.texturePath = texturePath;
        return this;
    }
    
    @Nonnull
    public PatchStyle setBorder(final Value<Integer> border) {
        this.border = border;
        return this;
    }
    
    @Nonnull
    public PatchStyle setHorizontalBorder(final Value<Integer> horizontalBorder) {
        this.horizontalBorder = horizontalBorder;
        return this;
    }
    
    @Nonnull
    public PatchStyle setVerticalBorder(final Value<Integer> verticalBorder) {
        this.verticalBorder = verticalBorder;
        return this;
    }
    
    @Nonnull
    public PatchStyle setColor(final Value<String> color) {
        this.color = color;
        return this;
    }
    
    @Nonnull
    public PatchStyle setArea(final Value<Area> area) {
        this.area = area;
        return this;
    }
    
    static {
        // 
        // This method could not be decompiled.
        // 
        // Original Bytecode:
        // 
        //     2: invokedynamic   BootstrapMethod #0, get:()Ljava/util/function/Supplier;
        //     7: invokestatic    com/hypixel/hytale/codec/builder/BuilderCodec.builder:(Ljava/lang/Class;Ljava/util/function/Supplier;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    10: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    13: dup            
        //    14: ldc             "TexturePath"
        //    16: getstatic       com/hypixel/hytale/server/core/ui/ValueCodec.STRING:Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //    19: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    22: invokedynamic   BootstrapMethod #1, accept:()Ljava/util/function/BiConsumer;
        //    27: invokedynamic   BootstrapMethod #2, apply:()Ljava/util/function/Function;
        //    32: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    35: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    38: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    41: dup            
        //    42: ldc             "Border"
        //    44: getstatic       com/hypixel/hytale/server/core/ui/ValueCodec.INTEGER:Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //    47: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    50: invokedynamic   BootstrapMethod #3, accept:()Ljava/util/function/BiConsumer;
        //    55: invokedynamic   BootstrapMethod #4, apply:()Ljava/util/function/Function;
        //    60: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    63: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    66: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    69: dup            
        //    70: ldc             "HorizonzalBorder"
        //    72: getstatic       com/hypixel/hytale/server/core/ui/ValueCodec.INTEGER:Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //    75: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    78: invokedynamic   BootstrapMethod #5, accept:()Ljava/util/function/BiConsumer;
        //    83: invokedynamic   BootstrapMethod #6, apply:()Ljava/util/function/Function;
        //    88: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    91: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    94: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    97: dup            
        //    98: ldc             "VerticalBorder"
        //   100: getstatic       com/hypixel/hytale/server/core/ui/ValueCodec.INTEGER:Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //   103: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   106: invokedynamic   BootstrapMethod #7, accept:()Ljava/util/function/BiConsumer;
        //   111: invokedynamic   BootstrapMethod #8, apply:()Ljava/util/function/Function;
        //   116: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   119: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   122: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   125: dup            
        //   126: ldc             "Color"
        //   128: getstatic       com/hypixel/hytale/server/core/ui/ValueCodec.STRING:Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //   131: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   134: invokedynamic   BootstrapMethod #9, accept:()Ljava/util/function/BiConsumer;
        //   139: invokedynamic   BootstrapMethod #10, apply:()Ljava/util/function/Function;
        //   144: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   147: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   150: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   153: dup            
        //   154: ldc             "Area"
        //   156: new             Lcom/hypixel/hytale/server/core/ui/ValueCodec;
        //   159: dup            
        //   160: getstatic       com/hypixel/hytale/server/core/ui/Area.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   163: invokespecial   com/hypixel/hytale/server/core/ui/ValueCodec.<init>:(Lcom/hypixel/hytale/codec/Codec;)V
        //   166: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   169: invokedynamic   BootstrapMethod #11, accept:()Ljava/util/function/BiConsumer;
        //   174: invokedynamic   BootstrapMethod #12, apply:()Ljava/util/function/Function;
        //   179: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   182: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   185: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.build:()Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   188: putstatic       com/hypixel/hytale/server/core/ui/PatchStyle.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   191: return         
        // 
        // The error that occurred was:
        // 
        // java.lang.UnsupportedOperationException: The requested operation is not supported.
        //     at com.strobel.util.ContractUtils.unsupported(ContractUtils.java:27)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:284)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:279)
        //     at com.strobel.assembler.metadata.TypeReference.makeGenericType(TypeReference.java:154)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitParameterizedType(TypeSubstitutionVisitor.java:225)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitParameterizedType(TypeSubstitutionVisitor.java:25)
        //     at com.strobel.assembler.metadata.ParameterizedType.accept(ParameterizedType.java:103)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visit(TypeSubstitutionVisitor.java:40)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitMethod(TypeSubstitutionVisitor.java:314)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2611)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1083)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:684)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:667)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:373)
        //     at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:95)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:344)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:206)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:93)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:868)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:761)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:638)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:605)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:195)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:162)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:137)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:333)
        //     at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:254)
        //     at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:129)
        // 
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }
}
