Skip to content

Commit

Permalink
Move to org.incendo
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 25, 2024
1 parent 5b2b348 commit d2532d3
Show file tree
Hide file tree
Showing 83 changed files with 167 additions and 167 deletions.
6 changes: 3 additions & 3 deletions cloud-fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ configurations {

exclude("org.checkerframework")
exclude("org.apiguardian")
exclude("cloud.commandframework", "cloud-minecraft-modded-common-fabric-repack")
exclude("org.incendo", "cloud-minecraft-modded-common-fabric-repack")
}
runtimeClasspath {
exclude("cloud.commandframework", "cloud-minecraft-modded-common-fabric-repack")
exclude("org.incendo", "cloud-minecraft-modded-common-fabric-repack")
}
compileClasspath {
exclude("cloud.commandframework", "cloud-minecraft-modded-common-fabric-repack")
exclude("org.incendo", "cloud-minecraft-modded-common-fabric-repack")
}
}

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

import cloud.commandframework.minecraft.modded.internal.ModdedExceptionHandler;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.client.Minecraft;
Expand All @@ -32,6 +31,7 @@
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.SenderMapper;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.minecraft.modded.internal.ModdedExceptionHandler;

/**
* A command manager for registering client-side commands.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.fabric;
package org.incendo.cloud.fabric;

import cloud.commandframework.minecraft.modded.ModdedDefaultCaptionsProvider;
import cloud.commandframework.minecraft.modded.internal.ModdedParserMappings;
import cloud.commandframework.minecraft.modded.internal.ModdedPreprocessor;
import java.util.function.Supplier;
import net.minecraft.commands.SharedSuggestionProvider;
import org.apiguardian.api.API;
Expand All @@ -38,6 +35,9 @@
import org.incendo.cloud.brigadier.suggestion.TooltipSuggestion;
import org.incendo.cloud.context.CommandContext;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.minecraft.modded.ModdedDefaultCaptionsProvider;
import org.incendo.cloud.minecraft.modded.internal.ModdedParserMappings;
import org.incendo.cloud.minecraft.modded.internal.ModdedPreprocessor;
import org.incendo.cloud.suggestion.SuggestionFactory;

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

import cloud.commandframework.minecraft.modded.internal.ContextualArgumentTypeProvider;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.RootCommandNode;
Expand All @@ -46,6 +45,7 @@
import org.incendo.cloud.brigadier.CloudBrigadierCommand;
import org.incendo.cloud.component.CommandComponent;
import org.incendo.cloud.internal.CommandRegistrationHandler;
import org.incendo.cloud.minecraft.modded.internal.ContextualArgumentTypeProvider;

import static org.incendo.cloud.brigadier.util.BrigadierUtil.buildRedirect;

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

import cloud.commandframework.fabric.internal.LateRegistrationCatcher;
import cloud.commandframework.minecraft.modded.internal.ModdedExceptionHandler;
import cloud.commandframework.minecraft.modded.internal.ModdedParserMappings;
import me.lucko.fabric.api.permissions.v0.Permissions;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.commands.CommandSource;
Expand All @@ -38,7 +35,10 @@
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.SenderMapper;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.fabric.internal.LateRegistrationCatcher;
import org.incendo.cloud.key.CloudKey;
import org.incendo.cloud.minecraft.modded.internal.ModdedExceptionHandler;
import org.incendo.cloud.minecraft.modded.internal.ModdedParserMappings;

/**
* A command manager for registering server-side commands.
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.fabric.internal;
package org.incendo.cloud.fabric.internal;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* Implementation-internal content for the Fabric implementation of Cloud.
*/
package cloud.commandframework.fabric.internal;
package org.incendo.cloud.fabric.internal;
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.fabric.mixin;
package org.incendo.cloud.fabric.mixin;

import cloud.commandframework.minecraft.modded.internal.EntitySelectorAccess;
import net.minecraft.commands.arguments.selector.EntitySelector;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.minecraft.modded.internal.EntitySelectorAccess;
import org.spongepowered.asm.mixin.Implements;
import org.spongepowered.asm.mixin.Interface;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.fabric.mixin;
package org.incendo.cloud.fabric.mixin;

