Class WrapperPlayServerSetTitlesAnimation
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSetTitlesAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerSetTitlesAnimation
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the number of ticks the title is faded inint
Retrieves the number of ticks to fade out the titleint
getStay()
Retrieves the number of ticks the title stays on screenvoid
setFadeIn
(int value) Sets the number of ticks the title is faded invoid
setFadeOut
(int value) Sets the number of ticks to fade out the titlevoid
setStay
(int value) Sets the number of ticks the title stays on screenMethods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerSetTitlesAnimation
public WrapperPlayServerSetTitlesAnimation()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerSetTitlesAnimation
public WrapperPlayServerSetTitlesAnimation(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getFadeIn
public int getFadeIn()Retrieves the number of ticks the title is faded in- Returns:
- 'fadeIn'
-
setFadeIn
public void setFadeIn(int value) Sets the number of ticks the title is faded in- Parameters:
value
- New value for field 'fadeIn'
-
getStay
public int getStay()Retrieves the number of ticks the title stays on screen- Returns:
- 'stay'
-
setStay
public void setStay(int value) Sets the number of ticks the title stays on screen- Parameters:
value
- New value for field 'stay'
-
getFadeOut
public int getFadeOut()Retrieves the number of ticks to fade out the title- Returns:
- 'fadeOut'
-
setFadeOut
public void setFadeOut(int value) Sets the number of ticks to fade out the title- Parameters:
value
- New value for field 'fadeOut'
-