Module gomint.api

Class PlayerFoodLevelChangeEvent

    • Constructor Detail

      • PlayerFoodLevelChangeEvent

        public PlayerFoodLevelChangeEvent​(EntityPlayer player,
                                          float change)
        Create a new event for changing food level on a player
        Parameters:
        player - for which we want to change the food level
        change - amount which should be applied after this event
    • Method Detail

      • getChange

        public float getChange()
        Amount of change this event should apply when not cancelled
        Returns:
        amount of change