Class S39PacketPlayerAbilities
- java.lang.Object
-
- net.minecraft.network.play.server.S39PacketPlayerAbilities
-
- All Implemented Interfaces:
Packet<INetHandlerPlayClient>
public class S39PacketPlayerAbilities extends java.lang.Object implements Packet<INetHandlerPlayClient>
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allowFlying
boolean
creativeMode
boolean
flying
float
flySpeed
boolean
invulnerable
float
walkSpeed
-
Constructor Summary
Constructors Constructor Description S39PacketPlayerAbilities()
S39PacketPlayerAbilities(PlayerCapabilities capabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getFlySpeed()
float
getWalkSpeed()
boolean
isAllowFlying()
boolean
isCreativeMode()
boolean
isFlying()
boolean
isInvulnerable()
void
processPacket(INetHandlerPlayClient inethandlerplayclient)
+ Passes this Packet on to the NetHandler for processing.void
readPacketData(PacketBuffer parPacketBuffer)
+ Reads the raw packet data from the data stream.void
setAllowFlying(boolean isAllowFlying)
void
setCreativeMode(boolean isCreativeMode)
void
setFlying(boolean isFlying)
void
setFlySpeed(float flySpeedIn)
void
setInvulnerable(boolean isInvulnerable)
void
setWalkSpeed(float walkSpeedIn)
void
writePacketData(PacketBuffer parPacketBuffer)
+ Writes the raw packet data to the data stream.
-
-
-
Constructor Detail
-
S39PacketPlayerAbilities
public S39PacketPlayerAbilities()
-
S39PacketPlayerAbilities
public S39PacketPlayerAbilities(PlayerCapabilities capabilities)
-
-
Method Detail
-
readPacketData
public void readPacketData(PacketBuffer parPacketBuffer) throws java.io.IOException
+ Reads the raw packet data from the data stream.- Specified by:
readPacketData
in interfacePacket<INetHandlerPlayClient>
- Throws:
java.io.IOException
-
writePacketData
public void writePacketData(PacketBuffer parPacketBuffer) throws java.io.IOException
+ Writes the raw packet data to the data stream.- Specified by:
writePacketData
in interfacePacket<INetHandlerPlayClient>
- Throws:
java.io.IOException
-
processPacket
public void processPacket(INetHandlerPlayClient inethandlerplayclient)
+ Passes this Packet on to the NetHandler for processing.- Specified by:
processPacket
in interfacePacket<INetHandlerPlayClient>
-
isInvulnerable
public boolean isInvulnerable()
-
setInvulnerable
public void setInvulnerable(boolean isInvulnerable)
-
isFlying
public boolean isFlying()
-
setFlying
public void setFlying(boolean isFlying)
-
isAllowFlying
public boolean isAllowFlying()
-
setAllowFlying
public void setAllowFlying(boolean isAllowFlying)
-
isCreativeMode
public boolean isCreativeMode()
-
setCreativeMode
public void setCreativeMode(boolean isCreativeMode)
-
getFlySpeed
public float getFlySpeed()
-
setFlySpeed
public void setFlySpeed(float flySpeedIn)
-
getWalkSpeed
public float getWalkSpeed()
-
setWalkSpeed
public void setWalkSpeed(float walkSpeedIn)
-
-