Class TransientData
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.TransientData
A convenient collection of data that is not saved in player party storage but is housed there, in memory, for usability.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe cached mean pokemonLevel of the party.intintThe cached highest pokemonLevel in the party.intintintintintintintThe cached lowest pokemonLevel in the party.intfinal ArrayList<Consumer<Optional<BattleController>>> intintKeeps track of the Poké Ball being thrown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyListener(PlayerKeyListener listener) voidbooleanisBlackFluteActive(long time) booleanisWhiteFluteActive(long time) voidonKeyPress(net.minecraft.server.level.ServerPlayer player, int keyCode, int scanCode, int modifiers) voidremoveKeyListener(PlayerKeyListener listener) voiduseBlackFlute(long time) voiduseWhiteFlute(long time)
-
Field Details
-
eggTick
public int eggTick -
lastEggX
public int lastEggX -
lastEggZ
public int lastEggZ -
passiveHealTick
public int passiveHealTick -
lastPassiveHealX
public int lastPassiveHealX -
lastPassiveHealZ
public int lastPassiveHealZ -
lureTick
public int lureTick -
passivePoisonTick
public int passivePoisonTick -
lastPassivePoisonHealX
public int lastPassivePoisonHealX -
lastPassivePoisonHealZ
public int lastPassivePoisonHealZ -
highestLevel
public int highestLevelThe cached highest pokemonLevel in the party. This is maintained byPlayerTrackingSpawners. -
lowestLevel
public int lowestLevelThe cached lowest pokemonLevel in the party. This is maintained byPlayerTrackingSpawners. -
averageLevel
public int averageLevelThe cached mean pokemonLevel of the party. This is maintained byPlayerTrackingSpawners. -
thrownPokeball
Keeps track of the Poké Ball being thrown. -
captureCombo
-
onceBattleDone
-
resourceQueries
-
-
Constructor Details
-
TransientData
public TransientData()
-
-
Method Details
-
isBlackFluteActive
public boolean isBlackFluteActive(long time) -
isWhiteFluteActive
public boolean isWhiteFluteActive(long time) -
useBlackFlute
public void useBlackFlute(long time) -
useWhiteFlute
public void useWhiteFlute(long time) -
addKeyListener
-
removeKeyListener
-
clearKeyListeners
public void clearKeyListeners() -
getKeyListeners
-
onKeyPress
public void onKeyPress(net.minecraft.server.level.ServerPlayer player, int keyCode, int scanCode, int modifiers)
-