import cloud.commandframework.minecraft.modded.internal.EntitySelectorAccess;
import com.mojang.brigadier.StringReader;
import net.minecraft.commands.arguments.selector.EntitySelector;
import net.minecraft.commands.arguments.selector.EntitySelectorParser;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.minecraft.modded.internal.EntitySelectorAccess;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
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.fabric.mixin;
package org.incendo.cloud.fabric.mixin;

import net.minecraft.commands.arguments.MessageArgument;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(MessageArgument.Message.class)
public interface MessageArgumentMessageAccess extends cloud.commandframework.minecraft.modded.internal.MessageArgumentMessageAccess {
public interface MessageArgumentMessageAccess extends org.incendo.cloud.minecraft.modded.internal.MessageArgumentMessageAccess {

@Accessor("parts")
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.fabric.mixin;
package org.incendo.cloud.fabric.mixin;

import net.minecraft.commands.arguments.MessageArgument;
import net.minecraft.commands.arguments.selector.EntitySelector;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(MessageArgument.Part.class)
public interface MessageArgumentPartAccess extends cloud.commandframework.minecraft.modded.internal.MessageArgumentPartAccess {
public interface MessageArgumentPartAccess extends org.incendo.cloud.minecraft.modded.internal.MessageArgumentPartAccess {

@Accessor("selector")
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*
* @since 1.5.0
*/
package cloud.commandframework.fabric;
package org.incendo.cloud.fabric;
2 changes: 1 addition & 1 deletion cloud-fabric/src/main/resources/cloud.mixins.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"package": "cloud.commandframework.fabric.mixin",
"package": "org.incendo.cloud.fabric.mixin",
"compatibilityLevel": "JAVA_8",
"required": true,
"mixins": [
Expand Down
2 changes: 1 addition & 1 deletion cloud-fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

"entrypoints": {
"main": [
"cloud.commandframework.fabric.internal.LateRegistrationCatcher"
"org.incendo.cloud.fabric.internal.LateRegistrationCatcher"
]
},

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

import cloud.commandframework.fabric.FabricClientCommandManager;
import cloud.commandframework.fabric.testmod.mixin.PauseScreenAccess;
import cloud.commandframework.minecraft.modded.ModdedPredicatePermissions;
import cloud.commandframework.minecraft.modded.parser.VanillaArgumentParsers;
import com.google.gson.JsonObject;
import com.google.gson.internal.Streams;
import com.google.gson.stream.JsonWriter;
Expand All @@ -53,6 +49,10 @@
import org.incendo.cloud.Command;
import org.incendo.cloud.description.CommandDescription;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.fabric.FabricClientCommandManager;
import org.incendo.cloud.fabric.testmod.mixin.PauseScreenAccess;
import org.incendo.cloud.minecraft.modded.ModdedPredicatePermissions;
import org.incendo.cloud.minecraft.modded.parser.VanillaArgumentParsers;
import org.incendo.cloud.parser.flag.CommandFlag;

import static org.incendo.cloud.parser.standard.StringParser.greedyStringParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.fabric.testmod;
package org.incendo.cloud.fabric.testmod;

import cloud.commandframework.fabric.FabricServerCommandManager;
import cloud.commandframework.fabric.testmod.mixin.GiveCommandAccess;
import cloud.commandframework.minecraft.modded.data.Coordinates;
import cloud.commandframework.minecraft.modded.data.Coordinates.ColumnCoordinates;
import cloud.commandframework.minecraft.modded.data.MultipleEntitySelector;
import cloud.commandframework.minecraft.modded.data.MultiplePlayerSelector;
import cloud.commandframework.minecraft.modded.parser.NamedColorParser;
import cloud.commandframework.minecraft.modded.parser.RegistryEntryParser;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import java.util.Collection;
import java.util.Comparator;
Expand Down Expand Up @@ -59,16 +51,24 @@
import org.incendo.cloud.component.DefaultValue;
import org.incendo.cloud.component.TypedCommandComponent;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.fabric.FabricServerCommandManager;
import org.incendo.cloud.fabric.testmod.mixin.GiveCommandAccess;
import org.incendo.cloud.key.CloudKey;
import org.incendo.cloud.minecraft.modded.data.Coordinates;
import org.incendo.cloud.minecraft.modded.data.Coordinates.ColumnCoordinates;
import org.incendo.cloud.minecraft.modded.data.MultipleEntitySelector;
import org.incendo.cloud.minecraft.modded.data.MultiplePlayerSelector;
import org.incendo.cloud.minecraft.modded.parser.NamedColorParser;
import org.incendo.cloud.minecraft.modded.parser.RegistryEntryParser;
import org.incendo.cloud.parser.ArgumentParseResult;
import org.incendo.cloud.parser.ParserDescriptor;
import org.incendo.cloud.suggestion.Suggestion;
import org.incendo.cloud.suggestion.SuggestionProvider;

import static cloud.commandframework.minecraft.modded.parser.VanillaArgumentParsers.columnPosParser;
import static cloud.commandframework.minecraft.modded.parser.VanillaArgumentParsers.itemInput;
import static cloud.commandframework.minecraft.modded.parser.VanillaArgumentParsers.multiplePlayerSelectorParser;
import static cloud.commandframework.minecraft.modded.parser.VanillaArgumentParsers.vec3Parser;
import static org.incendo.cloud.minecraft.modded.parser.VanillaArgumentParsers.columnPosParser;
import static org.incendo.cloud.minecraft.modded.parser.VanillaArgumentParsers.itemInput;
import static org.incendo.cloud.minecraft.modded.parser.VanillaArgumentParsers.multiplePlayerSelectorParser;
import static org.incendo.cloud.minecraft.modded.parser.VanillaArgumentParsers.vec3Parser;
import static org.incendo.cloud.parser.standard.IntegerParser.integerParser;
import static org.incendo.cloud.parser.standard.StringParser.stringParser;

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.fabric.testmod.mixin;
package org.incendo.cloud.fabric.testmod.mixin;

import com.mojang.brigadier.Command;
import java.util.Collection;
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.fabric.testmod.mixin;
package org.incendo.cloud.fabric.testmod.mixin;

import net.minecraft.client.gui.screens.PauseScreen;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* A test mod for the fabric implementation of Cloud.
*/
package cloud.commandframework.fabric.testmod;
package org.incendo.cloud.fabric.testmod;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"package": "cloud.commandframework.fabric.testmod.mixin",
"package": "org.incendo.cloud.fabric.testmod.mixin",
"compatibilityLevel": "JAVA_8",
"required": true,
"mixins": [
Expand Down
4 changes: 2 additions & 2 deletions cloud-fabric/src/testmod/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

"entrypoints": {
"main": [
"cloud.commandframework.fabric.testmod.FabricExample"
"org.incendo.cloud.fabric.testmod.FabricExample"
],
"client": [
"cloud.commandframework.fabric.testmod.FabricClientExample"
"org.incendo.cloud.fabric.testmod.FabricClientExample"
]
},

Expand Down

This file was deleted.

This file was deleted.

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.minecraft.modded;
package org.incendo.cloud.minecraft.modded;

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.minecraft.modded;
package org.incendo.cloud.minecraft.modded;

import io.leangen.geantyref.TypeToken;
import net.minecraft.commands.SharedSuggestionProvider;
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.minecraft.modded;
package org.incendo.cloud.minecraft.modded;

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.minecraft.modded;
package org.incendo.cloud.minecraft.modded;

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,14 +21,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.minecraft.modded;
package org.incendo.cloud.minecraft.modded;

import cloud.commandframework.minecraft.modded.permission.PermissionLevelResult;
import net.minecraft.client.Minecraft;
import net.minecraft.commands.SharedSuggestionProvider;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.SenderMapperHolder;
import org.incendo.cloud.key.CloudKey;
import org.incendo.cloud.minecraft.modded.permission.PermissionLevelResult;
import org.incendo.cloud.permission.PermissionResult;
import org.incendo.cloud.permission.PredicatePermission;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Annotations for the modded Minecraft context.
*/
package org.incendo.cloud.minecraft.modded.annotation;
Loading

0 comments on commit d2532d3

Please sign in to comment.