Class PlayerHitAnimalPacket
java.lang.Object
zombie.network.packets.hit.PlayerHit
zombie.network.packets.hit.PlayerHitCharacter
zombie.network.packets.hit.PlayerHitAnimalPacket
- All Implemented Interfaces:
AntiCheatHitDamage.IAntiCheat, AntiCheatHitLongDistance.IAntiCheat, AntiCheatHitWeapon.IAntiCheat, INetworkPacketField, HitCharacter, IDescriptor, INetworkPacket
public class PlayerHitAnimalPacket
extends PlayerHitCharacter
implements AntiCheatHitDamage.IAntiCheat, AntiCheatHitLongDistance.IAntiCheat, AntiCheatHitWeapon.IAntiCheat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattack()floatbooleanisConsistent(IConnection connection) voidparse(ByteBufferReader b, IConnection connection) voidprocess()voidset(IsoPlayer wielder, HandWeapon weapon, boolean isCriticalHit, List<TracerInfo> tracers, List<WeaponHit> hits, IsoAnimal target) voidvoidMethods inherited from class PlayerHitCharacter
getHit, processHitHumanoid, processHits, resolveSpikedArmorDamage, setMethods inherited from class PlayerHit
getHandWeapon, getHitCount, getShotID, getWielder, isRelevant, postProcess, preProcess, processTracers, set, syncMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AntiCheatHitDamage.IAntiCheat
getHit, getHitCountMethods inherited from interface AntiCheatHitWeapon.IAntiCheat
getHandWeapon, getHitCount, getShotID, getWielderMethods inherited from interface HitCharacter
log, processClient, processServer, react, updateMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, logInconsistentPacket, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClient, sendToClients, sendToRelativeClients, sendToServer, shouldInstantiateMethods inherited from interface INetworkPacketField
getPacketSizeBytes
-
Constructor Details
-
PlayerHitAnimalPacket
public PlayerHitAnimalPacket()
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceINetworkPacket
-
set
public void set(IsoPlayer wielder, HandWeapon weapon, boolean isCriticalHit, List<TracerInfo> tracers, List<WeaponHit> hits, IsoAnimal target) -
parse
- Specified by:
parsein interfaceINetworkPacketField- Overrides:
parsein classPlayerHitCharacter
-
write
- Specified by:
writein interfaceINetworkPacketField- Overrides:
writein classPlayerHitCharacter
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField- Overrides:
isConsistentin classPlayerHitCharacter
-
process
public void process()- Specified by:
processin interfaceHitCharacter
-
attack
public void attack()- Specified by:
attackin interfaceHitCharacter- Overrides:
attackin classPlayerHit
-
getDistance
public float getDistance()- Specified by:
getDistancein interfaceAntiCheatHitLongDistance.IAntiCheat- Specified by:
getDistancein interfaceAntiCheatHitWeapon.IAntiCheat
-
getTargetCharacter
- Specified by:
getTargetCharacterin classPlayerHitCharacter
-