Class AddXpPacket
java.lang.Object
zombie.network.packets.AddXpPacket
- All Implemented Interfaces:
AntiCheatXP.IAntiCheat, AntiCheatXPPlayer.IAntiCheat, INetworkPacketField, IDescriptor, INetworkPacket
public class AddXpPacket
extends Object
implements INetworkPacket, AntiCheatXP.IAntiCheat, AntiCheatXPPlayer.IAntiCheat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddXp(UdpConnection connection, IsoPlayer player, PerkFactory.Perk perk, float amount, boolean noMultiplier) floatbooleanisConsistent(UdpConnection connection) voidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidset(IsoPlayer _target, PerkFactory.Perk _perk, float _amount) voidset(IsoPlayer _target, PerkFactory.Perk _perk, float _amount, boolean _noMultiplier) voidvoidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytes
-
Field Details
-
target
-
-
Constructor Details
-
AddXpPacket
public AddXpPacket()
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceINetworkPacket
-
set
-
set
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
getPlayer
- Specified by:
getPlayerin interfaceAntiCheatXP.IAntiCheat- Specified by:
getPlayerin interfaceAntiCheatXPPlayer.IAntiCheat
-
getAmount
public float getAmount()- Specified by:
getAmountin interfaceAntiCheatXP.IAntiCheat- Specified by:
getAmountin interfaceAntiCheatXPPlayer.IAntiCheat
-
addXp
public static void addXp(UdpConnection connection, IsoPlayer player, PerkFactory.Perk perk, float amount, boolean noMultiplier)
-