Class WrapperPlayServerAbilities
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerAbilities
-
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 valuesWrapperPlayServerAbilities
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the value of field 'canFly'float
Retrieves the value of field 'flyingSpeed'boolean
Retrieves the value of field 'instabuild'boolean
Retrieves the value of field 'invulnerable'boolean
Retrieves the value of field 'isFlying'float
Retrieves the value of field 'walkingSpeed'void
setCanFly
(boolean value) Sets the value of field 'canFly'void
setFlyingSpeed
(float value) Sets the value of field 'flyingSpeed'void
setInstabuild
(boolean value) Sets the value of field 'instabuild'void
setInvulnerable
(boolean value) Sets the value of field 'invulnerable'void
setIsFlying
(boolean value) Sets the value of field 'isFlying'void
setWalkingSpeed
(float value) Sets the value of field 'walkingSpeed'Methods 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
-
WrapperPlayServerAbilities
public WrapperPlayServerAbilities()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerAbilities
public WrapperPlayServerAbilities(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getInvulnerable
public boolean getInvulnerable()Retrieves the value of field 'invulnerable'- Returns:
- 'invulnerable'
-
setInvulnerable
public void setInvulnerable(boolean value) Sets the value of field 'invulnerable'- Parameters:
value
- New value for field 'invulnerable'
-
getIsFlying
public boolean getIsFlying()Retrieves the value of field 'isFlying'- Returns:
- 'isFlying'
-
setIsFlying
public void setIsFlying(boolean value) Sets the value of field 'isFlying'- Parameters:
value
- New value for field 'isFlying'
-
getCanFly
public boolean getCanFly()Retrieves the value of field 'canFly'- Returns:
- 'canFly'
-
setCanFly
public void setCanFly(boolean value) Sets the value of field 'canFly'- Parameters:
value
- New value for field 'canFly'
-
getInstabuild
public boolean getInstabuild()Retrieves the value of field 'instabuild'- Returns:
- 'instabuild'
-
setInstabuild
public void setInstabuild(boolean value) Sets the value of field 'instabuild'- Parameters:
value
- New value for field 'instabuild'
-
getFlyingSpeed
public float getFlyingSpeed()Retrieves the value of field 'flyingSpeed'- Returns:
- 'flyingSpeed'
-
setFlyingSpeed
public void setFlyingSpeed(float value) Sets the value of field 'flyingSpeed'- Parameters:
value
- New value for field 'flyingSpeed'
-
getWalkingSpeed
public float getWalkingSpeed()Retrieves the value of field 'walkingSpeed'- Returns:
- 'walkingSpeed'
-
setWalkingSpeed
public void setWalkingSpeed(float value) Sets the value of field 'walkingSpeed'- Parameters:
value
- New value for field 'walkingSpeed'
-