Class BattleTaskPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.battles.tasks.BattleTaskPacket
- All Implemented Interfaces:
PixelmonPacket
- Direct Known Subclasses:
BattleMessagePacket,FailedSwitchFleeTask,HPIncreaseTask,HPUpdateTask,RaidDropsTask,RaidDynamaxTask,RaidShieldsTask,StatusUpdateTask,SwitchOutTask
Implement
BattleMessagePacket if you have a message that goes along with this task.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UUIDGets the UUID of thePokemonthis message affectsprotected voidhandlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) abstract booleanWill be called once per frame until you return false.booleanIf this returns true the gui will not wait to complete this task before running the next task in queue.Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
decode, encode, handle, reply
-
Constructor Details
-
BattleTaskPacket
public BattleTaskPacket()
-
-
Method Details
-
process
Will be called once per frame until you return false.- Returns:
- true if you should continue being updated. false otherwise.
-
getPokemonID
Gets the UUID of thePokemonthis message affects- Returns:
- the uuid of the pokemon this message affects, or null.
-
shouldRunParallel
public boolean shouldRunParallel()If this returns true the gui will not wait to complete this task before running the next task in queue. This task will not run at the same time as another parallel task with the same pokemonID- Returns:
- if the task should run parallel
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacketin classAbstractPixelmonPacket
-