Class CapeCustomizePacket

java.lang.Object
net.frozenblock.lib.cape.impl.networking.CapeCustomizePacket
All Implemented Interfaces:
net.fabricmc.fabric.api.networking.v1.FabricPacket

public final class CapeCustomizePacket extends Object implements net.fabricmc.fabric.api.networking.v1.FabricPacket
  • Field Details

    • PACKET_TYPE

      public static final net.fabricmc.fabric.api.networking.v1.PacketType<CapeCustomizePacket> PACKET_TYPE
  • Constructor Details

    • CapeCustomizePacket

      public CapeCustomizePacket(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • write

      public void write(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface net.fabricmc.fabric.api.networking.v1.FabricPacket
    • createDisablePacket

      @NotNull public static @NotNull CapeCustomizePacket createDisablePacket(UUID uuid)
    • createPacket

      @NotNull public static @NotNull CapeCustomizePacket createPacket(UUID uuid, @Nullable @Nullable net.minecraft.resources.ResourceLocation capeId)
    • createPacket

      @Contract("_, _ -> new") @NotNull public static @NotNull CapeCustomizePacket createPacket(UUID uuid, @NotNull @NotNull Cape cape)
    • sendCapeToAll

      public static void sendCapeToAll(net.minecraft.server.MinecraftServer server, UUID uuid, @Nullable @Nullable net.minecraft.resources.ResourceLocation capeId)
    • shouldDisable

      public static boolean shouldDisable(Cape cape)
    • shouldDisable

      public static boolean shouldDisable(net.minecraft.resources.ResourceLocation capeId)
    • getPlayerUUID

      public UUID getPlayerUUID()
    • isEnabled

      public boolean isEnabled()
    • getCapeId

      public net.minecraft.resources.ResourceLocation getCapeId()
    • getType

      public net.fabricmc.fabric.api.networking.v1.PacketType<?> getType()
      Specified by:
      getType in interface net.fabricmc.fabric.api.networking.v1.FabricPacket