Skip to content

Commit

Permalink
Repackage to org.incendo.cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 25, 2024
1 parent 0a7bf24 commit 770aa71
Show file tree
Hide file tree
Showing 60 changed files with 174 additions and 175 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import com.google.inject.AbstractModule;
import com.google.inject.Key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import java.util.ArrayDeque;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.spongepowered.api.command.registrar.tree.CommandTreeNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import java.util.Collection;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import io.leangen.geantyref.TypeToken;
import org.incendo.cloud.key.CloudKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import cloud.commandframework.sponge.annotation.specifier.Center;
import cloud.commandframework.sponge.parser.RegistryEntryParser;
import cloud.commandframework.sponge.parser.Vector2dParser;
import cloud.commandframework.sponge.parser.Vector3dParser;
import cloud.commandframework.sponge.suggestion.SpongeSuggestion;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Inject;
import com.google.inject.Module;
Expand All @@ -46,6 +41,30 @@
import org.incendo.cloud.meta.CommandMeta;
import org.incendo.cloud.meta.SimpleCommandMeta;
import org.incendo.cloud.parser.ParserParameters;
import org.incendo.cloud.sponge.annotation.specifier.Center;
import org.incendo.cloud.sponge.parser.BlockInputParser;
import org.incendo.cloud.sponge.parser.BlockPredicateParser;
import org.incendo.cloud.sponge.parser.ComponentParser;
import org.incendo.cloud.sponge.parser.DataContainerParser;
import org.incendo.cloud.sponge.parser.GameProfileCollectionParser;
import org.incendo.cloud.sponge.parser.GameProfileParser;
import org.incendo.cloud.sponge.parser.ItemStackPredicateParser;
import org.incendo.cloud.sponge.parser.MultipleEntitySelectorParser;
import org.incendo.cloud.sponge.parser.MultiplePlayerSelectorParser;
import org.incendo.cloud.sponge.parser.NamedTextColorParser;
import org.incendo.cloud.sponge.parser.OperatorParser;
import org.incendo.cloud.sponge.parser.ProtoItemStackParser;
import org.incendo.cloud.sponge.parser.RegistryEntryParser;
import org.incendo.cloud.sponge.parser.ResourceKeyParser;
import org.incendo.cloud.sponge.parser.SingleEntitySelectorParser;
import org.incendo.cloud.sponge.parser.SinglePlayerSelectorParser;
import org.incendo.cloud.sponge.parser.UserParser;
import org.incendo.cloud.sponge.parser.Vector2dParser;
import org.incendo.cloud.sponge.parser.Vector2iParser;
import org.incendo.cloud.sponge.parser.Vector3dParser;
import org.incendo.cloud.sponge.parser.Vector3iParser;
import org.incendo.cloud.sponge.parser.WorldParser;
import org.incendo.cloud.sponge.suggestion.SpongeSuggestion;
import org.incendo.cloud.state.RegistrationState;
import org.incendo.cloud.suggestion.SuggestionFactory;
import org.spongepowered.api.Sponge;
Expand All @@ -59,26 +78,6 @@
import org.spongepowered.math.vector.Vector3d;
import org.spongepowered.plugin.PluginContainer;

import static cloud.commandframework.sponge.parser.BlockInputParser.blockInputParser;
import static cloud.commandframework.sponge.parser.BlockPredicateParser.blockPredicateParser;
import static cloud.commandframework.sponge.parser.ComponentParser.componentParser;
import static cloud.commandframework.sponge.parser.DataContainerParser.dataContainerParser;
import static cloud.commandframework.sponge.parser.GameProfileCollectionParser.gameProfileCollectionParser;
import static cloud.commandframework.sponge.parser.GameProfileParser.gameProfileParser;
import static cloud.commandframework.sponge.parser.ItemStackPredicateParser.itemStackPredicateParser;
import static cloud.commandframework.sponge.parser.MultipleEntitySelectorParser.multipleEntitySelectorParser;
import static cloud.commandframework.sponge.parser.MultiplePlayerSelectorParser.multiplePlayerSelectorParser;
import static cloud.commandframework.sponge.parser.NamedTextColorParser.namedTextColorParser;
import static cloud.commandframework.sponge.parser.OperatorParser.operatorParser;
import static cloud.commandframework.sponge.parser.ProtoItemStackParser.protoItemStackParser;
import static cloud.commandframework.sponge.parser.ResourceKeyParser.resourceKeyParser;
import static cloud.commandframework.sponge.parser.SingleEntitySelectorParser.singleEntitySelectorParser;
import static cloud.commandframework.sponge.parser.SinglePlayerSelectorParser.singlePlayerSelectorParser;
import static cloud.commandframework.sponge.parser.UserParser.userParser;
import static cloud.commandframework.sponge.parser.Vector2iParser.vector2iParser;
import static cloud.commandframework.sponge.parser.Vector3iParser.vector3iParser;
import static cloud.commandframework.sponge.parser.WorldParser.worldParser;

