Class CapeCustomizePacket

java.lang.Object
net.frozenblock.lib.cape.impl.networking.CapeCustomizePacket
All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public final class CapeCustomizePacket extends Object implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,CapeCustomizePacket>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<CapeCustomizePacket>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CapeCustomizePacket(@NotNull net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull CapeCustomizePacket
     
    static @NotNull CapeCustomizePacket
    createPacket(UUID uuid, @NotNull Cape cape)
     
    static @NotNull CapeCustomizePacket
    createPacket(UUID uuid, @Nullable net.minecraft.resources.ResourceLocation capeId)
     
    net.minecraft.resources.ResourceLocation
     
     
    boolean
     
    static void
    sendCapeToAll(net.minecraft.server.MinecraftServer server, UUID uuid, @Nullable net.minecraft.resources.ResourceLocation capeId)
     
    static boolean
     
    static boolean
    shouldDisable(net.minecraft.resources.ResourceLocation capeId)
     
    @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?>
     
    void
    write(@NotNull net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PACKET_TYPE

      public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<CapeCustomizePacket> PACKET_TYPE
    • CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,CapeCustomizePacket> CODEC
  • 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)
    • 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()
    • type

      @NotNull public @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?> type()
      Specified by:
      type in interface net.minecraft.network.protocol.common.custom.CustomPacketPayload