From 38750b2260684a62fb07dac95982a43f9cf08702 Mon Sep 17 00:00:00 2001 From: AViewFromTheTop <87103914+AViewFromTheTop@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:12:41 -0500 Subject: [PATCH] bruh --- .../net/frozenblock/wilderwild/entity/Crab.java | 1 - .../wilderwild/networking/WilderNetworking.java | 13 ++++++------- .../networking/client/WilderClientNetworking.java | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/net/frozenblock/wilderwild/entity/Crab.java b/src/main/java/net/frozenblock/wilderwild/entity/Crab.java index 664ce5307f..169da87695 100644 --- a/src/main/java/net/frozenblock/wilderwild/entity/Crab.java +++ b/src/main/java/net/frozenblock/wilderwild/entity/Crab.java @@ -28,7 +28,6 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.BiConsumer; import java.util.function.Supplier; - import net.frozenblock.lib.block.api.shape.FrozenShapes; import net.frozenblock.wilderwild.config.EntityConfig; import net.frozenblock.wilderwild.entity.ai.crab.CrabAi; diff --git a/src/main/java/net/frozenblock/wilderwild/networking/WilderNetworking.java b/src/main/java/net/frozenblock/wilderwild/networking/WilderNetworking.java index 397632438a..8caf3be8bd 100644 --- a/src/main/java/net/frozenblock/wilderwild/networking/WilderNetworking.java +++ b/src/main/java/net/frozenblock/wilderwild/networking/WilderNetworking.java @@ -21,7 +21,6 @@ import io.netty.buffer.Unpooled; import net.fabricmc.fabric.api.networking.v1.PlayerLookup; import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking; -import net.frozenblock.wilderwild.WilderWild; import net.frozenblock.wilderwild.misc.WilderSharedConstants; import net.minecraft.core.BlockPos; import net.minecraft.network.FriendlyByteBuf; @@ -44,7 +43,7 @@ public class WilderNetworking { public static void sendJellySting(ServerPlayer player, boolean baby) { FriendlyByteBuf byteBuf = new FriendlyByteBuf(Unpooled.buffer()); byteBuf.writeBoolean(baby); - ServerPlayNetworking.send(player, WilderWild.JELLY_STING_PACKET, byteBuf); + ServerPlayNetworking.send(player, JELLY_STING_PACKET, byteBuf); } public static class EasySeedPacket { @@ -58,7 +57,7 @@ public static void createParticle(@NotNull Level level, Vec3 pos, int count, boo byteBuf.writeVarInt(count); byteBuf.writeBoolean(isMilkweed); for (ServerPlayer player : PlayerLookup.around((ServerLevel) level, pos, 128)) { - ServerPlayNetworking.send(player, WilderWild.SEED_PACKET, byteBuf); + ServerPlayNetworking.send(player, SEED_PACKET, byteBuf); } } @@ -76,7 +75,7 @@ public static void createControlledParticle(@NotNull Level level, Vec3 pos, doub byteBuf.writeBoolean(isMilkweed); byteBuf.writeDouble(posRandomizer); for (ServerPlayer player : PlayerLookup.around((ServerLevel) level, pos, radius)) { - ServerPlayNetworking.send(player, WilderWild.CONTROLLED_SEED_PACKET, byteBuf); + ServerPlayNetworking.send(player, CONTROLLED_SEED_PACKET, byteBuf); } } } @@ -94,7 +93,7 @@ public static void createParticle(@NotNull Level level, Vec3 pos, double size, i byteBuf.writeDouble(yVel); byteBuf.writeVarInt(count); for (ServerPlayer player : PlayerLookup.around((ServerLevel) level, pos, 32)) { - ServerPlayNetworking.send(player, WilderWild.FLOATING_SCULK_BUBBLE_PACKET, byteBuf); + ServerPlayNetworking.send(player, FLOATING_SCULK_BUBBLE_PACKET, byteBuf); } } } @@ -108,7 +107,7 @@ public static void createParticle(@NotNull Level level, Vec3 pos) { byteBuf.writeDouble(pos.y); byteBuf.writeDouble(pos.z); for (ServerPlayer player : PlayerLookup.around((ServerLevel) level, pos, 32)) { - ServerPlayNetworking.send(player, WilderWild.SENSOR_HICCUP_PACKET, byteBuf); + ServerPlayNetworking.send(player, SENSOR_HICCUP_PACKET, byteBuf); } } } @@ -123,7 +122,7 @@ public static void createParticle(@NotNull Level level, Vec3 pos, int count) { byteBuf.writeDouble(pos.z); byteBuf.writeVarInt(count); for (ServerPlayer player : PlayerLookup.tracking((ServerLevel) level, BlockPos.containing(pos))) { - ServerPlayNetworking.send(player, WilderWild.TERMITE_PARTICLE_PACKET, byteBuf); + ServerPlayNetworking.send(player, TERMITE_PARTICLE_PACKET, byteBuf); } } } diff --git a/src/main/java/net/frozenblock/wilderwild/networking/client/WilderClientNetworking.java b/src/main/java/net/frozenblock/wilderwild/networking/client/WilderClientNetworking.java index 70c4aa2c92..26a3a860e9 100644 --- a/src/main/java/net/frozenblock/wilderwild/networking/client/WilderClientNetworking.java +++ b/src/main/java/net/frozenblock/wilderwild/networking/client/WilderClientNetworking.java @@ -1,5 +1,6 @@ package net.frozenblock.wilderwild.networking.client; +import java.util.concurrent.atomic.AtomicInteger; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking; @@ -14,7 +15,6 @@ import net.minecraft.core.particles.ParticleTypes; import net.minecraft.sounds.SoundSource; import net.minecraft.world.phys.Vec3; -import java.util.concurrent.atomic.AtomicInteger; @Environment(EnvType.CLIENT) public class WilderClientNetworking {