Class ClientboundSetTitlesAnimationPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSetTitlesAnimationPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intstatic final StreamCodec<FriendlyByteBuf, ClientboundSetTitlesAnimationPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundSetTitlesAnimationPacket(int fadeIn, int stay, int fadeOut) private -
Method Summary
Modifier and TypeMethodDescriptionintintintgetStay()voidhandle(ClientGamePacketListener handler) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
fadeIn
private final int fadeIn -
stay
private final int stay -
fadeOut
private final int fadeOut
-
-
Constructor Details
-
ClientboundSetTitlesAnimationPacket
public ClientboundSetTitlesAnimationPacket(int fadeIn, int stay, int fadeOut) -
ClientboundSetTitlesAnimationPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getFadeIn
public int getFadeIn() -
getStay
public int getStay() -
getFadeOut
public int getFadeOut()
-