public class com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder extends java.lang.Object
{
private java.lang.String name;
private java.lang.String permission;
private final java.util.List aliases;
private com.thevoxelbox.voxelsniper.brush.property.BrushPatternType brushPatternType;
private com.thevoxelbox.voxelsniper.brush.property.BrushCreator creator;
public void <init>()
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
java.util.ArrayList v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(int)>(1);
v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.util.List aliases> = v;
return;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder name(java.lang.String)
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
java.lang.String v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v := @parameter: java.lang.String;
v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.lang.String name> = v;
return v;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder permission(java.lang.String)
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
java.lang.String v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v := @parameter: java.lang.String;
v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.lang.String permission> = v;
return v;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder alias(java.lang.String)
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
java.util.List v;
java.lang.String v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v := @parameter: java.lang.String;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.util.List aliases>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
return v;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder brushPatternType(com.thevoxelbox.voxelsniper.brush.property.BrushPatternType)
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
com.thevoxelbox.voxelsniper.brush.property.BrushPatternType v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v := @parameter: com.thevoxelbox.voxelsniper.brush.property.BrushPatternType;
v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushPatternType brushPatternType> = v;
return v;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder creator(com.thevoxelbox.voxelsniper.brush.property.BrushCreator)
{
com.thevoxelbox.voxelsniper.brush.property.BrushCreator v;
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v := @parameter: com.thevoxelbox.voxelsniper.brush.property.BrushCreator;
v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushCreator creator> = v;
return v;
}
public com.thevoxelbox.voxelsniper.brush.property.BrushProperties build()
{
com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder v;
java.lang.RuntimeException v, v, v;
com.thevoxelbox.voxelsniper.brush.property.BrushProperties v;
java.util.List v;
com.thevoxelbox.voxelsniper.brush.property.BrushPatternType v, v;
com.thevoxelbox.voxelsniper.brush.property.BrushCreator v, v;
java.lang.String v, v, v;
v := @this: com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.lang.String name>;
if v != null goto label;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>("Brush name must be specified.");
throw v;
label:
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushPatternType brushPatternType>;
if v != null goto label;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>("Brush pattern type must be specified.");
throw v;
label:
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushCreator creator>;
if v != null goto label;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>("Brush creator must be specified.");
throw v;
label:
v = new com.thevoxelbox.voxelsniper.brush.property.BrushProperties;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.lang.String name>;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.lang.String permission>;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: java.util.List aliases>;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushPatternType brushPatternType>;
v = v.<com.thevoxelbox.voxelsniper.brush.property.BrushPropertiesBuilder: com.thevoxelbox.voxelsniper.brush.property.BrushCreator creator>;
specialinvoke v.<com.thevoxelbox.voxelsniper.brush.property.BrushProperties: void <init>(java.lang.String,java.lang.String,java.util.List,com.thevoxelbox.voxelsniper.brush.property.BrushPatternType,com.thevoxelbox.voxelsniper.brush.property.BrushCreator)>(v, v, v, v, v);
return v;
}
}