Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Nov 16, 2023
1 parent bca56f9 commit 38750b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/main/java/net/frozenblock/wilderwild/entity/Crab.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand All @@ -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);
}
}

Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 38750b2

Please sign in to comment.