/**
* Command manager for Sponge API v8.
* <p>
Expand Down Expand Up @@ -140,19 +139,19 @@ private void checkLateCreation() {

private void registerParsers() {
this.parserRegistry()
.registerParser(componentParser())
.registerParser(namedTextColorParser())
.registerParser(operatorParser())
.registerParser(worldParser())
.registerParser(protoItemStackParser())
.registerParser(itemStackPredicateParser())
.registerParser(resourceKeyParser())
.registerParser(gameProfileParser())
.registerParser(gameProfileCollectionParser())
.registerParser(blockInputParser())
.registerParser(blockPredicateParser())
.registerParser(userParser())
.registerParser(dataContainerParser())
.registerParser(ComponentParser.componentParser())
.registerParser(NamedTextColorParser.namedTextColorParser())
.registerParser(OperatorParser.operatorParser())
.registerParser(WorldParser.worldParser())
.registerParser(ProtoItemStackParser.protoItemStackParser())
.registerParser(ItemStackPredicateParser.itemStackPredicateParser())
.registerParser(ResourceKeyParser.resourceKeyParser())
.registerParser(GameProfileParser.gameProfileParser())
.registerParser(GameProfileCollectionParser.gameProfileCollectionParser())
.registerParser(BlockInputParser.blockInputParser())
.registerParser(BlockPredicateParser.blockPredicateParser())
.registerParser(UserParser.userParser())
.registerParser(DataContainerParser.dataContainerParser())
.registerAnnotationMapper(
Center.class,
(annotation, type) -> ParserParameters.single(SpongeParserParameters.CENTER_INTEGERS, true)
Expand All @@ -165,12 +164,12 @@ private void registerParsers() {
TypeToken.get(Vector3d.class),
params -> new Vector3dParser<>(params.get(SpongeParserParameters.CENTER_INTEGERS, false))
)
.registerParser(vector2iParser())
.registerParser(vector3iParser())
.registerParser(singlePlayerSelectorParser())
.registerParser(multiplePlayerSelectorParser())
.registerParser(singleEntitySelectorParser())
.registerParser(multipleEntitySelectorParser());
.registerParser(Vector2iParser.vector2iParser())
.registerParser(Vector3iParser.vector3iParser())
.registerParser(SinglePlayerSelectorParser.singlePlayerSelectorParser())
.registerParser(MultiplePlayerSelectorParser.multiplePlayerSelectorParser())
.registerParser(SingleEntitySelectorParser.singleEntitySelectorParser())
.registerParser(MultipleEntitySelectorParser.multipleEntitySelectorParser());

this.registerRegistryParsers();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.brigadier.parser.WrappedBrigadierParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.caption.CaptionProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import io.leangen.geantyref.GenericTypeReflector;
import io.leangen.geantyref.TypeToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;

import io.leangen.geantyref.TypeToken;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/**
* Annotations for cloud-sponge.
*/
package cloud.commandframework.sponge.annotation;
package org.incendo.cloud.sponge.annotation;
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.annotation.specifier;
package org.incendo.cloud.sponge.annotation.specifier;

import cloud.commandframework.sponge.parser.Vector2dParser;
import cloud.commandframework.sponge.parser.Vector3dParser;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.incendo.cloud.sponge.parser.Vector2dParser;
import org.incendo.cloud.sponge.parser.Vector3dParser;

/**
* Annotation used to enable coordinate centering for {@link Vector3dParser} and {@link Vector2dParser}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/**
* Specifier annotations for cloud-sponge.
*/
package cloud.commandframework.sponge.annotation.specifier;
package org.incendo.cloud.sponge.annotation.specifier;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import java.util.Collection;
import org.spongepowered.api.profile.GameProfile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import java.util.function.Predicate;
import org.spongepowered.api.item.inventory.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import org.spongepowered.api.entity.Entity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import org.spongepowered.api.entity.living.player.server.ServerPlayer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import cloud.commandframework.sponge.exception.ComponentMessageRuntimeException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.incendo.cloud.sponge.exception.ComponentMessageRuntimeException;
import org.spongepowered.api.data.persistence.DataContainer;
import org.spongepowered.api.item.ItemType;
import org.spongepowered.api.item.inventory.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import java.util.Collection;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import org.spongepowered.api.entity.Entity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;

import org.spongepowered.api.entity.living.player.server.ServerPlayer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/**
* Data holders for cloud-sponge.
*/
package cloud.commandframework.sponge.data;
package org.incendo.cloud.sponge.data;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.sponge.exception;
package org.incendo.cloud.sponge.exception;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.ComponentLike;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/**
* Exception types for cloud-sponge.
*/
package cloud.commandframework.sponge.exception;
package org.incendo.cloud.sponge.exception;
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/**
* Cloud for Sponge 8
*/
package cloud.commandframework.sponge;
package org.incendo.cloud.sponge;
Loading

0 comments on commit 770aa71

Please sign in to comment.