forked from FabricMC/fabric
Add checkstyle verification for package names, fix non-API packages.
This commit is contained in:
parent
ce77399215
commit
b7f9825dbb
259 changed files with 465 additions and 430 deletions
fabric-networking-v0
build.gradle
src/main
java/net/fabricmc/fabric
api
impl/networking
ClientSidePacketRegistryImpl.javaCustomPayloadC2SPacketAccessor.javaPacketDebugOptions.javaPacketRegistryImpl.javaPacketTypes.javaServerSidePacketRegistryImpl.java
server
mixin/networking
resources
|
@ -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')
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
|
@ -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");
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"required": true,
|
||||
"package": "net.fabricmc.fabric.mixin.network",
|
||||
"package": "net.fabricmc.fabric.mixin.networking",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"mixins": [
|
||||
"MixinCustomPayloadC2SPacket",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue