Add checkstyle verification for package names, fix non-API packages.

This commit is contained in:
Player 2019-11-03 20:14:45 +01:00
parent ce77399215
commit b7f9825dbb
259 changed files with 465 additions and 430 deletions

View file

@ -1,5 +1,5 @@
archivesBaseName = "fabric-networking-v0"
version = getSubprojectVersion(project, "0.1.5")
version = getSubprojectVersion(project, "0.1.6")
dependencies {
compile project(path: ':fabric-api-base', configuration: 'dev')

View file

@ -23,7 +23,7 @@ import net.minecraft.network.Packet;
import net.minecraft.util.Identifier;
import net.minecraft.util.PacketByteBuf;
import net.fabricmc.fabric.impl.network.ClientSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.ClientSidePacketRegistryImpl;
/**
* The client-side packet registry.

View file

@ -25,7 +25,7 @@ import net.minecraft.util.Identifier;
import net.minecraft.util.PacketByteBuf;
import net.fabricmc.fabric.api.server.PlayerStream;
import net.fabricmc.fabric.impl.network.ServerSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
/**
* The server-side packet registry.

View file

@ -32,7 +32,7 @@ import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraft.world.chunk.ChunkManager;
import net.fabricmc.fabric.impl.server.EntityTrackerStorageAccessor;
import net.fabricmc.fabric.impl.networking.server.EntityTrackerStorageAccessor;
/**
* Helper streams for looking up players on a server.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
import java.util.Collection;
import java.util.Collections;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
import net.minecraft.util.Identifier;
import net.minecraft.util.PacketByteBuf;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
public final class PacketDebugOptions {
public static final boolean DISABLE_BUFFER_RELEASES = System.getProperty("fabric.networking.broken.disableBufferReleases", "false").equalsIgnoreCase("true");

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
import java.nio.charset.StandardCharsets;
import java.util.Collection;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
import net.minecraft.util.Identifier;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.network;
package net.fabricmc.fabric.impl.networking;
import java.lang.ref.WeakReference;
import java.util.Collection;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.server;
package net.fabricmc.fabric.impl.networking.server;
import java.util.stream.Stream;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.impl.server;
package net.fabricmc.fabric.impl.networking.server;
import java.util.stream.Stream;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import java.util.Optional;
@ -38,9 +38,9 @@ import net.minecraft.util.ThreadExecutor;
import net.fabricmc.api.EnvType;
import net.fabricmc.fabric.api.network.ClientSidePacketRegistry;
import net.fabricmc.fabric.api.network.PacketContext;
import net.fabricmc.fabric.impl.network.ClientSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.network.PacketRegistryImpl;
import net.fabricmc.fabric.impl.network.PacketTypes;
import net.fabricmc.fabric.impl.networking.ClientSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.PacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.PacketTypes;
@Mixin(ClientPlayNetworkHandler.class)
public abstract class MixinClientPlayNetworkHandler implements PacketContext {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@ -23,7 +23,7 @@ import net.minecraft.server.network.packet.CustomPayloadC2SPacket;
import net.minecraft.util.Identifier;
import net.minecraft.util.PacketByteBuf;
import net.fabricmc.fabric.impl.network.CustomPayloadC2SPacketAccessor;
import net.fabricmc.fabric.impl.networking.CustomPayloadC2SPacketAccessor;
@Mixin(CustomPayloadC2SPacket.class)
public class MixinCustomPayloadC2SPacket implements CustomPayloadC2SPacketAccessor {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import java.util.Set;
import java.util.stream.Stream;
@ -25,7 +25,7 @@ import org.spongepowered.asm.mixin.Shadow;
import net.minecraft.server.network.ServerPlayerEntity;
import net.fabricmc.fabric.impl.server.EntityTrackerStreamAccessor;
import net.fabricmc.fabric.impl.networking.server.EntityTrackerStreamAccessor;
@Mixin(targets = "net.minecraft.server.world.ThreadedAnvilChunkStorage$EntityTracker")
public class MixinEntityTracker implements EntityTrackerStreamAccessor {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
@ -24,7 +24,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
import net.fabricmc.fabric.impl.network.ClientSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.ClientSidePacketRegistryImpl;
@Mixin(MinecraftClient.class)
public class MixinMinecraftClient {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import java.util.Optional;
@ -29,8 +29,8 @@ import net.minecraft.server.PlayerManager;
import net.minecraft.server.network.ServerPlayerEntity;
import net.fabricmc.fabric.api.network.ServerSidePacketRegistry;
import net.fabricmc.fabric.impl.network.PacketRegistryImpl;
import net.fabricmc.fabric.impl.network.ServerSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.PacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
@Mixin(priority = 500, value = PlayerManager.class)
public abstract class MixinPlayerManager {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@ -33,8 +33,8 @@ import net.minecraft.util.ThreadExecutor;
import net.fabricmc.api.EnvType;
import net.fabricmc.fabric.api.network.PacketContext;
import net.fabricmc.fabric.api.network.ServerSidePacketRegistry;
import net.fabricmc.fabric.impl.network.CustomPayloadC2SPacketAccessor;
import net.fabricmc.fabric.impl.network.ServerSidePacketRegistryImpl;
import net.fabricmc.fabric.impl.networking.CustomPayloadC2SPacketAccessor;
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
@Mixin(ServerPlayNetworkHandler.class)
public class MixinServerPlayNetworkHandler implements PacketContext {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.fabricmc.fabric.mixin.network;
package net.fabricmc.fabric.mixin.networking;
import java.util.stream.Stream;
@ -27,8 +27,8 @@ import net.minecraft.entity.Entity;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ThreadedAnvilChunkStorage;
import net.fabricmc.fabric.impl.server.EntityTrackerStorageAccessor;
import net.fabricmc.fabric.impl.server.EntityTrackerStreamAccessor;
import net.fabricmc.fabric.impl.networking.server.EntityTrackerStorageAccessor;
import net.fabricmc.fabric.impl.networking.server.EntityTrackerStreamAccessor;
@Mixin(ThreadedAnvilChunkStorage.class)
public class MixinThreadedAnvilChunkStorage implements EntityTrackerStorageAccessor {

View file

@ -1,6 +1,6 @@
{
"required": true,
"package": "net.fabricmc.fabric.mixin.network",
"package": "net.fabricmc.fabric.mixin.networking",
"compatibilityLevel": "JAVA_8",
"mixins": [
"MixinCustomPayloadC2SPacket",