public abstract class com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument extends java.lang.Object implements com.thevoxelbox.voxelsniper.command.VoxelCommandElement
{
protected final com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin;
protected final com.thevoxelbox.voxelsniper.config.VoxelSniperConfig config;
protected final com.sk89q.worldedit.internal.registry.AbstractFactory factory;
protected final java.lang.String parseExceptionCaptionKey;
public void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin, com.sk89q.worldedit.internal.registry.AbstractFactory, java.lang.String)
{
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument v;
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v;
java.lang.String v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.sk89q.worldedit.internal.registry.AbstractFactory v;
v := @this: com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument;
v := @parameter: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v := @parameter: com.sk89q.worldedit.internal.registry.AbstractFactory;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin> = v;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig getVoxelSniperConfig()>();
v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig config> = v;
v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.sk89q.worldedit.internal.registry.AbstractFactory factory> = v;
v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: java.lang.String parseExceptionCaptionKey> = v;
return;
}
protected java.util.List suggestPatterns(cloud.commandframework.context.CommandContext, java.lang.String)
{
java.util.List v;
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument v;
cloud.commandframework.context.CommandContext v;
java.lang.String v;
com.sk89q.worldedit.internal.registry.AbstractFactory v;
v := @this: com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument;
v := @parameter: cloud.commandframework.context.CommandContext;
v := @parameter: java.lang.String;
v = v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.sk89q.worldedit.internal.registry.AbstractFactory factory>;
v = virtualinvoke v.<com.sk89q.worldedit.internal.registry.AbstractFactory: java.util.List getSuggestions(java.lang.String)>(v);
return v;
}
protected com.thevoxelbox.voxelsniper.brush.property.BrushPattern parsePattern(cloud.commandframework.context.CommandContext, java.util.Queue)
{
java.lang.Throwable v;
java.lang.Object[] v, v;
com.sk89q.worldedit.extension.input.ParserContext v;
com.sk89q.worldedit.util.formatting.text.TranslatableComponent v, v;
java.util.Locale v;
java.lang.String v, v, v;
cloud.commandframework.exceptions.parsing.NoInputProvidedException v;
boolean v, v;
org.bukkit.command.CommandSender v;
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument v;
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v;
com.sk89q.worldedit.internal.registry.AbstractFactory v;
java.util.List v;
com.thevoxelbox.voxelsniper.command.argument.VoxelCommandElementParseException v, v;
com.thevoxelbox.voxelsniper.brush.property.BrushPattern v;
cloud.commandframework.context.CommandContext v;
java.lang.Object v, v, v;
java.util.Queue v;
v := @this: com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument;
v := @parameter: cloud.commandframework.context.CommandContext;
v := @parameter: java.util.Queue;
v = interfaceinvoke v.<java.util.Queue: java.lang.Object peek()>();
if v != null goto label;
v = new cloud.commandframework.exceptions.parsing.NoInputProvidedException;
specialinvoke v.<cloud.commandframework.exceptions.parsing.NoInputProvidedException: void <init>(java.lang.Class,cloud.commandframework.context.CommandContext)>(class "Lcom/thevoxelbox/voxelsniper/command/argument/AbstractPatternArgument;", v);
throw v;
label:
v = virtualinvoke v.<cloud.commandframework.context.CommandContext: java.lang.Object getSender()>();
v = interfaceinvoke v.<com.thevoxelbox.voxelsniper.sniper.SniperCommander: com.sk89q.worldedit.extension.input.ParserContext createParserContext()>();
label:
v = v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.sk89q.worldedit.internal.registry.AbstractFactory factory>;
v = <java.util.Locale: java.util.Locale ROOT>;
v = virtualinvoke v.<java.lang.String: java.lang.String toLowerCase(java.util.Locale)>(v);
v = virtualinvoke v.<com.sk89q.worldedit.internal.registry.AbstractFactory: java.lang.Object parseFromInput(java.lang.String,com.sk89q.worldedit.extension.input.ParserContext)>(v, v);
v = interfaceinvoke v.<com.thevoxelbox.voxelsniper.sniper.SniperCommander: org.bukkit.command.CommandSender getCommandSender()>();
v = interfaceinvoke v.<org.bukkit.command.CommandSender: boolean hasPermission(java.lang.String)>("voxelsniper.ignorelimitations");
if v != 0 goto label;
v = v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig config>;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfig: java.util.List getLitesniperRestrictedMaterials()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: java.lang.String getPatternResource(java.lang.String,com.sk89q.worldedit.function.pattern.Pattern)>(v, v);
v = interfaceinvoke v.<java.util.List: boolean contains(java.lang.Object)>(v);
if v == 0 goto label;
v = new com.thevoxelbox.voxelsniper.command.argument.VoxelCommandElementParseException;
v = newarray (java.lang.Object)[1];
v[0] = v;
v = staticinvoke <com.fastasyncworldedit.core.configuration.Caption: com.sk89q.worldedit.util.formatting.text.TranslatableComponent of(java.lang.String,java.lang.Object[])>("voxelsniper.command.not-allowed", v);
specialinvoke v.<com.thevoxelbox.voxelsniper.command.argument.VoxelCommandElementParseException: void <init>(java.lang.String,com.sk89q.worldedit.util.formatting.text.Component)>(v, v);
throw v;
label:
interfaceinvoke v.<java.util.Queue: java.lang.Object remove()>();
v = new com.thevoxelbox.voxelsniper.brush.property.BrushPattern;
specialinvoke v.<com.thevoxelbox.voxelsniper.brush.property.BrushPattern: void <init>(com.sk89q.worldedit.function.pattern.Pattern,java.lang.String)>(v, v);
label:
return v;
label:
v := @caughtexception;
v = new com.thevoxelbox.voxelsniper.command.argument.VoxelCommandElementParseException;
v = v.<com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument: java.lang.String parseExceptionCaptionKey>;
v = newarray (java.lang.Object)[1];
v[0] = v;
v = staticinvoke <com.fastasyncworldedit.core.configuration.Caption: com.sk89q.worldedit.util.formatting.text.TranslatableComponent of(java.lang.String,java.lang.Object[])>(v, v);
specialinvoke v.<com.thevoxelbox.voxelsniper.command.argument.VoxelCommandElementParseException: void <init>(java.lang.String,com.sk89q.worldedit.util.formatting.text.Component)>(v, v);
throw v;
catch com.sk89q.worldedit.extension.input.InputParseException from label to label with label;
}
protected abstract java.lang.String getPatternResource(java.lang.String, com.sk89q.worldedit.function.pattern.Pattern);
}