Class ServerboundResourcePackPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.serverbound.ServerboundResourcePackPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundResourcePackPacket(@NonNull UUID id, @NonNull ResourcePackStatus status) ServerboundResourcePackPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull UUIDgetId()@NonNull ResourcePackStatusinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundResourcePackPacket@NonNull ServerboundResourcePackPacketwithStatus(@NonNull ResourcePackStatus status) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundResourcePackPacket
-
ServerboundResourcePackPacket
public ServerboundResourcePackPacket(@NonNull @NonNull UUID id, @NonNull @NonNull ResourcePackStatus status)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getId
-
getStatus
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
public @NonNull ServerboundResourcePackPacket withStatus(@NonNull @NonNull ResourcePackStatus status) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-