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, boolean showXP) floatbooleanisConsistent(IConnection connection) voidparse(ByteBufferReader b, IConnection 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) voidset(IsoPlayer target, PerkFactory.Perk perk, float amount, boolean noMultiplier, boolean showXP) 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, processClient, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, shouldInstantiate, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytes
-
Field Details
-
target
-
-
Constructor Details
-
AddXpPacket
public AddXpPacket()
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceINetworkPacket
-
set
-
set
-
set
public void set(IsoPlayer target, PerkFactory.Perk perk, float amount, boolean noMultiplier, boolean showXP) -
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
processServer
- Specified by:
processServerin 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, boolean showXP)
-