mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 22:15:37 +00:00
cleanup
This commit is contained in:
6 files changed
+17
-12
No files matched your search
@@ -22,6 +22,8 @@ indra {
|
|||||||
license {
|
license {
|
||||||
header.set(resources.text.fromFile(rootProject.file("LICENSE_HEADER")))
|
header.set(resources.text.fromFile(rootProject.file("LICENSE_HEADER")))
|
||||||
exclude("net/draycia/carbon/common/command/argument/OptionValueParser.java")
|
exclude("net/draycia/carbon/common/command/argument/OptionValueParser.java")
|
||||||
|
exclude("net/draycia/carbon/common/messages/PrefixedDelegateIterator.java")
|
||||||
|
exclude("net/draycia/carbon/common/messages/StandardPlaceholderResolverStrategyButDifferent.java")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ package net.draycia.carbon.common.command.commands;
|
|||||||
import cloud.commandframework.ArgumentDescription;
|
import cloud.commandframework.ArgumentDescription;
|
||||||
import cloud.commandframework.CommandManager;
|
import cloud.commandframework.CommandManager;
|
||||||
import cloud.commandframework.arguments.standard.UUIDArgument;
|
import cloud.commandframework.arguments.standard.UUIDArgument;
|
||||||
import cloud.commandframework.exceptions.CommandExecutionException;
|
|
||||||
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ package net.draycia.carbon.common.command.commands;
|
|||||||
import cloud.commandframework.ArgumentDescription;
|
import cloud.commandframework.ArgumentDescription;
|
||||||
import cloud.commandframework.CommandManager;
|
import cloud.commandframework.CommandManager;
|
||||||
import cloud.commandframework.arguments.standard.UUIDArgument;
|
import cloud.commandframework.arguments.standard.UUIDArgument;
|
||||||
import cloud.commandframework.exceptions.CommandExecutionException;
|
|
||||||
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ package net.draycia.carbon.common.messages;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
public final class PrefixedDelegateIterator<T> implements Iterator<T> {
|
public final class PrefixedDelegateIterator<T> implements Iterator<T> {
|
||||||
|
|
||||||
private final T prefix;
|
private final T prefix;
|
||||||
private final Iterator<T> delegate;
|
private final Iterator<T> delegate;
|
||||||
private boolean seenPrefix = false;
|
private boolean seenPrefix = false;
|
||||||
@@ -52,4 +53,5 @@ public final class PrefixedDelegateIterator<T> implements Iterator<T> {
|
|||||||
|
|
||||||
this.delegate.remove();
|
this.delegate.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* moonshine - A localisation library for Java.
|
* CarbonChat
|
||||||
* Copyright (C) Mariell Hoversholm
|
*
|
||||||
|
* Copyright (c) 2021 Josua Parks (Vicarious)
|
||||||
|
* Contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published
|
* it under the terms of the GNU General Public License as published by
|
||||||
* by the Free Software Foundation, either version 3 of the License, or
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Lesser General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package net.draycia.carbon.common.messages;
|
package net.draycia.carbon.common.messages;
|
||||||
|
|||||||
+5
-4
@@ -17,8 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
package net.draycia.carbon.common.messages;
|
package net.draycia.carbon.common.messages;
|
||||||
|
|
||||||
import static java.util.Collections.emptyNavigableSet;
|
|
||||||
|
|
||||||
import io.leangen.geantyref.GenericTypeReflector;
|
import io.leangen.geantyref.GenericTypeReflector;
|
||||||
import java.lang.reflect.Parameter;
|
import java.lang.reflect.Parameter;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@@ -39,9 +37,11 @@ import net.kyori.moonshine.strategy.supertype.ISupertypeStrategy;
|
|||||||
import net.kyori.moonshine.strategy.supertype.StandardSupertypeThenInterfaceSupertypeStrategy;
|
import net.kyori.moonshine.strategy.supertype.StandardSupertypeThenInterfaceSupertypeStrategy;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
|
||||||
|
import static java.util.Collections.emptyNavigableSet;
|
||||||
|
|
||||||
@ThreadSafe
|
@ThreadSafe
|
||||||
public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> implements
|
public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> implements IPlaceholderResolverStrategy<R, I, F> {
|
||||||
IPlaceholderResolverStrategy<R, I, F> {
|
|
||||||
private final ISupertypeStrategy supertypeStrategy = new StandardSupertypeThenInterfaceSupertypeStrategy(false);
|
private final ISupertypeStrategy supertypeStrategy = new StandardSupertypeThenInterfaceSupertypeStrategy(false);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -149,4 +149,5 @@ public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> impl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user