public class HiddenPowerCalculateEvent
extends net.minecraftforge.eventbus.api.Event
| Modifier and Type | Class and Description | 
|---|---|
| static class  | HiddenPowerCalculateEvent.ConstantsThe known causes | 
| Constructor and Description | 
|---|
| HiddenPowerCalculateEvent(java.lang.String cause,
                         Pokemon pokemon,
                         net.minecraft.entity.player.PlayerEntity player,
                         Element calculatedValue)Initial constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Optional<PixelmonWrapper> | getBattlePokemon()Gets the battle wrapper for the pokemon if they're in battle | 
| Element | getCalculatedValue()Gets the calculated hidden power | 
| java.lang.String | getCause()Gets the cause | 
| net.minecraft.entity.player.PlayerEntity | getPlayer()Gets the player that triggered the calculation | 
| Pokemon | getPokemon()Gets the Pokemon being calculated for | 
| boolean | isInternal()Checks if the cause was something inside the Pixelmon mod - if false it means it was a plugin or someone made a mistake :)) | 
| void | setCalculatedValue(Element calculatedValue)Sets the new calculated value | 
public HiddenPowerCalculateEvent(java.lang.String cause,
                                 Pokemon pokemon,
                                 net.minecraft.entity.player.PlayerEntity player,
                                 Element calculatedValue)
cause - The cause of the eventpokemon - The pokemon being calculated forplayer - The player causing the calculationcalculatedValue - The calculated elementpublic java.lang.String getCause()
public Pokemon getPokemon()
public net.minecraft.entity.player.PlayerEntity getPlayer()
public boolean isInternal()
public Element getCalculatedValue()
public void setCalculatedValue(Element calculatedValue)
calculatedValue - The new calculated valuepublic java.util.Optional<PixelmonWrapper> getBattlePokemon()