Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
THE SNAP (com.patchworkmc -> net.patchworkmc)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbot16 committed Mar 18, 2020
1 parent eb45a20 commit 5f2518c
Show file tree
Hide file tree
Showing 212 changed files with 1,274 additions and 1,274 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ allprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8

group = "com.patchworkmc.patchwork-api"
group = "net.patchworkmc.patchwork-api"

dependencies {
minecraft "com.mojang:minecraft:$Globals.mcVersion"
Expand Down
4 changes: 2 additions & 2 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<module name="UnusedImports"/>

<module name="ImportOrder">
<property name="groups" value="java,javax,*,net.minecraft,net.fabricmc,com.patchworkmc"/>
<property name="groups" value="java,javax,*,net.minecraft,net.fabricmc,net.patchworkmc"/>
<property name="ordered"
value="false"/><!-- the plugin orders alphabetically without considering separators.. -->
<property name="separated" value="true"/>
Expand Down Expand Up @@ -161,7 +161,7 @@
<module name="PackageName">
<!-- require a package either in patchwork or forge -->
<property name="format"
value="^com\.patchworkmc|^net\.minecraftforge|^cpw\.mods\.modlauncher\.api"/>
value="^net\.patchworkmc|^net\.minecraftforge|^cpw\.mods\.modlauncher\.api"/>
</module>

<!--<module name="InvalidJavadocPosition"/>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl.biomes;
package net.patchworkmc.impl.biomes;

import java.util.Iterator;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl.biomes;
package net.patchworkmc.impl.biomes;

import net.minecraft.world.biome.Biome;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.biomes;
package net.patchworkmc.mixin.biomes;

import org.spongepowered.asm.mixin.Mixin;

import net.minecraft.world.biome.Biome;

import com.patchworkmc.impl.biomes.RiverSupplier;
import com.patchworkmc.impl.biomes.PatchworkBiomes;
import net.patchworkmc.impl.biomes.RiverSupplier;
import net.patchworkmc.impl.biomes.PatchworkBiomes;

@Mixin(Biome.class)
public class MixinBiome implements RiverSupplier {
Expand Down
2 changes: 1 addition & 1 deletion patchwork-biomes/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": "Implementation of the Forge Biomes API.",
"entrypoints": {
"main": [
"com.patchworkmc.impl.biomes.PatchworkBiomes"
"net.patchworkmc.impl.biomes.PatchworkBiomes"
]
},
"mixins": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "com.patchworkmc.mixin.biomes",
"package": "net.patchworkmc.mixin.biomes",
"compatibilityLevel": "JAVA_8",
"mixins": [
"MixinBiome"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* as the ability to read and write the interface to NBT
*
* <p>When {@link CapabilityManager#register} is called, {@link CapabilityManager} creates a single instance of this class,
* which is then passed to any listeners of {@link com.patchworkmc.api.capability.CapabilityRegisteredCallback}.
* which is then passed to any listeners of {@link net.patchworkmc.api.capability.CapabilityRegisteredCallback}.
*
* <p>After registration, instances of this class may be used with {@link ICapabilityProvider#getCapability} and the
* functions within {@link IStorage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;

import com.patchworkmc.api.capability.CapabilityRegisteredCallback;
import net.patchworkmc.api.capability.CapabilityRegisteredCallback;

public enum CapabilityManager {
INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.api.capability;
package net.patchworkmc.api.capability;

import net.minecraftforge.common.capabilities.Capability;

import net.fabricmc.fabric.api.event.Event;

import com.patchworkmc.impl.capability.CapabilityRegisteredCallbackInternal;
import net.patchworkmc.impl.capability.CapabilityRegisteredCallbackInternal;

public interface CapabilityRegisteredCallback<C> {
void onCapabilityRegistered(Capability<C> capability);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl.capability;
package net.patchworkmc.impl.capability;

import javax.annotation.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl.capability;
package net.patchworkmc.impl.capability;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl.capability;
package net.patchworkmc.impl.capability;

import java.util.IdentityHashMap;
import java.util.Map;
Expand All @@ -28,7 +28,7 @@
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

import com.patchworkmc.api.capability.CapabilityRegisteredCallback;
import net.patchworkmc.api.capability.CapabilityRegisteredCallback;

public class CapabilityRegisteredCallbackInternal {
private static final Logger LOGGER = LogManager.getLogger(CapabilityRegisteredCallback.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import javax.annotation.Nonnull;

Expand All @@ -31,8 +31,8 @@
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.nbt.CompoundTag;

import com.patchworkmc.impl.capability.BaseCapabilityProvider;
import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.BaseCapabilityProvider;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(BlockEntity.class)
public class BlockEntityMixin implements CapabilityProviderHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import java.util.function.Consumer;

Expand Down Expand Up @@ -48,7 +48,7 @@
import net.minecraft.world.chunk.UpgradeData;
import net.minecraft.world.chunk.WorldChunk;

import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(ChunkSerializer.class)
public class ChunkSerializerMixin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -26,7 +26,7 @@

import net.minecraft.client.world.ClientWorld;

import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

// World implements CapabilityProviderHolder already because of WorldMixin
@Mixin(ClientWorld.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import javax.annotation.Nonnull;

Expand All @@ -32,8 +32,8 @@
import net.minecraft.entity.Entity;
import net.minecraft.nbt.CompoundTag;

import com.patchworkmc.impl.capability.BaseCapabilityProvider;
import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.BaseCapabilityProvider;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(Entity.class)
public class EntityMixin implements CapabilityProviderHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -27,7 +27,7 @@
import net.minecraft.entity.ItemEntity;
import net.minecraft.item.ItemStack;

import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(ItemEntity.class)
public class ItemEntityMixin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import javax.annotation.Nonnull;

Expand All @@ -32,8 +32,8 @@
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;

import com.patchworkmc.impl.capability.BaseCapabilityProvider;
import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.BaseCapabilityProvider;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(ItemStack.class)
public class ItemStackMixin implements CapabilityProviderHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -26,7 +26,7 @@

import net.minecraft.server.world.ServerWorld;

import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

// World implements CapabilityProviderHolder already because of WorldMixin
@Mixin(ServerWorld.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import javax.annotation.Nonnull;

Expand All @@ -29,8 +29,8 @@

import net.minecraft.world.chunk.WorldChunk;

import com.patchworkmc.impl.capability.BaseCapabilityProvider;
import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.BaseCapabilityProvider;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(WorldChunk.class)
public class WorldChunkMixin implements CapabilityProviderHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.mixin.capability;
package net.patchworkmc.mixin.capability;

import javax.annotation.Nonnull;

Expand All @@ -26,8 +26,8 @@

import net.minecraft.world.World;

import com.patchworkmc.impl.capability.BaseCapabilityProvider;
import com.patchworkmc.impl.capability.CapabilityProviderHolder;
import net.patchworkmc.impl.capability.BaseCapabilityProvider;
import net.patchworkmc.impl.capability.CapabilityProviderHolder;

@Mixin(World.class)
public class WorldMixin implements CapabilityProviderHolder {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "com.patchworkmc.mixin.capability",
"package": "net.patchworkmc.mixin.capability",
"compatibilityLevel": "JAVA_8",
"mixins": [
"BlockEntityMixin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.api;
package net.patchworkmc.api;

public interface ForgeInitializer {
String getModId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.api.redirects.block;
package net.patchworkmc.api.redirects.block;

import net.minecraft.block.Block;
import net.minecraft.sound.BlockSoundGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.api.redirects.itemgroup;
package net.patchworkmc.api.redirects.itemgroup;

import net.minecraft.item.ItemGroup;
import net.minecraft.util.Identifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

package com.patchworkmc.impl;
package net.patchworkmc.impl;

import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -48,8 +48,8 @@
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;

import com.patchworkmc.api.ForgeInitializer;
import com.patchworkmc.impl.registries.RegistryEventDispatcher;
import net.patchworkmc.api.ForgeInitializer;
import net.patchworkmc.impl.registries.RegistryEventDispatcher;

public class Patchwork implements ModInitializer {
private static final Logger LOGGER = LogManager.getLogger(Patchwork.class);
Expand Down
2 changes: 1 addition & 1 deletion patchwork-dispatcher/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"environment": "*",
"entrypoints": {
"main": [
"com.patchworkmc.impl.Patchwork"
"net.patchworkmc.impl.Patchwork"
]
},
"depends": {
Expand Down
Loading

0 comments on commit 5f2518c

Please sign in to comment.